Archived
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:
commit
9eaf10da6e
210 files changed
+14363
-2138
No files matched your search
@@ -228,4 +228,71 @@ TEST(the_sage_recipe_decides_the_model_it_was_written_for) {
|
||||
CHECK(r.match(n) == nullptr);
|
||||
}
|
||||
|
||||
/* The two Sage-A1.5 containers with the DFlash2 drafter in place of the MTP head: the trunk's
|
||||
* rules unchanged in form (block fp8, or MXFP4 for the 4-bit sibling, whose lm_head stays block
|
||||
* fp8), the drafter's linears in the trunk's form, its draft head the 2-bit copy, and no rule for
|
||||
* an MTP head the container does not carry. The trunk's `blk.*` patterns do not reach the
|
||||
* drafter's `dflash.blk.*` names, and the drafter's norms, selector and convolution stay as the
|
||||
* checkpoint holds them. */
|
||||
TEST(the_sage_dflash2_recipes_decide_the_trunk_and_the_drafter) {
|
||||
std::string dir = __FILE__;
|
||||
dir = dir.substr(0, dir.find_last_of('/')) + "/../data/recipes";
|
||||
struct Case { const char* file; const char* codes; const char* grid_key; const char* grid; };
|
||||
const Case cases[] = { { "sage-a1.5-fp8-df2.recipe", "fp8_e4m3", "block", "128x128" },
|
||||
{ "sage-a1.5-mxfp4-df2.recipe", "fp4_e2m1", "group", "32" } };
|
||||
for (const Case& c : cases) {
|
||||
std::ifstream in(dir + "/" + c.file);
|
||||
REQUIRE(in.good());
|
||||
std::string text((std::istreambuf_iterator<char>(in)), std::istreambuf_iterator<char>());
|
||||
Recipe r;
|
||||
std::string why;
|
||||
REQUIRE_EQ(r.add_text(text, c.file, &why), RAD_OK);
|
||||
CHECK_EQ(r.rules().size(), (size_t)19);
|
||||
|
||||
const char* linears[] = { "blk.0.attn_qg.weight", "blk.39.attn_k.weight",
|
||||
"blk.3.attn_v.weight", "blk.39.attn_output.weight",
|
||||
"blk.0.ssm_inz.weight", "blk.39.ssm_out.weight",
|
||||
"blk.0.ffn_gate_up_exps.0.weight",
|
||||
"blk.39.ffn_down_exps.255.weight",
|
||||
"blk.0.ffn_gate_up_shexp.weight", "blk.39.ffn_down_shexp.weight",
|
||||
"dflash.fc.weight", "dflash.blk.0.attn_q.weight",
|
||||
"dflash.blk.5.attn_k.weight", "dflash.blk.5.attn_v.weight",
|
||||
"dflash.blk.5.attn_output.weight",
|
||||
"dflash.blk.0.ffn_gate_up.weight",
|
||||
"dflash.blk.5.ffn_down.weight" };
|
||||
for (const char* n : linears) {
|
||||
const RecipeRule* m = r.match(n);
|
||||
REQUIRE(m != nullptr);
|
||||
CHECK_EQ(m->quantizer, std::string("rtn"));
|
||||
CHECK(has_opt(m, "codes", c.codes));
|
||||
CHECK(has_opt(m, c.grid_key, c.grid));
|
||||
}
|
||||
/* A drafter linear is decided by its own rule, not a trunk pattern. */
|
||||
CHECK_EQ(r.match("dflash.blk.0.attn_k.weight")->pattern,
|
||||
std::string("dflash.blk.*.attn_k.weight"));
|
||||
|
||||
const RecipeRule* head = r.match("output.weight");
|
||||
REQUIRE(head != nullptr);
|
||||
CHECK(has_opt(head, "codes", "fp8_e4m3"));
|
||||
CHECK(has_opt(head, "block", "128x128"));
|
||||
const RecipeRule* dh = r.match("dflash.draft_head.weight");
|
||||
REQUIRE(dh != nullptr);
|
||||
CHECK(has_opt(dh, "codes", "u2"));
|
||||
CHECK(has_opt(dh, "zero", "u8"));
|
||||
CHECK(has_opt(dh, "group", "128"));
|
||||
CHECK(has_opt(dh, "scale", "f16"));
|
||||
|
||||
const char* kept[] = { "blk.0.ffn_gate_inp.weight", "blk.0.ffn_gate_shexp.weight",
|
||||
"blk.0.ssm_ab.weight", "blk.0.attn_norm.weight",
|
||||
"token_embd.weight", "output_norm.weight",
|
||||
"dflash.blk.0.attn_norm.weight", "dflash.norm.weight",
|
||||
"dflash.hidden_norm.weight", "dflash.sel_proj.weight",
|
||||
"dflash.blk.0.attn_conv_proj.weight",
|
||||
"dflash.blk.0.ffn_conv_proj.weight", "mtp.draft_head.weight",
|
||||
"v.blk.0.qkv.weight" };
|
||||
for (const char* n : kept)
|
||||
CHECK(r.match(n) == nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
RAD_TEST_MAIN()
|
||||
Reference in new issue
Block a user