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
radiance-sycl/scripts/mctrace.sh
T
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

35 lines
1.8 KiB
Bash
Executable File

#!/bin/sh
# MiniCPM5-2B decode under rocprofv3 kernel tracing, mainly for the BLOCKS column: a 2B dense
# model at tp2 has small N per rank, so a decode GEMM may launch too few workgroups (2048/tile_n
# on a 64-CU card leaves most of it idle).
# N=<decode tokens> OUT=<trace dir> scripts/mctrace.sh
P=8102
M="${M:-$HOME/models/rad/minicpm5-2b-dspark.v2.rad}"
N="${N:-140}"
OUT="${OUT:-$HOME/traces/mc}"
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
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 radiance_home \
--max-num-seqs 8 --max-model-len 16384 --tp 2 \
--gpu-headroom-mib 160 --kv-cache-dtype fp8 --max-num-batched-tokens 512 \
$EXTRA --port $P > "$HOME/mctrace.log" 2>&1 &
for i in $(seq 1 90); do
[ "$(curl -s -m 3 -o /dev/null -w %{http_code} http://localhost:$P/health 2>/dev/null)" = 200 ] && break
pgrep -f "bin/radianc[e]" >/dev/null || { echo DIED; tail -5 "$HOME/mctrace.log"; exit 1; }
sleep 2
done
curl -s -m 900 http://localhost:$P/v1/completions -H "Content-Type: application/json" \
-d "{\"model\":\"m\",\"prompt\":\"Write a long essay about the sea.\",\"max_tokens\":$N,\"temperature\":0,\"ignore_eos\":true}" -o /tmp/mct.out
echo "completion=$(jq -r .usage.completion_tokens /tmp/mct.out 2>/dev/null)"
pkill -f "bin/radianc[e]"
for i in $(seq 1 60); do pgrep -f "bin/radianc[e]" >/dev/null || break; sleep 1; done
for i in $(seq 1 120); do [ -s "$OUT/k_kernel_trace.csv" ] && break; sleep 2; done
for i in $(seq 1 60); do pgrep -f rocprofv[3] >/dev/null || break; sleep 2; done
echo TRACEDONE