Archived
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:
commit
6645337f69
198 files changed
+20904
-3240
No files matched your search
+9
-18
@@ -754,10 +754,9 @@ extern "C" int r4d_shape_kv_store(const RadParam* p, int n_p, int operand,
|
||||
R4D_PICK(l);
|
||||
}
|
||||
|
||||
/* The streamed store: kv_store's geometry with the group's two copies beside the ring. One block
|
||||
* and one ring slot, with every token on its own position of that block: the draw vocabulary cannot
|
||||
* express an injective residency map, and two blocks drawing one slot would be a race between two
|
||||
* tokens on one ring byte. The partly resident map and the mirror-only step are built by hand. */
|
||||
/* The streamed store: kv_store's geometry plus the mirror and the residency map. One block, one ring
|
||||
* slot, every token on its own position (libref/ref_shapes.cpp says why); the partly resident map
|
||||
* and the mirror-only step are built by hand. */
|
||||
extern "C" int r4d_shape_kv_store_streamed(const RadParam* p, int n_p, int operand,
|
||||
RadOpdDesc* out) {
|
||||
const int64_t M = pi(p, n_p, "M");
|
||||
@@ -1160,12 +1159,9 @@ extern "C" int r4d_shape_qkv_norm_rope_kv_store(const RadParam* p, int n_p, int
|
||||
R4D_PICK(l);
|
||||
}
|
||||
|
||||
/* qk_norm_rope_gate_kv_store_streamed -- the prologue's operands, then the streamed store's: `v`,
|
||||
* `slot_mapping`, the ring, the residency map and the layer's mirror. One block, one ring slot and
|
||||
* every token on its own position of it, exactly as kv_store_streamed's shape says (the draw
|
||||
* vocabulary cannot express an injective block -> slot map, and two blocks in one slot would race).
|
||||
* E4M3 or bf16: both planes are byte planes whose pitch is one block, so a bf16 mirror row is twice
|
||||
* the fp8 row. */
|
||||
/* qk_norm_rope_gate_kv_store_streamed: the prologue's operands, then the streamed store's (`v`,
|
||||
* `slot_mapping`, the ring, the map and the mirror), on one block as kv_store_streamed's shape is.
|
||||
* A bf16 mirror row is twice the fp8 one. */
|
||||
extern "C" int r4d_shape_qk_norm_rope_gate_kv_store_streamed(const RadParam* p, int n_p,
|
||||
int operand, RadOpdDesc* out) {
|
||||
if (operand < 9) return r4d_shape_qk_norm_rope_gate(p, n_p, operand, out);
|
||||
@@ -1925,14 +1921,9 @@ extern "C" int r4d_shape_qsa_select(const RadParam* p, int n_p, int operand, Rad
|
||||
R4D_PICK(l);
|
||||
}
|
||||
|
||||
/* The residency map and the two byte planes. `sel` is described as block ids, which is what
|
||||
* `qsa_select` leaves there; past `nsel` it is -1 padding the op does not touch.
|
||||
*
|
||||
* A described residency map can only be an all-resident one: the description vocabulary draws an
|
||||
* index in [0, idx_max) or a constant, and a cold entry is -1, which no draw expresses. So a tool
|
||||
* that calls this op cold sees every map entry at 0, which exercises the epoch, the rewrite and
|
||||
* the bookkeeping but never a miss, an eviction or a copy. The service-shaped cases are built by
|
||||
* hand in tests/ref_test.cpp and in this plugin's selftest, against libref. */
|
||||
/* The residency map and the two byte planes: `sel` is block ids, -1 past `nsel`. A described map
|
||||
* is all-resident (no draw expresses -1), so a cold call never misses; the service-shaped cases
|
||||
* are built by hand in tests/ref_test.cpp and this plugin's selftest. */
|
||||
extern "C" int r4d_shape_kv_resolve(const RadParam* p, int n_p, int operand, RadOpdDesc* out) {
|
||||
|
||||
const int64_t M = pi(p, n_p, "M"), blocks = pi(p, n_p, "blocks");
|
||||
|
||||
Reference in new issue
Block a user