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

47 lines
2.7 KiB
Bash
Executable File

#!/bin/sh
# Steady-state decode step time at each concurrency, against a running server.
#
# ignore_eos fixes every sequence's length so none retires mid-window. The script waits until
# exactly C are running, samples the counters over a window in the middle and re-checks the count
# at the end; a window with fewer than C sequences at either edge measures no single concurrency.
# Model-agnostic; P= picks the port.
P=${P:-8100}
U="http://127.0.0.1:$P"
LEVELS="${LEVELS:-1 2 3 4 5 6 8}"
MT=${MT:-900}
WIN=${WIN:-6}
Q="Write a complete, heavily commented Go implementation of a generic LRU cache with a fixed capacity, O(1) get and put, a doubly linked list, a mutex for concurrent use, table-driven tests for every method, and a long prose explanation of every design decision you made."
m() { curl -s -m 10 "$U/metrics" | grep -F "$1" | grep -v '^#' | awk '{print $NF}' | head -1; }
waitidle() { i=0; while [ $i -lt 240 ]; do [ "$(m 'vllm:num_requests_running')" = "0" ] && return 0; i=$((i+1)); sleep 1; done; return 1; }
printf '%-4s %9s %9s %10s %10s %9s\n' C steps tok tok/step ms/step accept%
for C in $LEVELS; do
waitidle || { echo "C=$C busy"; continue; }
i=0
while [ $i -lt "$C" ]; do
i=$((i+1))
curl -s -m 600 -o /dev/null "$U/v1/completions" -H 'Content-Type: application/json' \
-d "{\"model\":\"q\",\"prompt\":\"$Q\",\"max_tokens\":$MT,\"temperature\":0,\"ignore_eos\":true}" &
done
# ramp: wait until exactly C are running
j=0; while [ $j -lt 120 ]; do [ "$(m 'vllm:num_requests_running')" = "$C" ] && break; j=$((j+1)); sleep 0.5; done
sleep 3 # let the ramp's ragged edge pass
[ "$(m 'vllm:num_requests_running')" = "$C" ] || { echo "C=$C never reached"; wait; continue; }
s0=$(m 'radiance:engine_steps_decode_total'); d0=$(m 'radiance:decode_tokens_total')
r0=$(m 'radiance:draft_tokens_total'); a0=$(m 'radiance:draft_accepted_total')
p0=$(m 'radiance:prefill_tokens_total'); T0=$(date +%s.%N)
sleep "$WIN"
s1=$(m 'radiance:engine_steps_decode_total'); d1=$(m 'radiance:decode_tokens_total')
r1=$(m 'radiance:draft_tokens_total'); a1=$(m 'radiance:draft_accepted_total')
p1=$(m 'radiance:prefill_tokens_total'); T1=$(date +%s.%N)
run=$(m 'vllm:num_requests_running')
awk -v C="$C" -v ds=$((s1-s0)) -v dd=$((d1-d0)) -v dr=$((r1-r0)) -v da=$((a1-a0)) \
-v dp=$((p1-p0)) -v t0="$T0" -v t1="$T1" -v run="$run" 'BEGIN{
tag = (run+0!=C? " <- count moved to " run : "") (dp>0? " <- prefill " dp " in window" : "")
if (ds<=0) { printf "%-4s %9s\n", C, "NO-STEPS"; exit }
printf "%-4s %9d %9d %10.3f %10.2f %9.1f%s\n", C, ds, dd, dd/ds, 1000*(t1-t0)/ds, (dr>0?100.0*da/dr:0), tag
}'
wait
done