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

+9 -10
View File
@@ -1,22 +1,21 @@
#!/bin/sh
# Bring up MiniCPM5-2B (fp8) as a long-lived server and LEAVE IT RUNNING.
# Start MiniCPM5-2B (fp8) as a long-lived server, like scripts/fnserve.sh: wait for /health, print
# the endpoints and exit with the server still up. Stop it with scripts/fnstop.sh.
#
# The sibling of scripts/fnserve.sh, for the small dense model. Same contract: start it, wait for
# /health, print the endpoints, exit with the server still up. Stop it with scripts/fnstop.sh.
#
# WHY 131072 AND NOT 200000. n_ctx_train is 131072 for this checkpoint; the 200K context
# scripts/fnserve.sh serves is a property of the Flash-Next model, which a 2B model cannot honour.
# Context is 131072, this checkpoint's n_ctx_train (the 200K of fnserve.sh is Flash-Next's).
#
# KV is 21.0 KiB a token at fp8 (42 layers x 2 kv heads x 128 x 2 planes), halved per rank at
# tp 2, so a full-length sequence costs 1.38 GiB a rank and 8 of them do not fit -- the pool is
# a capacity, not a per-request reservation, and it backs however many the cache can hold.
# tp 2, so a full-length sequence costs 1.38 GiB a rank and 8 of them do not fit. The pool is a
# capacity, not a per-request reservation.
P="${P:-8100}"
M="${M:-$HOME/models/rad/minicpm5-2b-dspark.v2.rad}"
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 2
env GPU_MAX_ALLOC_PERCENT=100 GPU_MAX_HEAP_SIZE=100 $EXTRA_ENV \
nohup ./bin/radiance --model "$M" \
--radiance-home "$HOME/workspace/radiance/build/radiance_home" \
--radiance-home radiance_home \
--host 0.0.0.0 --port "$P" \
--max-num-seqs ${SEQS:-8} --max-model-len ${MLEN:-131072} \
--tp ${TP:-2} \