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

+75 -3
View File
@@ -1584,8 +1584,8 @@ TEST(a_prefix_hit_with_no_checkpoint_near_the_cap_is_kept_whole) {
/* z-lab's DFlash on the Gemma 4 31B: a full-attention block drafter (no window), whose own group the
* prefix cache indexes like the trunk's full layers. A hit resumes the trunk's window from the
* window snapshot, so no paged group is left with a hole and the drafter drafts from the first
* decode. Counting the trunk's window as a hole, as before the snapshot was counted, put the
* drafter's floor at the hit, and a drafter with no window to slide never drafted again that turn. */
* decode. Counting the trunk's window as a hole would put the drafter's floor at the hit, and a
* drafter with no window to slide would not draft again that turn. */
TEST(a_full_attention_drafter_drafts_at_once_after_a_hit_the_window_snapshot_resumes) {
for (int counted = 0; counted < 2; ++counted) {
Fixture f;
@@ -3385,6 +3385,78 @@ TEST(the_cards_block_tables_match_the_manager_after_every_build) {
CHECK(checked > 100);
}
/* A streamed group's residency map and ring bookkeeping live in each rank's KV pool,
* but the manager the builder is given is rank 0's, so its pointers are rank 0's addresses. A
* two-rank batch must name rank r's own copies or device r resolves through device 0's memory
* (a page-not-present fault at --tp 2). The host mirror is the exception: RAD_MEM_HOST_MAPPED's
* device view is its host address on every card, so it is the same pointer on both ranks.
*
* The bases are fake and no map is dereferenced: what is under test is the rebasing arithmetic,
* not two cards. Both ranks use device 0 so the test runs on the host backend. */
TEST(a_two_rank_batch_rebases_stream_maps_into_each_ranks_pool_and_shares_the_mirror) {
Fixture f;
f.build();
ChunkGeometry geo;
CHECK_OK(chunk_geometry_resolve(f.prog, f.cfg, &geo));
KVGeom kvg = KVGeom::of(f.prog.kv_groups);
for (size_t i = 0; i < kvg.g.size(); ++i) {
const int64_t w = f.kv.state_index_width((int32_t)i);
if (w > 0) kvg.g[i].sidx_width = w;
}
/* Two pools' worth of address space, only ever differenced, never dereferenced. */
alignas(16) char pool0[0x200], pool1[0x200];
char* const base[2] = { pool0, pool1 };
const int64_t res_off = 0x40, sblk_off = 0x80, sst_off = 0xc0, ctl_off = 0x100;
alignas(16) uint8_t mirror[0x100];
f.kv.streams = true;
f.kv.stream.host = mirror;
f.kv.stream.res = (int32_t*)(base[0] + res_off);
f.kv.stream.slot_block = (int32_t*)(base[0] + sblk_off);
f.kv.stream.slot_state = (int32_t*)(base[0] + sst_off);
f.kv.stream.ctl = (int32_t*)(base[0] + ctl_off);
f.kv.stream.block_bytes = 64;
f.kv.stream.slots = 8;
BatchBuilder bb;
std::vector<BatchBuilder::RankIO> rio;
rio.push_back({ 0, nullptr, &f.prog, base[0] });
rio.push_back({ 0, nullptr, &f.prog, base[1] });
CHECK_OK(bb.init(f.prog, f.cfg, geo, kvg, rio));
CHECK_OK(f.kv.add_sequence(1));
CHECK_OK(f.kv.ensure(1, 80));
StepPlan p;
p.reset();
StepEntry e;
e.seq = 1;
e.card = 0;
e.n_tokens = 1;
e.ctx_len = 79;
p.e.push_back(e);
p.n_tok = 1;
REQUIRE(bb.build(p, f.kv, 0) != nullptr);
for (int r = 0; r < 2; ++r) {
const RadBatch* b = bb.batch_for(r);
REQUIRE(b != nullptr);
const RadKVStream* s = b->kv[0].stream;
REQUIRE(s != nullptr);
CHECK_EQ((void*)s->res, (void*)(base[r] + res_off));
CHECK_EQ((void*)s->slot_block, (void*)(base[r] + sblk_off));
CHECK_EQ((void*)s->slot_state, (void*)(base[r] + sst_off));
CHECK_EQ((void*)s->ctl, (void*)(base[r] + ctl_off));
/* Same mirror address, and the geometry is rank-independent. */
CHECK_EQ((void*)s->host, (void*)mirror);
CHECK_EQ(s->block_bytes, (int64_t)64);
CHECK_EQ(s->slots, (int64_t)8);
/* Groups that do not stream keep a null view. */
for (int gi = 1; gi < b->n_kv_groups; ++gi)
CHECK(b->kv[gi].stream == nullptr);
}
bb.fini();
}
/* A sequence that leaves a row and returns to it is restaged whole. Its change marks are taken
* wherever it is written, so the old row's copy goes stale; restaging only later changes would
* keep entries a rollback replaced earlier. The scheduler's own passes reorder rows, so this
@@ -4061,7 +4133,7 @@ TEST(a_step_is_issued_ahead_only_once_the_requests_speculation_is_fixed) {
CHECK(f.sch.step_next() != nullptr);
}
/* No step is issued ahead behind one that ends every request it carries (#225): its rows would
/* No step is issued ahead behind one that ends every request it carries: its rows would
* belong to finished requests, and a request arriving after the last token would wait out its
* forward pass. The verify ends a request most likely when its drafts hold an end-of-generation
* id, certainly when its first token is the request's last (max_tokens), and possibly when that