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
This commit is contained in:
Deadcode committed 2026-10-16 18:25:18 +02:00
1 parent b068190326
commit 1e968f6e1d
739 files changed
+128447 -84632

No files matched your search

+13 -13
View File
@@ -1,24 +1,24 @@
#!/bin/sh
# Per-op device timing (--profile-ops) AT DEPTH and AT CONCURRENCY, on the 27B dense model with
# its DFlash2 drafter: C requests of a ~16K-token prompt (PROMPT=<file>), so every
# context-scaling op (attn_paged above all) shows the weight it carries at a real KV depth rather
# than at a few dozen tokens.
# Per-op device timing (--profile-ops) at depth and concurrency on the 27B dense model with its
# DFlash2 drafter: C requests of a ~16K-token prompt (PROMPT=<file>), so context-scaling ops
# (above all attn_paged) are timed at a realistic KV depth.
#
# THE COUNTERS ARE CUMULATIVE AND THE RUN STARTS WITH PREFILL, so a single table is a mixture:
# ~30 chunked-prefill steps at 4096 tokens sit under every decode step that follows. This dumps
# every EVERY steps (RADIANCE_PROFILE_EVERY) and leaves them all in the log; differencing two dumps
# that are both after prefill ended is the only way to get a decode-only table out of it.
# The counters are cumulative and the run starts with prefill (~30 chunked steps of 4096 tokens),
# so one table mixes prefill and decode. The server dumps every EVERY steps
# (RADIANCE_PROFILE_EVERY) into the log; difference two dumps taken after prefill ended to get a
# decode-only table.
P=8129
C="${C:-8}"
EVERY="${EVERY:-20}"
MT="${MT:-400}"
cd "$HOME/workspace/radiance/build" || exit 1
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
BUILD="${BUILD:-$ROOT/build}"
cd "$BUILD" || exit 1
pkill -f "bin/radianc[e]"; while pgrep -f "bin/radianc[e]" >/dev/null; do sleep 1; done; sleep 3
: > "$HOME/dprofd.log"
[ -n "$KVFP8" ] && export RADIANCE_QWEN35_KV_FP8=1 # read by nothing: the KV width is --kv-cache-dtype
GPU_MAX_ALLOC_PERCENT=100 GPU_MAX_HEAP_SIZE=100 RADIANCE_PROFILE_EVERY="$EVERY" \
./bin/radiance --model "${M:-$HOME/models/rad/q38-27b-fp8-df2.v2.rad}" \
--radiance-home "$HOME/workspace/radiance/build/radiance_home" \
./bin/radiance --model "${M:-$HOME/models/rad/qwen3.8-27b-fp8.rad}" \
--radiance-home radiance_home \
--max-num-seqs 8 --max-model-len 24000 --checkpoint-slots 0 --no-prefix-cache \
--tp 2 --tp-wire wht6 --tp-wire-min-kb 128 \
--max-num-batched-tokens 4096 --num-speculative-tokens ${DEPTH:-auto} \
@@ -35,7 +35,7 @@ while [ $i -lt $C ]; do
PIDS="$PIDS $!"; i=$((i+1))
done
wait $PIDS
echo "C=$C kvfp8=${KVFP8:-0} completion_tokens $(jq -r '.usage.completion_tokens' /tmp/dpd_0.out)"
echo "C=$C completion_tokens $(jq -r '.usage.completion_tokens' /tmp/dpd_0.out)"
sleep 2
pkill -f "bin/radianc[e]"; while pgrep -f "bin/radianc[e]" >/dev/null; do sleep 1; done
grep -c "per-op device timing, rank 0" "$HOME/dprofd.log" | sed 's/^/dumps: /'