Archived
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:
1 parent
b068190326
commit
1e968f6e1d
739 files changed
+128447
-84632
No files matched your search
+13
-19
@@ -1,19 +1,14 @@
|
||||
#!/bin/sh
|
||||
# Qwen3.8-Flash-Next PREFILL under rocprofv3 kernel tracing, and the link counters beside it.
|
||||
# Qwen3.8-Flash-Next prefill under rocprofv3 kernel tracing, with the link counters beside it.
|
||||
#
|
||||
# WHAT IT ANSWERS. `moe_gemm_q` is the largest item in a prefill step and most of what it waits on
|
||||
# is expert weight that is not resident, read where it lies -- which for a host-pooled unit means
|
||||
# crossing the link inside the kernel. Neither half of that is visible alone: a trace says how long
|
||||
# the GEMM ran and says nothing about bytes, and /stats says how many bytes were streamed and
|
||||
# nothing about when. Taking both across the same run gives the rate the streamed read actually
|
||||
# achieves, which is the only number that says whether the kernel is at the link's ceiling or
|
||||
# leaving it idle.
|
||||
# `moe_gemm_q` is the largest item in a prefill step, and it mostly waits on non-resident expert
|
||||
# weight, which for a host-pooled unit is read across the link inside the kernel. The trace gives
|
||||
# the GEMM's time and /stats the bytes streamed; together they give the achieved streaming rate,
|
||||
# which shows whether the kernel reaches the link's ceiling.
|
||||
#
|
||||
# PREFILL ONLY, AND THAT IS WHY tsum's WINDOW IS NOT USED. tsum.sh keys its steady-state window on
|
||||
# a marker that fires once per DECODE step; with max_tokens 1 there is no such run, so it falls
|
||||
# back to summing the whole trace and every number is per RUN. That is what isolation wants here --
|
||||
# the run IS the prefill -- but it does mean the model load's own kernels are in the total, so the
|
||||
# prompt has to be long enough that they are noise.
|
||||
# tsum.sh keys its steady-state window on a once-per-decode-step marker; with max_tokens 1 there is
|
||||
# none, so it sums the whole trace and every number is per run. The model load's kernels are in the
|
||||
# total, so the prompt must be long enough to make them negligible.
|
||||
#
|
||||
# N=20000 OUT=<trace dir> scripts/fntrace.sh
|
||||
#
|
||||
@@ -25,7 +20,8 @@ BPT="${BPT:-4}"
|
||||
OUT="${OUT:-$HOME/traces/fnpf}"
|
||||
ROOT="${ROOT:-$(cd "$(dirname "$0")/.." && pwd)}"
|
||||
CORPUS=/dev/shm/fntrace-corpus.txt
|
||||
cd "$HOME/workspace/radiance/build" || exit 1
|
||||
BUILD="${BUILD:-$ROOT/build}"
|
||||
cd "$BUILD" || exit 1
|
||||
|
||||
want=$((N * BPT + 4096))
|
||||
if [ "$(wc -c < "$CORPUS" 2>/dev/null || echo 0)" -lt "$want" ]; then
|
||||
@@ -40,7 +36,7 @@ rm -rf "$OUT"; mkdir -p "$OUT"
|
||||
env GPU_MAX_ALLOC_PERCENT=100 GPU_MAX_HEAP_SIZE=100 $EXTRA_ENV \
|
||||
"$ROOT/libr4d/isa/trace.sh" "$OUT" -- \
|
||||
./bin/radiance --model "$M" \
|
||||
--radiance-home "$HOME/workspace/radiance/build/radiance_home" \
|
||||
--radiance-home radiance_home \
|
||||
--host 127.0.0.1 --port "$P" \
|
||||
--max-num-seqs ${SEQS:-8} --max-model-len ${MLEN:-200000} \
|
||||
--tp ${TP:-2} --placement expert_tiered --host-pool-mib ${HOSTPOOL:-12288} \
|
||||
@@ -66,10 +62,8 @@ t1=$(date +%s.%N)
|
||||
s1=$(st stream_bytes); a1=$(st ar_bytes); h1=$(st h2d_bytes)
|
||||
pt=$(printf '%s' "$out" | jq -r '.usage.prompt_tokens // 0')
|
||||
|
||||
# UNDER rocprofv3 THE SERVER CAN REFUSE TO DIE ON SIGTERM. The profiler chains its own handler
|
||||
# onto the signal and the process then sits in finalisation indefinitely -- so an unbounded wait
|
||||
# here loses the run, and the trace CSV is already on disk by that point. Escalate rather than
|
||||
# spin.
|
||||
# Under rocprofv3 the server can hang in finalisation after SIGTERM (the profiler chains its own
|
||||
# handler). The trace CSV is already on disk by then, so escalate to SIGKILL after a bounded wait.
|
||||
pkill -f "bin/radianc[e]"
|
||||
i=0; while pgrep -f "bin/radianc[e]" >/dev/null && [ $i -lt 30 ]; do sleep 1; i=$((i + 1)); done
|
||||
pgrep -f "bin/radianc[e]" >/dev/null && { echo "did not exit on TERM under the profiler, killing"; pkill -9 -f "bin/radianc[e]"; sleep 2; }
|
||||
|
||||
Reference in new issue
Block a user