radiance 1.13.0

New models:
- Tencent Hy-Memory (HYV3) from its BF16, FP8 and GGUF checkpoints, with its native tool calls
- M2XFP4: metadata-augmented MXFP4 weights for Qwen3.8-27B and its DFlash2 drafter (top-1 89.1% ->
  92.4% against plain MXFP4), its quantiser and recipe, and ParoQuant's M2XFP4 checkpoints
- Gemma 4 E2B/E4B audio input; NVIDIA-Nemotron-3.5-Bolt-E4B in int8 and 4-bit, on two cards by
  default; Ornith-1.5-122B compose files

Speed:
- Weight reads beside the decode all-reduces (qwen35_fp8, gemma3; --weight-prefetch, on by default):
  the 27B MXFP4 with DFlash2 61.2 -> 67.9 tok/s at c1, TranslateGemma 27B +13%
- Head-256 split-KV decode attention at 256 workgroups and without bank conflicts (27B: +3-5% a
  step at 25-41K context), and the prefill KV split for small launches (a short turn over a long
  context decodes the other sequences 27% faster in that step)
- MXFP4 decode gate_up, activation and fp8 quantiser in one launch (27B, Gemma 3 up to 64 rows:
  TranslateGemma +2-5% at 2-8 streams)
- ParoQuant int4/int5 tiled GEMMs 6-9% faster
- Speculation: a step's tokens are sent before the drafter's passes end, no step waits behind one
  that ends its requests, and the MTP head's first draft no longer collapses after short chats in
  the prefix cache

Features:
- --kv-resident N: KV streaming for a context bigger than VRAM (qwen4exp_fp8, GLM-5.3)
- MiniMax-H3: reference media and keyframe conditioning with the VAE encoders
- Krea 2 rebalance presets balanced, detail and subtle
- The dashboard's request history; a stall watch that reports a frozen step's thread and stack
- rad-tune at the served configuration, collectives measured as the exchange; Gemma 4 E2B/E4B's
  per-layer embeddings read ahead off the step path
- A GPTQ calibration tap and recipe for Gemma 4 31B's w4a8 container

Fixes:
- The two-rank all-reduce checks that a peer's push has landed before reducing it
- z-lab's DFlash drafter on Gemma 4 31B keeps drafting after a prefix-cache hit
- MiniMax-H3's modulation rows

Changes: Plugin ABI 31: out-of-tree plugins must be rebuilt. RADIANCE_PREFETCH_BESIDE is
--weight-prefetch now; RADIANCE_NO_HUGE_PAGES, RADIANCE_IDS_EARLY, RADIANCE_ATTN_BAND_SPLIT,
R4D_PREFILL_SPLITS, RAD_PLE_TIMING and RAD_PLE_CACHE_ROWS are gone.
This commit is contained in:
Deadcode committed 2026-10-27 16:47:35 +01:00
198 files changed
+20904 -3240

No files matched your search

+18 -6
View File
@@ -289,6 +289,9 @@ struct KVGroupInfo {
int64_t bytes_per_state = 0; /* linear/conv: per sequence */
std::vector<int> layers;
bool zero = false; /* rad_kv_group_zero: declared for position, nothing carved */
/* rad_kv_group_dense_read: read over the whole history every step (an indexer's block keys), so
* it cannot stream and must hold every sequence's context while a sibling streams. */
bool dense_read = false;
bool replicated = false; /* rad_kv_group_replicated: the same bytes on every rank */
/* Bound only at meta.n_layers and above: the drafter's own cache, which no trunk layer reads.
* Set at declare (Builder::finish_kv_groups). */
@@ -504,12 +507,10 @@ public:
Geometry geom;
std::string geom_key;
const RadKernelInfo* info = nullptr;
/* The instance init() produced for this instantiation, null for a kernel with no init.
* A collective's launch cannot be formed without it: the peer bundle -- the scratch, the
* flags and the sequence counters, published to every rank and made peer-accessible at
* init -- is what makes the exchange addressable, and RadArgs carries no other route to
* it. The instance belongs to the rank this Program was declared for (Program::ctx), and
* the Registry that made it must outlive the launch (spec §1, §15). */
/* The instance init() made for this instantiation, null for a kernel with no init. A
* collective's launch reaches its peer bundle (scratch, flags, sequence counters) only
* through it. It belongs to the rank this Program was declared for, and the Registry that
* made it must outlive the launch (spec §1, §15). */
void* instance = nullptr;
};
std::vector<TuneRequest> tune_requests;
@@ -775,6 +776,10 @@ struct Config {
/* --tp-attn-split heads|rows: 1 runs a prefill-sized step's attention by rows over the ranks
* (RadBuildCtx::tp_attn_rows). Not bit-identical to the head split, so heads is the default. */
int tp_attn_rows = 0;
/* --weight-prefetch on|off: off declares none of the plugin's weight reads beside the
* collectives (RadBuildCtx::weight_prefetch_off), for an engine that shares its cards with
* another server, where the second lane's read costs a queue switch every decode step. */
bool weight_prefetch = true;
/* Smallest all-reduce message, in KiB, that the lossy wire compresses; smaller ones are sent
* exact. Compression pays only when the transfer is bandwidth-bound: a decode step's handful
* of residual rows costs more to rotate than it saves, while a prefill chunk is far larger.
@@ -826,6 +831,13 @@ struct Config {
* accepted in e4m3 (RadBuildCtx::attn_prefill_fp8). Lossy, so off is the default.
* attn_prefill_fp8_name() spells it as the flag does. */
int attn_prefill_fp8 = 0;
/* --kv-resident N: tokens of the sparse attention group's context its VRAM ring holds
* (docs/KV-STREAMING.md). 0 is off; a ring that covers `max_seqs x max_ctx` streams nothing; a
* ring below kStreamFloorTokens or one decode step's selection is raised to it. */
int64_t kv_resident = 0;
/* Derived: whether a group streams, set by kvstream_cap_probe before the pool is sized (a
* streamed group's ceiling is its ring and stage, not its cache); the KV MiB rounding reads it. */
bool kv_streams = false;
int64_t host_pool_mib = 0;
int64_t host_headroom_mib = 4096; /* --host-headroom-mib: RAM left free for the system at startup */
/* File tier for weights: what fits in neither the VRAM slab nor the pinned host pool is read