review fixes of the pipelined prefill (independent review)

- pipe_ready: past the batch's and the build's own conditions (the same on every rank), a
  rank-local failure -- no pinned host memory for the bounds table, or its copy failing -- now
  fails the step instead of running it serially. A serial step on one rank beside a pipelined
  one on the other issues different collectives on the shared all-reduce instance: a hang or a
  wrong sum.
- declare frees the previous build's pinned bounds table before resetting the model.
- NormQuantFP8: the slicing comment back above step(); step_plain() gets its own.
- r4d_rows: the TN axis's help text says the new crossover (M >= 1024).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
mici81andClaude Opus 5.5 authored and StillDeadcode committed 2026-10-24 11:10:08 +02:00
1 parent d39e0511e7
commit 57d2cb4043
3 files changed
+27 -13

No files matched your search

+5 -4
View File
@@ -473,10 +473,7 @@ inline int NormQuantFP8::declare(RadBuilder* b, const Geom& g, rad_weight gain,
return RAD_OK;
}
/* `r0`/`rows` select a row slice, defaulting to the whole step (`brow_slice` at offset 0 equals
* `brows`). Slicing lets a block run in passes (the routed feed-forward). Each slice must land in
* the same bucket-table band as the whole (core/runtime/ctx.h), or a different kernel with a
* different summation order would run. */
/* step() below with the plain op, whatever the wire. */
inline void NormQuantFP8::step_plain(RadCtx* c, int64_t T, int64_t r0, int64_t rows) const {
if (rows <= 0) rows = T - r0;
RAD_ISSUE_N(c, op, rows, brow_slice(src, r0, rows, n),
@@ -486,6 +483,10 @@ inline void NormQuantFP8::step_plain(RadCtx* c, int64_t T, int64_t r0, int64_t r
brow_slice(a.x, r0, rows, n));
}
/* `r0`/`rows` select a row slice, defaulting to the whole step (`brow_slice` at offset 0 equals
* `brows`). Slicing lets a block run in passes (the routed feed-forward). Each slice must land in
* the same bucket-table band as the whole (core/runtime/ctx.h), or a different kernel with a
* different summation order would run. */
inline void NormQuantFP8::step(RadCtx* c, int64_t T, int64_t r0, int64_t rows) const {
if (rows <= 0) rows = T - r0;
RAD_ISSUE_N(c, pick(rows), rows, brow_slice(src, r0, rows, n),