radiance 1.12.0

New models:
- Fish Audio drama-3: speech with speaker tags and inline direction, voices cloned from reference
  clips (the `references` field of /v1/audio/speech and the streaming session), two cards
- Gemma 4 E2B/E4B (KV-shared layers, per-layer embeddings, clipped vision linears), with
  NVIDIA-Nemotron-3.5-Bolt-E4B in bf16 with DFlash and vision on one card, and E4B recipes

Speed:
- MXFP4 GEMMs for one to 64 rows and a tiled prefill GEMM at TN=4 from 1024 rows: the 27B MXFP4
  with DFlash2 decodes about 1% faster at c1, 5% at c4 and 14% at c16
- The fp8 and int8 LM heads read their weight once for 65 to 128 rows
- A prefill step of one sequence runs in two pieces on a second lane at two ranks (qwen35_fp8,
  gemma3): a 45K-token prompt on the 27B fp8 in 15.1 s instead of 16.2 s
- Gemma 3's fused all-reduce junctions also under a lossy wire
- --draft-short-from N: a block drafter runs its shorter block from N decoding sequences on
  (off by default; with 8 on the 27B MXFP4: c8 +12%, c16 +18%, c64 +32%, c1 unchanged)
- --tp-attn-split rows: GLM-5.3-Flash's MLA attention split by rows over the ranks, 18 to 21%
  faster prefill; lossy, `heads` stays the default
- --draft-coupling on: Qwen3.8-Flash-Next's MTP drafter samples its proposals from its reranked
  top-8 and the target's draw is coupled to it; pays at high temperatures (c1 at T 1.0: 155 ->
  178 tok/s), costs at low ones; off by default

Features:
- Edited prompts on windowed models (Gemma 4) reuse their prefix: periodic window snapshots, and
  snapshot-backed prefix KV kept across recomputes (an edited tail on Gemma 4 31B: 96 s -> 2.6 s)
- DELETE /sessions/<label> and DELETE /sessions?id=<id> forget one stored conversation
- --state-cache-dtype f16: the delta-net state cache at half the memory (qwen35 plugins; lossy)

Fixes:
- A browser's CORS preflight allows DELETE

Changes: Plugin ABI 27: out-of-tree plugins must be rebuilt. The environment switches the PRs
added are flags now (--tp-attn-split, --draft-coupling, --state-cache-dtype).
This commit is contained in:
137 files changed
+12959 -1126

No files matched your search

