arch/common: DFlash2's split fc gathers its message as a range

The context pass's all_gather declared numel as a fixed crows * n_embd. crows is max_tok, so every
sizing declare (RadBuildCtx::shape_probe) changed a fixed parameter and was refused: with a
block-fp8 fc at TP > 1 no arena level was planned and nothing was lent to the expert slab. numel
is now a range with the trunk all-reduce's bound, issued at T * n_embd, as the reference reads it
(band_rows).

arch_test: the fc split's gather is the trunk's bound, as a range.
This commit is contained in:
keptn42 committed 2026-11-04 22:08:06 +01:00
1 parent 19d4e8fe0e
commit e0c3f971dc
2 files changed
+12 -4

No files matched your search

+5 -1
View File
@@ -8012,7 +8012,11 @@ TEST(gemma4_31b_dflash2_fc_splits_by_rows_without_changing_a_bit) {
}
if (o.op == "all_gather" && pint(&o, "row") == cs.share) {
++fc_gathers;
CHECK_EQ(pint(&o, "numel"), (long long)(2048 * E)); /* the trunk's instance */
/* The trunk's instance, and a range: a sizing declare may not change it. */
const RecParam* ne = param(&o, "numel");
REQUIRE(ne != nullptr);
CHECK_EQ(ne->kind, (int)RAD_P_RANGE);
CHECK_EQ(ne->ihi, (long long)(2048 * E));
CHECK_EQ(pint(&o, "world_size"), (long long)cs.world);
}
}