radiance 1.11.0

New models:
- GLM-5.3-Flash reads pictures: its vision tower and processor (--image-tokens sets the budget),
  with decode kernels for a few rows and the DSA indexer split over the ranks
- Sage-A1.5 (fp8 and MXFP4) with its vision tower and a DFlash2 drafter
- Unlimited-OCR (bf16)
- Gemma 4 31B with z-lab's DFlash and RedHatAI's DFlash2 drafters; at four cards its all-reduces
  are fused with the junctions, overlapped with the compute and sent compressed
- Ornith-1.5-35B-A3B w4a8 compose files

Speed:
- Block drafters (DFlash, DFlash2) accept their drafts on the card, and the next step is issued
  ahead
- The four-rank all-reduce is faster for every --tp 4 model
- qwen35_w8a8: the norms and SiLU write the int8 linears' operands directly
- --attn-prefill-fp8 off|qk|pv|both: fp8 QK and PV legs for the h256 prefill attention (about +20%
  prefill on a 221K-token prompt for the 27B MXFP4 at TP2); lossy, off by default

Features:
- Control vectors: --control-vector off|on|disabled (disabled by default), a per-request switch,
  and the published Qwen3.8-Flash-Next refusal-direction vector (its license is in NOTICE)
- Krea 2: the `rebalance` request field, as ComfyUI's ConditioningKrea2Rebalance
- Cards with a small PCI BAR run, with kernel arguments kept in host memory
- Dashboard: live acceptance figures; statsdump rotates its file at a size cap
- KV caches every rank holds whole (GLM-5.3's latent and index caches) take one host-tier slot

Fixes:
- Long conversations taking turns no longer fall back to an early snapshot: a host-tier restore
  makes room as memory pressure does and waits a step for the previous turn's release (two
  conversations of 142K and 147K tokens sent back to back: 31.3 s per turn before, 2.8 s now)
- Kernels before Linux 6.16 (amdgpu below 3.64) no longer hang at startup: virtual memory
  management is turned off there, with a warning
- Gemma 4 dense scales its token embeddings as Hugging Face does (bf16), which changes its output
- The four-rank all-reduce fences prefill-sized messages, for a rare divergence after a fresh start
- GLM-5.3: every refusal names the setting and the reason; its template keeps string content
- Several pictures in one request no longer refuse processors that take one image at a time

Changes: Plugin ABI 26: out-of-tree plugins must be rebuilt. The environment switches the PRs
added are fixed rules or flags now (R4D_ATTN_FP8 is --attn-prefill-fp8).
This commit is contained in:
Deadcode committed 2026-10-23 11:57:52 +02:00
210 files changed
+14363 -2138

No files matched your search