+43 -5
View File
@@ -1,8 +1,8 @@
/* abi_layout_table.h -- every abi/ struct's size and field offsets at RAD_ABI_VERSION 26 and
/* abi_layout_table.h -- every abi/ struct's size and field offsets at RAD_ABI_VERSION 27 and
* RAD_FORMAT_VER 2, as { type, field, offset, size } rows ("" is the struct itself). A snapshot
* of the headers on x86-64 Linux, which abi_layout_test.cpp holds the layout to; regenerate it
* from the test's printout only together with a version bump. */
{ "RadArchProbe", "", 0, 80 },
{ "RadArchProbe", "", 0, 88 },
{ "RadArchProbe", "draft_depth", 0, 4 },
{ "RadArchProbe", "draft_depth_fixed", 4, 4 },
{ "RadArchProbe", "shape_probe_ok", 8, 4 },
@@ -16,6 +16,8 @@
{ "RadArchProbe", "kv_quant_ok", 68, 4 },
{ "RadArchProbe", "chain_pays", 72, 4 },
{ "RadArchProbe", "control_vector_ok", 76, 4 },
{ "RadArchProbe", "tp_attn_rows_ok", 80, 4 },
{ "RadArchProbe", "state_f16_ok", 84, 4 },
{ "RadArgs", "", 0, 64 },
{ "RadArgs", "t", 0, 8 },
{ "RadArgs", "n_t", 8, 4 },
@@ -85,7 +87,7 @@
{ "RadBufDecl", "domain", 60, 4 },
{ "RadBufDecl", "derive", 64, 8 },
{ "RadBufDecl", "kv", 72, 4 },
{ "RadBuildCtx", "", 0, 120 },
{ "RadBuildCtx", "", 0, 136 },
{ "RadBuildCtx", "rank", 0, 4 },
{ "RadBuildCtx", "world_size", 4, 4 },
{ "RadBuildCtx", "max_tok", 8, 8 },
@@ -105,7 +107,10 @@
{ "RadBuildCtx", "kv_quant", 104, 4 },
{ "RadBuildCtx", "attn_prefill_fp8", 108, 4 },
{ "RadBuildCtx", "cvec", 112, 8 },
{ "RadAudioGenBatch", "", 0, 264 },
{ "RadBuildCtx", "tp_attn_rows", 120, 4 },
{ "RadBuildCtx", "state_dtype", 124, 4 },
{ "RadBuildCtx", "draft_coupling", 128, 4 },
{ "RadAudioGenBatch", "", 0, 344 },
{ "RadAudioGenBatch", "n_lane", 0, 8 },
{ "RadAudioGenBatch", "lane", 8, 8 },
{ "RadAudioGenBatch", "lane_h", 16, 8 },
@@ -141,7 +146,17 @@
{ "RadAudioGenBatch", "voc_left", 244, 4 },
{ "RadAudioGenBatch", "voc_right", 248, 4 },
{ "RadAudioGenBatch", "voc_frame0", 256, 8 },
{ "RadAudioGenDecl", "", 0, 224 },
{ "RadAudioGenBatch", "prev_slot", 264, 8 },
{ "RadAudioGenBatch", "prev_pos", 272, 8 },
{ "RadAudioGenBatch", "prev_used", 280, 8 },
{ "RadAudioGenBatch", "n_ref", 288, 8 },
{ "RadAudioGenBatch", "ref_samples", 296, 8 },
{ "RadAudioGenBatch", "ref_audio", 304, 8 },
{ "RadAudioGenBatch", "ref_cu", 312, 8 },
{ "RadAudioGenBatch", "ref_cu_h", 320, 8 },
{ "RadAudioGenBatch", "ref_frame", 328, 8 },
{ "RadAudioGenBatch", "ref_frame_h", 336, 8 },
{ "RadAudioGenDecl", "", 0, 280 },
{ "RadAudioGenDecl", "name", 0, 8 },
{ "RadAudioGenDecl", "tmpl", 8, 8 },
{ "RadAudioGenDecl", "neg_token", 16, 4 },
@@ -173,6 +188,14 @@
{ "RadAudioGenDecl", "first_frame", 204, 4 },
{ "RadAudioGenDecl", "voc_chunk", 208, 8 },
{ "RadAudioGenDecl", "voc_context", 216, 8 },
{ "RadAudioGenDecl", "branches", 224, 4 },
{ "RadAudioGenDecl", "input_special", 228, 4 },
{ "RadAudioGenDecl", "tmpl_ref", 232, 8 },
{ "RadAudioGenDecl", "ref_item", 240, 8 },
{ "RadAudioGenDecl", "ref_rate", 248, 8 },
{ "RadAudioGenDecl", "ref_hop", 256, 8 },
{ "RadAudioGenDecl", "ref_max_samples", 264, 8 },
{ "RadAudioGenDecl", "ref_max", 272, 4 },
{ "RadControlVector", "", 0, 32 },
{ "RadControlVector", "dir", 0, 8 },
{ "RadControlVector", "scales", 8, 8 },
@@ -796,3 +819,18 @@
{ "RadYarn", "low", 4, 4 },
{ "RadYarn", "high", 8, 4 },
{ "RadYarn", "magnitude", 12, 4 },
{ "RadMtpCoupleDraw", "", 0, 32 },
{ "RadMtpCoupleDraw", "seed", 0, 8 },
{ "RadMtpCoupleDraw", "base", 8, 8 },
{ "RadMtpCoupleDraw", "seq", 16, 8 },
{ "RadMtpCoupleDraw", "card", 24, 4 },
{ "RadMtpCoupleDraw", "mode", 28, 4 },
{ "RadMtpCoupleState", "", 0, 152 },
{ "RadMtpCoupleState", "draw", 0, 32 },
{ "RadMtpCoupleState", "pos", 32, 8 },
{ "RadMtpCoupleState", "status", 40, 4 },
{ "RadMtpCoupleState", "round", 44, 4 },
{ "RadMtpCoupleState", "x", 48, 4 },
{ "RadMtpCoupleState", "count", 52, 4 },
{ "RadMtpCoupleState", "ids", 56, 32 },
{ "RadMtpCoupleState", "q", 88, 64 },