Archived
radiance 1.2.0
- MXFP4 weights: block-fp8 Qwen3.5/3.6/3.8 dense models serve OCP-MXFP4 linears (e2m1, an E8M0 exponent per 32) at 4-bit weights against E4M3 activations. New libr4d rows: the decode GEMM (M <= 128, split-K with a fused last-arriver reduction) and the prefill GEMM on a fragment-tiled activation. Qwen3.8-27B MXFP4 (AMD Quark AWQ) is in the model table. - Cards without peer-to-peer access serve: every collective has a host-memory twin; --p2p auto|on|off. - Stop strings apply to the answer, not to the reasoning block a reply starts in. - A prefix hit ends one drafter window before the prompt's end, so a windowed block drafter (DFlash2) drafts from the first token of a follow-up turn.
This commit is contained in:
1 parent
7001841e45
commit
e95d397288
47 files changed
+2611
-219
No files matched your search
+22
-7
@@ -3028,9 +3028,11 @@ int Engine::start() {
|
||||
/* PEER ACCESS, MEASURED BEFORE ANYTHING IS SELECTED. A kernel that reads or writes another
|
||||
* card's memory says so with a constraint on device.p2p (rad_types.h), and the selector reads
|
||||
* it from here: on a machine where some pair of the ranks' cards cannot reach each other such a
|
||||
* kernel is not selected, and declare names the constraint instead of the all-reduce faulting
|
||||
* or hanging on its first message. Every ordered pair, because access is granted one way at a
|
||||
* time. */
|
||||
* kernel is not selected, and one that exchanges through host memory takes the op instead (or
|
||||
* declare names the constraint) rather than the all-reduce faulting or hanging on its first
|
||||
* message. Every ordered pair, because access is granted one way at a time. --p2p overrides the
|
||||
* answer in one direction each way (Config::p2p): off turns it down whatever the driver says,
|
||||
* on refuses to start without it. */
|
||||
{
|
||||
long long p2p = 1;
|
||||
std::string blocked;
|
||||
@@ -3048,14 +3050,27 @@ int Engine::start() {
|
||||
blocked += fmt("%s%d->%d", blocked.empty() ? "" : ", ", devs[i], devs[j]);
|
||||
}
|
||||
}
|
||||
if (cfg_.tp > 1 && cfg_.p2p == RAD_P2P_ON && !p2p) {
|
||||
RAD_ERR("device: --p2p on, but the driver reports no peer-to-peer access between cards "
|
||||
"%s. IOMMU settings and the PCIe topology decide this, not radiance; --p2p auto "
|
||||
"serves through host memory instead", blocked.c_str());
|
||||
return RAD_E_UNSUPPORTED;
|
||||
}
|
||||
const bool forced_off = cfg_.p2p == RAD_P2P_OFF;
|
||||
if (forced_off) p2p = 0;
|
||||
rad_tools_registry().set_device_fact(RAD_FACT_P2P, p2p);
|
||||
if (cfg_.tp > 1) {
|
||||
if (p2p) RAD_INFO("device: the %d cards reach each other's memory directly (peer to "
|
||||
"peer)", cfg_.tp);
|
||||
else RAD_WARN("device: no peer-to-peer access between cards %s. A kernel that needs "
|
||||
"it (device.p2p == 1) is not selected; if nothing else implements its "
|
||||
"op, startup stops below naming it. IOMMU settings and the PCIe "
|
||||
"topology decide this, not radiance", blocked.c_str());
|
||||
else if (forced_off)
|
||||
RAD_INFO("device: --p2p off: the collectives exchange through pinned host memory%s",
|
||||
blocked.empty() ? " although the driver reports peer-to-peer access"
|
||||
: "");
|
||||
else RAD_WARN("device: no peer-to-peer access between cards %s. The collectives "
|
||||
"exchange through pinned host memory instead, and a kernel that needs "
|
||||
"peer access (device.p2p == 1) is not selected; if nothing else "
|
||||
"implements its op, startup stops below naming it. IOMMU settings and "
|
||||
"the PCIe topology decide this, not radiance", blocked.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user