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

26 lines
1.7 KiB
Bash
Executable File

#!/bin/sh
# How often the drafter proposes, by context length. draft_tokens_total/depth is the number of
# draft blocks; divided by decode steps it is the fraction of steps that speculated. accept% is
# conditional on drafting, so a high accept% with tok/step ~1.2 means most steps never drafted.
# The drafter may decline (the server log says "prompt lookup fills in").
P=8112; U="http://127.0.0.1:$P"
pad() { i=0; W=""; while [ $i -lt "$1" ]; do
W="$W static int eval_piece_$1_$i(const Board *b, int sq) { return b->squares[sq] * 100 + $i; }"
i=$((i+1)); done; printf '%s' "$W"; }
P=8112 TP=2 MLEN=131072 SEQS=8 sh "$(dirname "$0")/mcserve.sh" >/dev/null 2>&1 || { echo DIED; exit 1; }
g() { curl -s -m 10 "$U/metrics"|grep -F "$1"|grep -v '^#'|awk '{print $NF}'|head -1; }
printf '%8s %9s %9s %10s %10s %9s\n' ctx steps blocks blocks/step tok/step accept%
for N in 4 60 260 1040; do
jq -n --arg c "$(pad $N)" '{model:"m",max_tokens:400,temperature:0,
messages:[{role:"user",content:("Here is a file:\n\n"+$c+"\n\nSummarise what this code does in detail.")}]}' > /tmp/dc.json
s0=$(g engine_steps_decode_total); d0=$(g decode_tokens_total); r0=$(g draft_tokens_total); a0=$(g draft_accepted_total)
curl -s -m 900 -o /tmp/dc.out "$U/v1/chat/completions" -H 'Content-Type: application/json' -d @/tmp/dc.json
s1=$(g engine_steps_decode_total); d1=$(g decode_tokens_total); r1=$(g draft_tokens_total); a1=$(g draft_accepted_total)
awk -v ctx="$(jq -r '.usage.prompt_tokens // 0' /tmp/dc.out)" -v ds=$((s1-s0)) -v dd=$((d1-d0)) \
-v dr=$((r1-r0)) -v da=$((a1-a0)) 'BEGIN{
if(ds<=0){print " NO STEPS"; exit}
b=dr/7
printf "%8d %9d %9d %10.3f %10.3f %9.1f\n", ctx, ds, b, b/ds, dd/ds, (dr>0?100.0*da/dr:0) }'
done
pkill -f "bin/radianc[e]"