This repository has been archived on 2026-11-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Deadcode 1e968f6e1d radiance 1.7.0
- every model serves without a GPU: libavx covers every op, so `--kernels libavx` alone serves
  every shipped container
- Qwen3-ASR (zivius): speech to text on /v1/audio/transcriptions and live over /v1/realtime
- /v1/messages works with Claude Code as it ships (gearwave00001)
- a long agent conversation keeps its cached history when the client rewrites its last turn
  (manueloverride)
- a stream's first event goes out with the first token, so llama-benchy measures prefill right
- opt-in --prefill-interleave (Smellyyyy, baKon) and --prefill-span (keptn42)
- four-rank TP releases the link early; four-rank selftests and docs/TP4.md (goodman-b)
- NVFP4 and FP8 compressed-tensors imports (devmilan); tools/rad-export for finetunes and LoRA
  adapters (baKon)
- many fixes, among them lost tokens on stop strings under concurrency, keep-alive, MiniCPM5 tool
  arguments and the CPU's vision and audio encoders
- plugin ABI 17 and changed op schemas: out-of-tree plugins must be rebuilt
2026-10-16 18:25:18 +02:00

24 lines
2.1 KiB
Bash
Executable File

#!/bin/sh
# What speculation is worth on an agent workload: /v1/chat/completions with tools, a constrained
# decode. Arms alternate across server restarts because n_spec is a server-level setting.
T='[{"type":"function","function":{"name":"write","description":"write a file","parameters":{"type":"object","properties":{"path":{"type":"string"},"content":{"type":"string"}},"required":["path","content"]}}},{"type":"function","function":{"name":"bash","description":"run a shell command","parameters":{"type":"object","properties":{"cmd":{"type":"string"}},"required":["cmd"]}}},{"type":"function","function":{"name":"read","description":"read a file","parameters":{"type":"object","properties":{"path":{"type":"string"}},"required":["path"]}}}]'
Q="Write a long, heavily commented C implementation of a chess board representation with FEN parsing, then explain every design decision in detail."
U="http://127.0.0.1:8111"
m() { curl -s -m 10 "$U/metrics" | grep -F "$1" | grep -v '^#' | awk '{print $NF}' | head -1; }
arm() { # $1 label $2 extra
P=8111 TP=2 MLEN=16384 SEQS=8 EXTRA="$2" sh "$(dirname "$0")/mcserve.sh" >/dev/null 2>&1 || { echo "$1 DIED"; return; }
curl -s -m 300 -o /dev/null "$U/v1/completions" -H 'Content-Type: application/json' -d '{"model":"q","prompt":"warm","max_tokens":32,"temperature":0}'
s0=$(m 'radiance:engine_steps_decode_total'); d0=$(m 'radiance:decode_tokens_total')
t0=$(date +%s.%N)
curl -s -m 600 -o /tmp/a.out "$U/v1/chat/completions" -H 'Content-Type: application/json' \
-d "{\"model\":\"m\",\"messages\":[{\"role\":\"user\",\"content\":\"$Q\"}],\"tools\":$T,\"max_tokens\":900,\"temperature\":0}"
t1=$(date +%s.%N)
s1=$(m 'radiance:engine_steps_decode_total'); d1=$(m 'radiance:decode_tokens_total')
n=$(jq -r '.usage.completion_tokens // 0' /tmp/a.out)
awk -v l="$1" -v t0="$t0" -v t1="$t1" -v n="$n" -v ds=$((s1-s0)) -v dd=$((d1-d0)) 'BEGIN{
if (ds<=0) { printf "%-14s NO STEPS\n", l; exit }
printf "%-14s %7.3f ms/step %6.3f tok/step %6.1f tok/s\n", l, 1000*(t1-t0)/ds, dd/ds, n/(t1-t0) }'
}
for pass in 1 2; do arm "spec-off" "--num-speculative-tokens 0"; arm "spec-auto" ""; done
pkill -f "bin/radianc[e]"