Files
Deadcode 3b13fd3266 radiance 2.3.0
New models. Thinking Machines' Inkling 2 Mini by gostar (#584-#586): its text backbone and loop, the
release's NVFP4 and MXFP8 checkpoint read by the converter, an int8 trunk, the vision tower, tensor
parallelism, tool calls (with Warzuponus) and an image processor that matches transformers bit for
bit (millaguie). Inkling's routed experts are served in IQR-V4's four-bit trellis (moe_gemm_iqr),
fitted by GPTQ against Hessians the plugin now records (`--calib-dir`), its token embedding in int8
(read in place by embed_lookup), and incoai's DFlash2 drafter in four bits in place of the release's
DSpark. That container, 14.4 GiB with the vision tower, decodes 190 / 427 / 658 tokens a second at 1
/ 4 / 8 streams at tp 2 on two R9700 with `draft-window: adaptive` (code 240 / 550 / 790,
step-by-step arithmetic 358 / 811 / 1116): 19-43% ahead of the same target with the release's DSpark
drafter and 45-83% ahead of the all-int8 container (26.1 GiB, 124 / 263 / 386), at a mean KL of
0.0066 against the release's weights (int8: 0.0042). DeepSeek-V4.1-Flash on 2.x by baKon (#583),
with its vision tower, its IQ1_S and IQ2_XXS containers and linears and experts served in
llama.cpp's own blocks; parts ported from mikoskinen/r9700-exact-serving by Dad_Vibes' fork.
GLM-5.3-Flash on 2.x with its IQR / IQ8R container, an int8 latent cache and four-card serving by
AnimusNull (#566). Gemma 4 dense on EXL3-V3 by keptn42 (#537), on the EXL3 dense rows and
qwen35_exl3 tensor parallelism by Hero422. NVIDIA's 2-bit Nemotron-3.5-Bolt-74B-A9B on one card by
keptn42 (#477). Wan 2.2 TI2V-5B text-to-video and first-frame video by rkcth (#535). LFM3-1.7B on
RDNA3 iGPUs by DokterSmol (#578). Qwen3.8-27B in bf16 with the DFlash2 drafter, and bf16x12, bf16
weights packed losslessly in 12.25 bits, by eddie168 (#577). Int8 experts for drama-3 by morevgalex
(#598).

Speculative decoding. Draft trees for Qwen3.8-27B's DFlash2 drafts by Kezi (#450, opt-in): one card,
+17% at one stream and +14% at two. --draft-max-lanes and --draft-min-accept, two gates on a block
drafter, and --draft-window-ckpt, its window KV kept in the checkpoint slots, by rkcth (#600-#602).
`draft-window: adaptive` verifies each sequence's drafts up to the first one unlikely to be kept. A
verify's rows share each K and V tile in Inkling's attention by gostar (#608): 93 to 118 tokens a
second at a 70k-token prompt on one card.

Generation. Krea 2 instruction edits with one or two references and registered outfill, LoRA on the
image generators with bias deltas and row-mixer adapters applied per request, and MiniMax-H3's
model-declared sparse attention profiles, by rkcth (#534, #542, #543, #605-#609). MiniMax-H3's audio
reference guide pinned from a frame by 1beb (#595). LTX-2's chunk ceiling raised to 40 by Itoash
(#570).

Fleets and memory. memory.queue-reserve, the hardware queues a card keeps ready, by kevinjd (#589).
memory.pinned-numa-node by Foundry (#580). memory.card-headroom-mib on single-model tensor-parallel
budgets by zihaomu (#624). Parked weights rebuilt on the CPU, memory ownership kept across a failed
handoff and quiescent callbacks serialised, by rkcth (#557-#561). A warm load may unload a parked
model (#592); the first card listed chooses the architecture (#458).

Kernels. libr3d's packed dense IQR GEMM and routed IQR expert rows on gfx1100, and libhalo's GEMV
decode for Qwen3.8-Flash-Next's MoE down, by zihaomu (#562, #620, #622). GGML IQ2_XXS and IQ3_XXS
packed on the card by baKon.

Dashboard. KV cache in tokens (in use, capacity now and with all flexible space), live figures
through long prefill steps, step / decode / prefill / acceptance lines without holes, and expert hit
rates only on tiered models. Seven tile and history defects fixed by Noblistic (#597), vision
encoder and per-card hardware figures by davetha (#574), per-LoRA attribution by dowjames (#552).

Fixed. return_tokens / return_token_ids on the OpenAI endpoints (#571). reasoning_effort "none" and
"minimal" reach a template that takes them as levels, by millaguie (#608). Misaligned loads in the
windowed paged attention over an int8 cache (#540). A retired 27B head refused by name (#541).
rad-convert's GPU trellis jobs kept fed, and --reuse-only, by gostar (#575). jinja's tojson takes
sort_keys by Warzuponus (#582). hfget measures file sizes with stat, by kepler_62f (#623). The
tested C++ compiler is stated in the build guide by lowell80 (#551). The codebase was cleaned up:
shared helpers instead of repeated blocks, and the int8 linear, activation and GEMM code no longer
named after the retired fp8 formats.

Inkling 2 Mini is served in one form: IQR-V4 experts with the DFlash2 drafter
(StillDeadcode/inkling-2-mini-iq4r-v4 on Hugging Face, or
data/recipes/inkling2-mini-iq4r-v4.recipe). A container with the release's DSpark drafter, or with
NVFP4, int8 or 4-bit experts, is refused by name and needs converting again.

Plugin ABI 44: out-of-tree plugins need to be rebuilt.

Thanks to @gostar, @baKon, @Dad_Vibes, @AnimusNull, @keptn42, @Hero422, @rkcth, @DokterSmol,
@eddie168, @morevgalex, @Kezi, @1beb, @Itoash, @kevinjd, @Foundry, @zihaomu, @Noblistic, @davetha,
@dowjames, @Warzuponus, @millaguie, @kepler_62f, @lowell80 and @Code000.
2026-11-26 15:28:37 +01:00
..
2026-11-26 15:28:37 +01:00
…
…
2026-11-26 15:28:37 +01:00
…
…
…
…
…
2026-11-26 15:28:37 +01:00
2026-11-26 15:28:37 +01:00
2026-11-26 15:28:37 +01:00
2026-11-26 15:28:37 +01:00
2026-11-26 15:28:37 +01:00
…
…

scripts/

Harnesses that drive a running engine: bring a model up, measure it, and assert on what comes back over the wire. They are versioned with the engine so measurements stay reproducible, and each header records its method (why a window is sampled the way it is, which counter to trust), which is hard to reconstruct from the number alone.

Scripts that start a server or a conversion run the build at $BUILD, by default build/ in the checkout the script is in, and default to containers under $HOME/models/rad/ and checkpoints under $HOME/models/<org>/<name>. A script that starts a server first stops any radiance already running (oracle.sh only the one on its own port) and logs to $HOME/<script>.log. Most defaults are environment overrides (M= for the container, P= for the port, and so on); each script's header lists its own. A script that starts a server passes its settings as a flag list to radiance-flags BIN FLAGS..., which writes them as the YAML file the server reads (with rad-yaml, beside BIN) and runs BIN --config FILE in its place. Scripts that only attach to a live server need curl and jq; cardclock.py, agentreplay.py and stampgaps.py need python3. Scripts find each other through $(dirname "$0").

Bringing a model up

mcserve.sh MiniCPM5-2B IQ8R with its DSpark drafter (minicpm5-2b-iq8r.rad, int8 KV cache), left running on :8100. Records why max-model-len is the checkpoint's n_ctx_train (131072) and what a token of KV costs.
fnserve.sh Qwen3.8-Flash-Next, the production container w4nl64-i8lm.rad, left running on :8100. Records the production flags and their reasons: the 200K context and how the expert/cache split sizes the pool for it, the 2048-token chunk, the host prefix-cache tier and the lossy wht6 cross-rank wire.
fnstop.sh Stops whichever server is running and waits for the process to exit.
convdspark.sh Rebuilds the container mcserve.sh serves, with the drafter merged and every linear rotated int8 (data/recipes/minicpm5-2b-iq8r.recipe), as minicpm5-2b-iq8r.new.rad beside it. The checkpoint and drafter paths are fixed; RECIPE= overrides the recipe.
convfn.sh Rebuilds the container fnserve.sh serves, as w4nl64-i8lm.new.rad beside it, from data/recipes/qwen4exp-w4nl64-i8-hc8m.recipe. Needs CALIB=<dir>: the recipe's expert rule runs GPTQ against the calibration Grams there (docs/MOE-W4.md).
hfget.sh Fetches a Hugging Face repo with curl and jq. Resumable, and skips the duplicate weight formats a repo often carries beside its safetensors. A server whose model is a repo id runs it.
krea2_native.py Rewrites a Krea 2 DiT single file in Krea's own key names (turbo.safetensors, civitai and ComfyUI finetunes) as diffusers' transformer file, bytes unchanged, so it converts as the transformer/ of a Krea 2 pipeline directory (docs/GUIDE.md).
krea2_rebalance_calib.py Measures the constant of each Krea 2 rebalance preset (rebalance: balanced, detail, subtle): the taps' mean squares over twenty prompts through a pipeline's text encoder, and the renormalising factor arch/krea2 holds for them (docs/GUIDE.md). Needs torch and transformers.

Measuring

cstep2.sh Steady-state decode ms/step at each concurrency, against a live server. Waits until exactly C sequences are running before sampling and re-checks at the end, since a window with fewer than C at either edge measures no single concurrency. Model-agnostic (P= picks the port).
dprofd.sh Per-op device timing (profile-ops) at depth and concurrency on the 27B dense model with its DFlash2 drafter (qwen3.8-27b-fp8.rad); starts its own server on :8129 and needs a ~16K-token prompt (PROMPT=<file>). The counters are cumulative and a run starts with prefill, so one dump mixes prefill and decode; difference two dumps taken after prefill has ended.
fnpf.sh Prefill throughput of the server on $P, over the repository's own markdown, with a fresh nonce per rep so the prefix cache cannot serve it. Prints card temperature and clock beside every rep.
agentreplay.py Several agent conversations at once against a live server, each growing turn by turn to --context tokens and handing tasks to subagents that share its system prompt while it waits (--rewrite: a client that replaces its last message every turn). Prints per kind of turn how much of the prompt the cache served and how many continuing turns prefilled their history again, and the prefix-cache counters across the run. The conversations follow --seed and carry a fresh nonce, so two servers (one flag apart, restarted between) are sent the same work and share nothing with an earlier run. Takes the key from --api-key-file, never the command line.
fnconc.sh What a long prefill costs the decoders running beside it, and the prefill's own time, measured together: alone, then contended, with a warm pass discarded.
fntrace.sh A Flash-Next prefill under rocprofv3, on its own server, with the /stats link counters across the same request, giving the MoE GEMM's streamed-read rate.
mctrace.sh A MiniCPM5-2B decode trace under rocprofv3, on its own server, formatted for libr4d/isa/tsum.sh, mainly for its blocks column.
ident.sh Run-to-run reproducibility at a fixed configuration: one hash per (temperature, question), to compare against another run of the same configuration. A speculative run need not match a non-speculative one byte for byte (the split-K count is chosen from M, so reduction orders differ and a near-tie can flip late in a long answer), but a divergence within the first sentence or two is a defect.
cardclock.py What holds each card's clock under sustained load, and which card a tensor-parallel step waits for (the slowest rank ends the step). Reads every AMD card's gpu_metrics table ten times a second and counts a throttler bit only when the clock is lower while it is set (some firmware keeps a bit on at idle). Shows the engine's step counters per window, so a slow window is attributed to slower steps, fewer tokens per step or host time between steps. Drives its own greedy load, or with --watch only samples a server under real traffic; --compare shows two saved runs side by side. Read-only on the cards.
kv-resident-vs-stock.sh This build with kv-resident: 32768 against the stock 1.10.0 image without it, in interleaved ABBA rounds of one cold start a request; the mean paired delta with per-round values and a t interval (ROUNDS sets the resolution, ~2.0 % at 4). Both arms must tokenize the 16 110-token prompt alike and report cached_tokens 0.
kv-union.sh How large a ring must be: the union of distinct blocks one kv_resolve launch selects at 64k/128k-token prompts, the ring climbed from the 32 768-token floor until no launch overflows. Reports resolves, lookups, misses, the largest union and prefill time, and the overflow message verbatim; its last arm decodes a ~34k-token history past the floor ring against streaming off and passes only if the ring evicted.
kv-parity.sh That a ring covering the group's context streams nothing and changes no output byte: a dense and a sparse prompt without the key and with kv-resident: 4096 (the whole max-model-len x max-num-seqs), compared byte for byte, with profile-ops showing no kv_resolve issued.
kv-multiturn-recall.py Whether planted facts survive twenty turns whose history outgrows the ring: the same transcript with streaming off and with kv-resident: 32768 under max-model-len: 65536, a code planted at turn 2 and a surname at turn 5 asked at turn 20 (~49k prompt tokens). Fails if the off arm missed the cache on continuing turns or the on arm streamed nothing.
kv-stage-parity-64k.sh The prefill stage: streaming off against kv-resident: 32768 on a ~64k-token document, so every chunk past 32 768 tokens takes the one-layer stage; byte-identical output, the staged copies checked in layer order, and both arms' VRAM split printed. A run that takes the ring instead fails.
statsdump.py Records /stats to a JSONL file, one row per poll (--every, default 1 s), so the dashboard's figures can be read back over time on a machine without a Prometheus scraper. A row is the engine's snapshot verbatim plus the poll's time t and the gap since the last good poll dt_s; nothing is derived. The file is appended to and rotated at --max-mib (default 256, five generations). A failed poll leaves no row; a run that wrote no row, or can no longer write its file, exits 1. The key is taken from --api-key or RADIANCE_API_KEY.
stampgaps.py Reads the CSV that RADIANCE_AQL_STAMP=N writes (every dispatch of one recorded pass in N on card 0, start and end) and prints per kind of pass (told apart by tape length) the median wall, the busy time as the union over the queues, the idle share, the gap before an ordered start (p50, p90, sum) and the kernels by share of the dispatch time. The idle share is what chained launches could win at most, the gaps what they would remove. Stamping costs throughput of its own when passes are short (one in 50: 0.3 % at one GLM-5.3 stream, 4 % at eight), so take N larger at high concurrency.
oracle.sh Every op compared against libref on the operands the model issued, which rad-kbench cannot do: its operands are its own (dense, rank 2), while the engine's are arena slices and weights loaded from a file. Starts its own server on :8302. Read it for MISMATCH lines, and for NOT CHECKED lines naming rows whose weight layout has no published inverse and so cannot be compared.
expert_stats_report.py Reads the file --expert-stats writes and prints, per routed layer, the share of selections taken by the top 5/10/20 % of experts, the Gini coefficient, the experts never selected, and decode against prefill: each one's top-20 % share, the share of decode selections landing on prefill's top-20 % experts, the Jaccard overlap and the total-variation distance. The self-check line compares each layer's selections with its observed tokens × top_k, which is exact unless the drain lost histograms. Read it before spending expert bits or pinning a hot set: a layer's total is the same at every layer (top-k routing), so the totals rank nothing — the concentration and the decode/prefill disagreement do. Two layers with the same total can need opposite spending.

Regression checks against a live server

These cover what tests/chat_test.cpp cannot: the server, the wire format, and a real model's output. mcagent.sh and mcdecl.sh start their own MiniCPM5-2B server through mcserve.sh.

fndrop.sh Clients that disconnect mid-request, at points derived from a timed full request: the server must stay up and keep answering a reference question identically.
tierident.sh Whether a session that left VRAM comes back byte for byte, attention blocks and recurrent state both. The repeat from VRAM is the control: without it a differing hash proves nothing, since a cache hit could be tie-divergent. A run where nothing moved is a failure. On a hybrid model the linear-state checks are counters, not hashes: a lost snapshot does not show in the text, because the engine replays from further back and produces the same answer. Needs a server started with --prefix-cache-mib 512.
tiercross.sh The same check with two sessions in flight, the only way to catch one being served the other's context or state. Compares each restore against that session's device-hit run rather than its cold one, because a hybrid session's reuse is clamped to the last reachable checkpoint and a cold run reuses nothing.
mctools.sh The tool-call shapes hardest to parse: an array argument, two calls in one reply, prose before a call, plain chat with tools available. Asserts finish_reason and that no <function/<param/CDATA marker reaches content.
mcstream.sh Tool-call replies streamed, asserting on raw SSE fragments rather than the assembled message. Streamed content cannot be retracted, so a repair applied at the end is not a fix.
mcagent.sh What speculation is worth on an agentic workload: /v1/chat/completions with tools, a constrained decode. Speculation on and off alternate across restarts because the speculation depth is a server-level setting.
mcdecl.sh How often the drafter proposes, by context length. draft_acceptance_ratio is conditional on having drafted, so it can look healthy while tokens per step collapse; blocks per step separates the two.