Archived
radiance 1.0.8
- Qwen3.8-Flash-Next serves at --tp 4, contributed by goodman-b (PR 9). Rank pairs share each of the model's two KV heads, every rank computes a slice of every expert's width, and four ranks run the unfused all-reduce plus a new four-rank all-gather for the vocab-parallel sampler. Two ranks declare and compute exactly as before. The README has a four-rank flag row; it pins --host-pool-mib on every card, 48 GiB in all. At four ranks the expert shares are not equal: ranks 0 and 1 compute three blocks of every even/odd pair of experts and ranks 2 and 3 two (docs/ARCHITECTURES.md). - The four- and eight-rank all-gathers require peer access between the cards, as every other collective does since 1.0.7, and the kernel library's selftest now refuses any multi-rank kernel that does not.
This commit is contained in:
1 parent
146318894d
commit
140987fa7b
13 files changed
+86
-63
No files matched your search
@@ -782,8 +782,8 @@ inline int geom_from(Geom& g, const RadModelMeta* m, const RadBuildCtx* c,
|
||||
* replaces (Flash-Next: 2 KV heads x 5120 x 256 rows read twice instead of once). What it buys
|
||||
* is that world 4 is declarable at all.
|
||||
*
|
||||
* When world <= n_head_kv_all the split below is untouched: TP2 stays byte-identical, the
|
||||
* geometry paro is served on cannot regress. */
|
||||
* When world <= n_head_kv_all the split below is untouched, so a world that divides the KV
|
||||
* heads -- TP2 on this family -- declares exactly as it did before replication existed. */
|
||||
if (g.world > g.n_head_kv_all) {
|
||||
if (g.world % g.n_head_kv_all != 0) {
|
||||
fprintf(stderr, "radiance: world_size = %d cannot replicate n_head_kv = %lld; "
|
||||
|
||||
@@ -103,7 +103,7 @@ inline int AttnGatedBF16::declare(RadBuilder* b, Names& nm, const Geom& geom, in
|
||||
return RAD_E_INVAL;
|
||||
}
|
||||
|
||||
/* KV-HEAD REPLICATION IS NOT PLUMBLED HERE. `geom_from` answers a world size above the KV head
|
||||
/* KV-HEAD REPLICATION IS NOT PLUMBED HERE. `geom_from` answers a world size above the KV head
|
||||
* count by giving every rank ONE kv head and a `kv_off` row span into a projection that stays
|
||||
* `n_head_kv_all * head_dim` rows in the container -- and this block declares its k and v with
|
||||
* the plain even row-shard, which at four ranks would hand a rank half of one KV head. The
|
||||
|
||||
@@ -1075,8 +1075,8 @@ inline int MoeFP8::declare(RadBuilder* b, Names& nm, const Geom& geom, int l,
|
||||
* tiles, which four ranks take as 3, 3, 2, 2. Every tile has exactly one owner, each
|
||||
* rank writes its own columns of gate/up and reads its own of down, and the block's
|
||||
* all-reduce sums the partials exactly as it does for the quantised experts and for
|
||||
* the shared arm. The even case keeps the old declaration verbatim -- no span at all --
|
||||
* so a rank count that divides stays byte-identical to the tree this fork started on. */
|
||||
* the shared arm. The even case keeps the even-split declaration verbatim -- no span
|
||||
* at all -- so a rank count that divides declares exactly as it did before. */
|
||||
psh_row = RAD_SHARD_ROW;
|
||||
psh_col = RAD_SHARD_COL;
|
||||
pparts = 2;
|
||||
|
||||
Reference in new issue
Block a user