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
+20
-2
@@ -285,10 +285,10 @@ static void cross_check(const Plugin& pl) {
|
||||
ok("op schema names are unique", dup_schema == 0);
|
||||
ok("kernel names are unique", dup_kernel == 0);
|
||||
|
||||
int no_schema = 0, bad_key = 0, no_launch = 0, init_no_fini = 0, bad_domain = 0;
|
||||
int no_schema = 0, bad_key = 0, no_launch = 0, init_no_fini = 0, bad_domain = 0, no_p2p = 0;
|
||||
int bad_axis = 0, bad_deflt = 0, dup_axis = 0;
|
||||
std::string axisdetail;
|
||||
std::string keydetail;
|
||||
std::string keydetail, p2pdetail;
|
||||
for (int k = 0; k < nk; ++k) {
|
||||
const RadKernelInfo* r = pl.kernel_at(k);
|
||||
if (!r->launch) { ++no_launch; continue; }
|
||||
@@ -351,6 +351,23 @@ static void cross_check(const Plugin& pl) {
|
||||
"' which op '" + r->op + "' does not declare; ";
|
||||
}
|
||||
}
|
||||
/* EVERY MULTI-CARD ROW NEEDS PEER ACCESS. Each kernel in this library that runs only at
|
||||
* two or more ranks reads or writes the other cards' memory directly, so without
|
||||
* device.p2p a machine whose cards cannot reach each other resolves it and the launch
|
||||
* faults or hangs instead of being refused by name at selection. */
|
||||
bool multi = false, p2p = false;
|
||||
for (int c = 0; c < r->n_constraints; ++c) {
|
||||
const RadConstraint& rc = r->constraints[c];
|
||||
if (!std::strcmp(rc.key, "world_size") &&
|
||||
(rc.op == RAD_C_EQ || rc.op == RAD_C_GE) && rc.ival >= 2)
|
||||
multi = true;
|
||||
if (!std::strcmp(rc.key, RAD_FACT_P2P) && rc.op == RAD_C_EQ && rc.ival == 1)
|
||||
p2p = true;
|
||||
}
|
||||
if (multi && !p2p) {
|
||||
++no_p2p;
|
||||
p2pdetail += std::string(r->name) + "; ";
|
||||
}
|
||||
}
|
||||
ok("every row has a launch", no_launch == 0);
|
||||
ok("every row with init has fini", init_no_fini == 0);
|
||||
@@ -360,6 +377,7 @@ static void cross_check(const Plugin& pl) {
|
||||
ok("no row declares the same axis key twice", dup_axis == 0, axisdetail);
|
||||
ok("every row's op has a schema", no_schema == 0, keydetail);
|
||||
ok("every constraint key is a declared parameter of its op", bad_key == 0, keydetail);
|
||||
ok("every row that needs two or more ranks requires device.p2p", no_p2p == 0, p2pdetail);
|
||||
|
||||
/* The libr4d orderings the integer priority has to preserve. */
|
||||
int p_ts = -1, p_os = -1, p_dec = -1, p_pre = -1, p_m16 = -1, p_m64 = -1, p_bt = -1;
|
||||
|
||||
Reference in new issue
Block a user