Archived
pipelined prefill: review fixes
The parts of the series' review rounds that concern the pipelined prefill and the second lane, carried over when the series was split: - qwen35_fp8: a trunk whose norms write rotated int8 codes (qwen35_w8a8 where libr4d serves the `_had_quant_i8g` forms) prefills serially -- the boundary norms on the second lane issue the E4M3 pair only, and before the fix libr4d refused them for the int8 op, failing every one-sequence prefill step of 1024 rows or more; a pipelined step whose bounds have no storage fails the step rather than falling back on one rank only. - The three- and eight-rank overlap all-reduce rows accept every tunable pin their wide rows accept (r4d_selftest checks it). - rad_builder.h: the window joins lane 1 into lane 0 at its end only, so an op declared before it must not be issued again while lane 1 has work pending. - tests: arch_test for the w8a8 trunk; plugin_test's lane-row comment. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
48e41fda1e
commit
4ec175549c
6 files changed
+87
-8
No files matched your search
@@ -439,6 +439,33 @@ static void cross_check(const Plugin& pl) {
|
||||
ok(narrow ? "the 3/8-rank overlap rows take the narrow launch (R4D_AR_LANE_3_8=1)"
|
||||
: "the 3/8-rank overlap rows launch as their wide rows (R4D_AR_LANE_3_8 unset)",
|
||||
bad == 0, detail);
|
||||
/* And they accept every pin their wide rows accept: a RADIANCE_TUNE all_reduce pin is applied
|
||||
* to every row serving the op, and a key or value a serving row lacks fails the selection. */
|
||||
int bad_axis = 0;
|
||||
std::string axis_detail;
|
||||
for (const auto& pr : pairs) {
|
||||
const RadKernelInfo* l = row(pr[0]);
|
||||
const RadKernelInfo* w = row(pr[1]);
|
||||
if (!l || !w) continue;
|
||||
for (int v = 0; v < w->n_tunables; ++v) {
|
||||
const RadTunable& wt = w->tunables[v];
|
||||
const RadTunable* lt = nullptr;
|
||||
for (int u = 0; u < l->n_tunables; ++u)
|
||||
if (!std::strcmp(l->tunables[u].key, wt.key)) lt = &l->tunables[u];
|
||||
if (!lt) { ++bad_axis; axis_detail += std::string(pr[0]) + " lacks " + wt.key + "; "; continue; }
|
||||
for (int i = 0; i < wt.n_values; ++i) {
|
||||
bool has = false;
|
||||
for (int j = 0; j < lt->n_values; ++j) has = has || lt->values[j] == wt.values[i];
|
||||
if (!has) {
|
||||
++bad_axis;
|
||||
axis_detail += std::string(pr[0]) + ":" + wt.key + " lacks " +
|
||||
std::to_string((long long)wt.values[i]) + "; ";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
ok("the 3/8-rank overlap rows accept every tunable pin of their wide rows", bad_axis == 0,
|
||||
axis_detail);
|
||||
}
|
||||
|
||||
/* The libr4d orderings the integer priority has to preserve. */
|
||||
|
||||
Reference in new issue
Block a user