Archived
test: pin the four-rank expert WIDTH split, and that it tiles exactly
The old assertions pinned expert parallelism -- n_expert = 128, expert_base = r*128 -- which is the design this replaces. What the four ranks divide is each expert's width, so what the test pins is a span on every expert's down projection, per parity, plus the property that actually matters: the four ranks' slices of one parity TILE the width, each block claimed exactly once. Neither unserved (a rank quietly dropping a fifth of every expert) nor twice (the all-reduce then double-counts that block). Read off the declared spans, not off the plugin's formula -- recomputing them would only prove the test agrees with the code.
This commit is contained in:
1 parent
10f3d6875b
commit
b8fab2c871
2 files changed
+56
-43
No files matched your search
@@ -584,17 +584,6 @@ static int declare(RadBuilder* b, const RadModelMeta* meta, const RadBuildCtx* c
|
||||
(long long)nb, RAD_FP8_BLOCK, g.world);
|
||||
return RAD_E_INVAL;
|
||||
}
|
||||
}
|
||||
g.rank, (long long)mc.ff_lo[0], (long long)mc.ff_hi[0],
|
||||
(long long)mc.ff_lo[1], (long long)mc.ff_hi[1], (long long)g.n_ff_all,
|
||||
(long long)nb, RAD_FP8_BLOCK);
|
||||
} else {
|
||||
fprintf(stderr, "radiance: qwen4exp: an expert is %lld blocks of %d, which %d ranks "
|
||||
"cannot split into two slices; the uneven split alternates by "
|
||||
"parity and so serves two ranks.\n",
|
||||
(long long)nb, RAD_FP8_BLOCK, g.world);
|
||||
return RAD_E_INVAL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user