+15 -15
View File
@@ -214,6 +214,7 @@ TEST(stats_carries_the_engine_the_requests_and_the_snapshot) {
CHECK_EQ(s["passes"].value("played", (int64_t)0), (int64_t)10);
CHECK_EQ(s["ckpt_evictions"].value("store_full", (int64_t)0), (int64_t)3);
CHECK_EQ(s["hit_cuts"].value("no_snapshot", (int64_t)0), (int64_t)2);
CHECK_EQ(s["hit_cuts"].value("resumed_below", (int64_t)0), (int64_t)4);
CHECK_EQ(s.value("hit_cut_tokens", (int64_t)0), (int64_t)9000);
CHECK_EQ(d.srv->router().call("GET", "/graph").status, 501);
@@ -251,12 +252,9 @@ TEST(sessions_lists_each_conversation_and_what_the_tiers_did) {
/* Every field the page's script reads from /stats (in its update and the request table) and from
* /sessions (its loader and the session rows) is one the routes emit for a populated engine. A
* rename on either side otherwise blanks a panel and reports nothing. */
/* The price of a restart, measured rather than guessed: whatever decides whether a restart is
* worth suffering needs this figure, and a guessed cost would decide the answer by itself. The
* page stopped consuming it on 2026-10-18, when the payback clause it fed was withdrawn -- the
* field stays because it is the missing half of that decision made downstream, by a human or a
* tool. A test runs in microseconds, so a real note_ready() would compute 0 -- indistinguishable
* from "never called". Passing a synthetic start exercises the arithmetic through the real route. */
/* /stats reports the measured startup time, the cost side of any decision to restart; the page
* does not read it. A test starts in microseconds, where a real note_ready() would compute 0 (the
* same as "never called"), so a synthetic start exercises the arithmetic through the real route. */
TEST(stats_reports_how_long_bringup_took_once_the_server_listens) {
Dash d(false);
/* Before the server has listened, there is no measured cost to report. */
@@ -275,22 +273,20 @@ TEST(stats_reports_how_long_bringup_took_once_the_server_listens) {
CHECK_EQ(d.get("/stats").value("startup_s", (int64_t)-1), (int64_t)47);
}
/* The pooled ring's element shape is a contract between two functions in the page, and no
* browser runs here to notice when they disagree. accWindow pushes {ratio, dr, da}; acceptTriple
* iterates the ring as `d` and reads `last`. When a rename left acceptTriple reading accPrev's
* {r, a} instead, the pooled figures became NaN and the detail line froze at "recent -" while
* every C++ test stayed green (Turnstone judge slices 08 and 11, 2026-10-20). So: scan the page
* text and hold the two sides to the same names. */
/* The pooled acceptance ring's element shape is a contract between two functions of the page,
* and no browser runs here: accWindow returns {ratio, dr, da}, and acceptTriple reads the ring's
* entries as `d` and `last`. A field name it reads that the ring does not carry is undefined in
* JavaScript, and the pooled figures render as NaN. */
TEST(the_pooled_acceptance_ring_reads_the_names_accWindow_writes) {
Dash d(false);
const std::string p = d.srv->router().call("GET", "/").body;
const std::string aw = function_body(p, "function accWindow(");
const std::string at = function_body(p, "function acceptTriple(");
REQUIRE(!aw.empty() && !at.empty());
/* what goes INTO the ring */
/* what goes into the ring */
CHECK(aw.find("dr: dr") != std::string::npos);
CHECK(aw.find("da: da") != std::string::npos);
/* what comes OUT of it: every `d.<field>` and `last.<field>` must be a ring name */
/* what comes out of it: every `d.<field>` and `last.<field>` must be a ring name */
const std::set<std::string> ring = {"dr", "da"};
for (const std::string& n : fields(at, "d")) {
CHECK(ring.count(n) == 1);
@@ -302,7 +298,7 @@ TEST(the_pooled_acceptance_ring_reads_the_names_accWindow_writes) {
if (!ring.count(n))
fprintf(stderr, " acceptTriple reads last.%s, which the ring does not carry\n", n.c_str());
}
/* and the ring must not be empty by construction: the push is gated on dr > 0 */
/* only polls that drafted enter the ring */
CHECK(aw.find("dr <= 0") != std::string::npos);
}
@@ -376,6 +372,8 @@ TEST(the_bridge_reads_the_binding_paged_group_and_sums_only_bytes) {
group(2, 0, 8, 0, false, 500); /* linear state, full, no token axis */
group(3, 16, 4, 0, true, 64); /* a drafter's window, always full */
m.prefix_held_tokens = 5000;
m.hit_cut_resumed_below = 6;
m.prefix_restore_cuts = 7;
m.draft_depth_seen = 70;
for (int j = 0; j < 64; ++j) { m.draft_pos_reached[j] = 100 - j; m.draft_pos_accepted[j] = j; }
@@ -390,6 +388,8 @@ TEST(the_bridge_reads_the_binding_paged_group_and_sums_only_bytes) {
CHECK_EQ(o.kv_tokens_cached, o.kv_tokens_used);
CHECK_EQ(o.draft_depth_seen, server::SchedMetrics::MAX_DRAFT_POS);
CHECK_EQ(o.draft_pos_reached[63], (int64_t)37);
CHECK_EQ(o.hit_cut_resumed_below, (int64_t)6);
CHECK_EQ(o.prefix_restore_cuts, (int64_t)7);
/* The fuller group binds wherever it sits in the list. */
group(0, 16, 200, 10, false, 1000);