minimaxh3: the velocity head's modulation table landed where the kernel could not see it

b_nout is declared with row width kMaxSegs*2*D, but the cond pass staged it
through bcol_at with a narrower pitch ARGUMENT (ncell*2*D) and the step pass
indexed row (lane,step) with that same narrow multiplier. The runtime strides a
buffer operand by its DECLARED row width, so every staging row past the first
landed beyond the consumer's window: the shift/scale table the rms_mod head
reads was ALL ZEROS for every denoise step after the first. Step 0 aligned by
coincidence (staging row #0 == the cell starts), which is why step 0 always
reproduced and hid this. The heads -- video and audio alike -- then ran
un-modulated at t>0: rms(h)*w*(1+0)+0, silently dropping a scale field of std
0.295 per step, inflating the velocity (measured 2.90 vs reference-math 2.05 at
step 1) and baking the fried look into every render.

Fix: stage and consume b_nout at its declared width, the pattern b_ada/b_modg
already use (block modulation was never wrong -- only the head table was). No
kernel, arena, or ABI change; the shared host issue path is fixed with it.

Proof chain: the nout shadow re-cast AT THE KERNEL'S OWN POINTER (the old one
sampled the declared pitch and lied -- zero_frac 1.0 at step 1 pre-fix) shows
cells matching emb(t)@W+b to 2e-3, modality-correct; torch replay on the device
stream: step-1 velocity cos 0.970->0.9975, device std 2.901->2.065 vs 2.051
reference math; device renders (512^2 6s seed 1234, flair FL2VA + T2VA control,
workflow prompt) read frame-by-frame: fried look gone on every arm, pins force,
bitrate 6.75MB->1.88MB at identical settings.

Kept (R4D_DIT_SEL-gated): per-step dump tagging dit_s{K}_*, kernel-pointer nout
shadow, tvid/tarr schedule dumps.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
gearwave00001andClaude committed 2026-10-22 14:16:17 -05:00
1 parent f7cc1b3a3b
commit 2477456b36
4 files changed
+143 -26

No files matched your search

+28 -11
View File
@@ -588,6 +588,8 @@ struct Model {
/* ---- the DiT step dump (R4D_DIT_SEL): the f32 shadows that let a step be replayed on the CPU
* reference DiT. All declared only when the env is set, so a production run pays nothing. */
bool dit_dbg = false;
/* #54 debug: the step whose shadows the driver reads back (R4D_DIT_SEL's value; 0 = step 0). */
int64_t dit_step = 0;
/* b_h right after the input projections -- the stream entering block 0 -- cast to f32 before the
* block loop recycles the bf16 scratch. [cap, D] f32 PERSIST (capped: see declare_dit). */
int64_t dit_h0cap = 0;
@@ -1260,6 +1262,8 @@ static int declare_dit(RadBuilder* b, const RadModelMeta* meta, Model& m) {
* environment -- so a production run reserves nothing. All bf16→f32 casts (no f32→f32 cast
* row exists), hence the temb shadow is curve-form only, where b_temb is bf16. */
m.dit_dbg = std::getenv("R4D_DIT_SEL") != nullptr;
if (const char* sel = std::getenv("R4D_DIT_SEL"))
m.dit_step = std::strtol(sel, nullptr, 10);
if (m.dit_dbg) {
/* The h0 shadow is capped: max_tok is the whole batch ceiling (a video serve runs past a
* hundred thousand rows), and a full [max_tok, D] f32 twin is gigabytes the arena has no
@@ -1307,9 +1311,13 @@ static int declare_dit(RadBuilder* b, const RadModelMeta* meta, Model& m) {
* replaying the heads over it and over b_hnd (declared with b_hn below) -- checkpoint
* weights, exact math -- either reproduces the step's velocity or convicts the head's
* modulation itself. */
m.b_noutd = decl_b(b, nm.f("dit.noutdbg"), RAD_F32, { 1, (int64_t)kMaxSegs * 2 * D }, RAD_BUF_PERSIST);
/* The row pitch here MUST match the pointer step_dit hands op_nout (ng * 2 * D cells),
* not the buffer's declared width -- brow_slice(b_nout, row) samples at the declared
* kMaxSegs pitch, which is NOT what the kernel reads; that mismatch made an earlier
* shadow look byte-correct while the kernel actually saw zeros. */
m.b_noutd = decl_b(b, nm.f("dit.noutdbg"), RAD_F32, { (int64_t)kMaxSegs, 2 * D }, RAD_BUF_PERSIST);
m.op_noutd = rw(b, RAD_OP(b, "cast",
RAD_PARAMS(RAD_RANGE("M", 1, 1), RAD_INT("n", (int64_t)kMaxSegs * 2 * D),
RAD_PARAMS(RAD_RANGE("M", 1, kMaxSegs), RAD_INT("n", 2 * D),
RAD_STR("from", "bf16"), RAD_STR("to", "f32")),
RAD_NOWEIGHTS),
{ m.b_nout }, { m.b_noutd });
@@ -3620,8 +3628,13 @@ static void step_cond(RadCtx* c, const RadBatch* batch, const Model& m) {
}
for (int64_t e = 0; e < ncell; ++e) {
const int64_t r0 = cell[(size_t)e].second;
/* The pitch is the buffer's declared row width (kMaxSegs * 2 * D), exactly as b_ada's
* staging: the runtime strides a buffer operand by its DECLARED row width -- bcol_at's
* pitch argument is only a base multiplier -- so a pitch argument narrower than the
* declared width lands every row past the consumer's view of it, and every denoise step
* after the first read zeros: the velocity head ran un-modulated for all t > 0. */
RAD_ISSUE_N(c, m.op_no, S, brow_slice(m.a_temb.x, r0, S, td), RAD_W(m.w_no), RAD_W(m.b_no),
RAD_NONE, bcol_at(m.b_nout, base, ncell * 2 * D, e * 2 * D, 2 * D, S));
RAD_NONE, bcol_at(m.b_nout, base, (int64_t)kMaxSegs * 2 * D, e * 2 * D, 2 * D, S));
}
}
@@ -3690,7 +3703,7 @@ static void step_dit(RadCtx* c, const RadBatch* batch, const Model& m) {
/* The dump's modulation shadow (R4D_DIT_SEL): the gathered table -- every block's and merged
* cell's vectors, both ranks' column halves -- widened to f32 into a PERSIST buffer. The step
* the driver readbacks on is the dump's step (0); the blocks below never touch b_modd. */
if (m.dit_dbg && V->step == 0)
if (m.dit_dbg && (V->step == m.dit_step || V->step < 2))
RAD_ISSUE_N(c, m.op_modd, (int64_t)g.world * L * kMaxSegs,
brows(m.b_modg, (int64_t)g.world * L * kMaxSegs),
brows(m.b_modd, (int64_t)g.world * L * kMaxSegs));
@@ -3746,7 +3759,7 @@ static void step_dit(RadCtx* c, const RadBatch* batch, const Model& m) {
* it -- the stream entering block 0 -- widened to f32 before the first block recycles the
* bf16 scratch. Plain requests only: the harness replays the fixed [text | audio | video]
* order, and the driver readbacks only plain step-0 requests (R4D_DIT_SEL). */
if (m.dit_dbg && V->step == 0 && !refc) {
if (m.dit_dbg && (V->step == m.dit_step || V->step < 2) && !refc) {
if (R > m.dit_h0cap) {
rad_step_fail(c, "minimaxh3: the DiT dump request packs more rows than the h0 shadow "
"holds (8192) -- render the dump smaller");
@@ -3821,7 +3834,7 @@ static void step_dit(RadCtx* c, const RadBatch* batch, const Model& m) {
* after its issue b_h equals the stream the reference holds after block l-1. Rows
* [0, kDbgL) belong to half 0, whose op_mq1 this follows; the deferred stream orders
* the cast after the fold it reads. */
if (m.dit_dbg && V->step == 0 && l > 0 && h == 0 && R >= kDbgL)
if (m.dit_dbg && (V->step == m.dit_step || V->step < 2) && l > 0 && h == 0 && R >= kDbgL)
RAD_ISSUE_N(c, m.op_dbgl, kDbgL, brow_slice(m.b_h, 0, kDbgL, D),
brow_slice(m.b_dbgl, (l - 1) * kDbgL, kDbgL, D));
B.qkv.step(c, m.a_hm, m.b_qkv, R, r0, n);
@@ -3866,25 +3879,29 @@ static void step_dit(RadCtx* c, const RadBatch* batch, const Model& m) {
}
}
wait_ar();
/* Row (lane, step) at the declared row width kMaxSegs * 2 * D -- the same pitch the staging
* wrote; the kernel strides cells by 2D inside it. */
const char* nout = (const char*)rad_buf_ptr(c, m.b_nout) +
(lane * m.S + V->step) * ng * 2 * D * (int64_t)sizeof(uint16_t);
(lane * m.S + V->step) * (int64_t)kMaxSegs * 2 * D * (int64_t)sizeof(uint16_t);
RAD_ISSUE_N(c, m.op_nout, R, brows(m.b_ao, R), mod(L - 1, 5, 1),
RAD_P_T2(nout, RAD_BF16, ng, 2 * D), RAD_W(m.w_no_n), mod_segs, brows(m.b_h, R),
brows(m.b_hn, R));
/* Block 49's stream, slot L-1: only op_nout folds the last MLP delta into b_h (the reference
* FinalLayer norms the same post-fold stream), so this follows it. Nothing between here and
* the pass' end writes b_h. */
if (m.dit_dbg && V->step == 0 && R >= kDbgL)
if (m.dit_dbg && (V->step == m.dit_step || V->step < 2) && R >= kDbgL)
RAD_ISSUE_N(c, m.op_dbgl, kDbgL, brow_slice(m.b_h, 0, kDbgL, D),
brow_slice(m.b_dbgl, (L - 1) * kDbgL, kDbgL, D));
/* The velocity-head isolation: the head's own operands -- norm_out's stream over the video
* rows this request's heads run on, and this step's shift/scale table row -- so the CPU
* replay can apply the checkpoint head to them and say whether it reproduces b_vel. */
if (m.dit_dbg && V->step == 0 && vrows >= kVidDbgL) {
if (m.dit_dbg && (V->step == m.dit_step || V->step < 2) && vrows >= kVidDbgL) {
RAD_ISSUE_N(c, m.op_hnd, kVidDbgL, brow_slice(m.b_hn, vseg, kVidDbgL, D),
brows(m.b_hnd, kVidDbgL));
RAD_ISSUE_N(c, m.op_noutd, 1, brow_slice(m.b_nout, lane * m.S + V->step, 1, (int64_t)kMaxSegs * 2 * D),
brows(m.b_noutd, 1));
/* The kernel's OWN pointer -- the ng cells at pitch ng * 2 * D step_dit computed just
* above -- not a brow_slice of b_nout at the declared kMaxSegs pitch. */
RAD_ISSUE_N(c, m.op_noutd, ng, RAD_P_T2(nout, RAD_BF16, ng, 2 * D),
brows(m.b_noutd, ng));
}
/* The heads, in f32 over parts of the rows. */
+25 -15
View File
@@ -315,9 +315,9 @@ int VideoDriver::init(const Program& prog, PositionsFn positions,
* shadows carry) is honoured, anything else warns and stays off. */
if (const char* sel = std::getenv("R4D_DIT_SEL")) {
const long want = std::strtol(sel, nullptr, 10);
if (want != 0)
RAD_ERR("video generator: R4D_DIT_SEL=%s: only step 0 is dumped (the shadows are "
"issued at step 0); ignoring", sel);
dit_sel_ = want > 0 ? (int)want : 0; /* #54 debug: also dump this step, dit_sK_* files */
if (want < 0)
RAD_ERR("video generator: R4D_DIT_SEL=%s: negative step; ignoring", sel);
else if (decl_.dbg_dit_h0 && decl_.dbg_dit_vel) {
dit_h0_b_ = decl_.dbg_dit_h0_bytes;
dit_vel_b_ = decl_.dbg_dit_vel_bytes;
@@ -1032,6 +1032,10 @@ const RadBatch* VideoDriver::build_cond(Job& j, int step) {
reg_[R_CU].used = 2 * 4;
reg_[R_TV].used = j.sched.steps * 4;
reg_[R_TA].used = j.sched.steps * 4;
if (dit_dbg_)
std::fprintf(stderr, "dit_dbg: t arrays staged: tv[0]=%.4f tv[%d]=%.4f ta[0]=%.4f ta[%d]=%.4f\n",
tv[0], (int)j.sched.steps - 1, tv[j.sched.steps - 1],
ta[0], (int)j.sched.steps - 1, ta[j.sched.steps - 1]);
const RadVideoGeom& g = small_now(j) ? j.geom_small : j.geom;
stage_geom(j, g, small_now(j) ? j.rows_small : j.rows, 0);
@@ -1212,7 +1216,9 @@ const RadBatch* VideoDriver::build_step(Job& j, int step) {
* Plain step 0 only: the harness replays the fixed [text | audio | video] layout and the full
* grid, and the arch issues the shadows only under the same conditions. */
dit_used_ = false;
if (dit_dbg_ && j.step == 0 && !small && !j.ref_wide && j.ref_tab.empty()) {
if (dit_dbg_ && (j.step == 0 || j.step == 1 || j.step == dit_sel_) && !small &&
!j.ref_wide && j.ref_tab.empty()) {
dit_step_ = j.step; /* namespaced dump: step 0 -> dit_*, step K>0 -> dit_sK_* */
char* p = dit_host_;
int64_t off = 0;
const rad_buf hh[7] = { decl_.dbg_dit_h0, decl_.dbg_dit_temb, decl_.dbg_dit_mod,
@@ -1227,8 +1233,11 @@ const RadBatch* VideoDriver::build_step(Job& j, int step) {
}
dit_used_ = true;
dit_rows_ = rows;
dit_dump_file("dit_pos.f32", pos.data(), (size_t)pos.size() * 4);
dit_dump_file("dit_seg_cu.i32", hptr<int32_t>(R_SEG), (size_t)reg_[R_SEG].used);
const std::string tag = dit_step_ ? "dit_s" + std::to_string(dit_step_) + "_" : "dit_";
dit_dump_file(tag + "pos.f32", pos.data(), (size_t)pos.size() * 4);
dit_dump_file(tag + "seg_cu.i32", hptr<int32_t>(R_SEG), (size_t)reg_[R_SEG].used);
dit_dump_file(tag + "tvid.f32", hptr<float>(R_TV), (size_t)j.sched.steps * 4);
dit_dump_file(tag + "tarr.f32", hptr<float>(R_TA), (size_t)j.sched.steps * 4);
}
pass_.kind = RAD_GEN_PASS_VSTEP;
pass_.job = j.id;
@@ -1539,23 +1548,24 @@ int VideoDriver::done() {
/* The step-0 dump landed: slab (h0 | temb | mod | blk | hn | nout | vel) to raw
* files, plus the few facts the driver knows (R4D_ENC_DUMPDIR; the prep script
* supplies D=5376 and the harness .meta files). */
const std::string tag = dit_step_ ? "dit_s" + std::to_string(dit_step_) + "_" : "dit_";
char* p = dit_host_;
dit_dump_file("dit_h0.f32", p, (size_t)dit_h0_b_);
dit_dump_file(tag + "h0.f32", p, (size_t)dit_h0_b_);
p += dit_h0_b_;
dit_dump_file("dit_temb.f32", p, (size_t)dit_temb_b_);
dit_dump_file(tag + "temb.f32", p, (size_t)dit_temb_b_);
p += dit_temb_b_;
dit_dump_file("dit_mod.f32", p, (size_t)dit_mod_b_);
dit_dump_file(tag + "mod.f32", p, (size_t)dit_mod_b_);
p += dit_mod_b_;
dit_dump_file("dit_blk.f32", p, (size_t)dit_blk_b_);
dit_dump_file(tag + "blk.f32", p, (size_t)dit_blk_b_);
p += dit_blk_b_;
dit_dump_file("dit_hn.f32", p, (size_t)dit_hn_b_);
dit_dump_file(tag + "hn.f32", p, (size_t)dit_hn_b_);
p += dit_hn_b_;
dit_dump_file("dit_nout.f32", p, (size_t)dit_nout_b_);
dit_dump_file(tag + "nout.f32", p, (size_t)dit_nout_b_);
p += dit_nout_b_;
dit_dump_file("dit_vel.f32", p, (size_t)dit_vel_b_);
dit_dump_file(tag + "vel.f32", p, (size_t)dit_vel_b_);
if (std::getenv("R4D_ENC_DUMPDIR")) {
const std::string path =
std::string(std::getenv("R4D_ENC_DUMPDIR")) + "/dit_info.txt";
const std::string path = std::string(std::getenv("R4D_ENC_DUMPDIR")) + "/" +
tag + "info.txt";
if (std::FILE* f = std::fopen(path.c_str(), "w")) {
std::fprintf(f, "rows %lld\nn_text %lld\nn_audio %lld\nsteps %d\nseed %llu\n",
(long long)dit_rows_, (long long)j->geom.n_text,
+2
View File
@@ -236,6 +236,8 @@ private:
int64_t dit_h0_b_ = 0, dit_vel_b_ = 0, dit_temb_b_ = 0, dit_mod_b_ = 0,
dit_blk_b_ = 0, dit_hn_b_ = 0, dit_nout_b_ = 0;
bool dit_used_ = false; /* the running pass staged a dump */
int dit_sel_ = 0; /* #54 debug: also dump step dit_sel_ (>0) */
int dit_step_ = 0; /* step of the pass the staged dump belongs to */
int64_t dit_rows_ = 0; /* packed rows R of the dumped step */
/* Debug-only (#63, same env): the video-decoder parity chain (lat | x0 | blk | n | pix),
+88
View File
@@ -1371,3 +1371,91 @@ the arity fix and the ABI table stay. The GOOD container remains
`minimax-h3-dasiwa-w8a8.rad`; `minimax-h3-dasiwa-w8a8-gatefix.rad` is kept only as the
documented bad artifact. The fried look is NOT an FFN half-order issue and stays OPEN
(#54/#45): the coherent-but-bright OLD_* renders are the standing artifact to explain.
## cont.27 — #54 value-parity audit: EVERY pipeline stage exonerated; quantization scheme is the only remaining axis
The full numerical audit of the fried look (blown highlights / crushed blacks vs the GOLD flair
reference) is COMPLETE, and no Radiance convention bug remains anywhere in the chain. Verdicts,
each device-anchored:
* **TE + token_refiner (cond1→cond2).** cond1's rowcos 0.966 with its positional ramp (rows 0-63 →
0.853) was cond1's OWN bug: it replayed the refiner with a causal mask. The reference refiner is
full-bidirectional (`model.py` Attention `mask=None`) and so is the device (`causal 0`); the TE is
causal on BOTH sides (`llama.py BaseLlama` builds the causal mask when `seq_len > 1`).
`MASK=tecausal` replay (`teharness/cond2.py`): **rowcos mean 0.998379, min 0.8927, std-ratio
1.0003, no positional structure** (rows 0-63 now 0.9994) — TE/ctx/refiner EXONERATED; the residual
is the fp8-vs-exact activation floor on long rows.
* **temb derivation (curve form) — BIT-EXACT.** The curve table is `tmb.table` [1025, **8**] (the
curve-form checkpoint replaces the time MLP AND the 2688-input adaln linears: per-block
`Linear(8 → 6·5376·3)`; container meta `time_embed_dim 8`, `adaln_curve_grid 1025`). Device
`dit_temb.f32` rows [0,S)|[S,2S)|[2S,3S)|[3S,4S) (S = the REQUEST's steps, 23 — NOT m.S) compared
vs torch lerp of the ckpt table at `t_v = 1−sigma_v`, `t_a = 1−shift₃(shift₁₂⁻¹(sigma_v))`:
**ALL FOUR BLOCKS × 23 STEPS maxdiff 0.000e+00** — driver schedule, audio-shift algebra, pins
(0.999/1.0) and the kernel lerp all verified to the bit. Curve-form ada weights stay plain bf16
([96768,8], arch 1180-1191) = lossless vs reference.
* **Everything else was already closed:** per-block DiT + final layer (fork4, vs the DEQUANT
ckpt `transformer_dasiwa`, rowcos ≥0.99965 all blocks), sampler chain slope 1.0 (chain1),
decoder REAL-ckpt parity (#66 vdec fork: device decode ≡ torch decode on the device latent ⇒
the fried lives in the latent, decoder exonerated), denorm constants byte-identical three-way,
writer neutral, CFG absent = reference's BasicGuider 1, seed noise std 1.0022 ✓.
* **Latent trajectory healthy:** std 1.0022 (σ=1.0) → 0.9181 (σ=0.9167) tracks theory (0.9205);
no contrast pump through step 12; mean +0.002 → +0.006.
**Provenance facts mined this pass:** `MiniMax-H3-dasiwa-src` = the GOLD UNet
(`DasiwaMinimaxH3_dasiwaHybridV4_int8` dequanted by overlay-dasiwa.py's convrot math, "the
identical math the reference clips were rendered with") + its `text_encoder/` is BYTE-IDENTICAL to
`MiniMax-H3-heretic-src` = GOLD's `qwen3vl_32b_h3_ultra_uncensored_heretic` CLIP. So the served
`minimax-h3-dasiwa-w8a8.rad` carries BOTH of GOLD's models; model identity is NOT the delta.
**What remains:** the quantization scheme. GOLD (comfy) runs convrot-int8 weights with bf16
activations; the device runs `dit_i8` W8A8 — the convrot int8 RE-QUANTIZED to int8 group-128 plus
int8 per-token ACTIVATIONS (arch 1325-1387). fork4's relFro growth 0.0026→0.026 through the trunk
IS that noise vs the exact math. A bf16-activation DiT trunk does not exist in the arch (the trunk
is always quantized: fp8 or int8 per `declare_qs(..., dit_i8, !dit_i8)`). The decisive experiment
is a same-weights A/B: re-run GOLD's own workflow JSON locally in ComfyUI (all assets are present:
diffusion_models/civitai-minimax/DasiwaMinimaxH3_dasiwaHybridV4_int8.safetensors,
text_encoders/civitai-minimax/qwen3vl_32b_h3_ultra_uncensored_heretic_int8_convrot.safetensors,
the FL2VA workflow JSONs in radiance-fl2va-examples) against the radiance render at matched
settings — but ComfyUI is disabled by standing rule and MUST NOT be relaunched without the user's
explicit OK. BB seed battery measured while waiting: luma 109-185 by content, clipHi 10-22% —
birdbike stays a style-confound, the flair pair remains the fried exemplar.
**#54 CLOSED — THE FRIED LOOK WAS THE VELOCITY-HEAD MODULATION TABLE ZEROED AT EVERY STEP
t > 0. Fixed + device-verified by VISION (2026-10-22).**
* **Root cause (one line of semantics):** the runtime strides a buffer operand by its **DECLARED
row width** (`r4d_rows_pitch`, r4d_args.h; `bcol_at`'s pitch argument is only a base multiplier,
rad_arch.h:1018). `b_nout` is declared `{L*S, kMaxSegs*2*D}` (row width 86016 elems), but the
cond pass staged it with a **narrower pitch argument** `ncell*2*D` (32256) and the step pass read
row `(lane,step)` with multiplier `ng*2*D`. Staging rows therefore landed at stride 86016 while
the consumer's window for step k>0 (32256·k + cell·10752) fell on **unwritten bytes: all zeros**.
Step 0 aligned by coincidence (row #0 of staging == cell starts), which is exactly why step 0
always looked perfect and hid this for so long. The rms_mod kernel then computed
`rms(h)*w*(1+0)+0` = **un-modulated velocity head for the video AND audio heads at every denoise
step after the first** — scale std ≈0.295 silently dropped ⇒ systematic per-step velocity
inflation (measured device vel std 2.90 vs reference-math 2.05 at step 1) ⇒ the global fried look.
* **How it was caught:** the old `dit.noutdbg` shadow read `brow_slice(b_nout, row)` — sampling the
buffer at its DECLARED pitch, which is NOT the pointer op_nout receives — so it showed a
byte-correct table while the kernel read zeros (the shadow lied; this was the "nout cos 1.0 at
both steps" false exoneration). The shadow was rewritten to cast **the kernel's own pointer**
(`RAD_P_T2(nout, …)`, b_noutd re-declared `{kMaxSegs, 2D}` same bytes) and step-1 zero_frac went
1.000 → 0.000 after the fix; post-fix cells match `emb(t)@W+b` to 0.0013-0.0019 relFro per cell,
per-modality-correct (video cells↔tvid, audio↔tarr). Probe: `build/tmp/look/loopharness/nout_probe.py`.
* **Fix (arch/minimaxh3/minimaxh3.cpp):** staging `bcol_at(m.b_nout, base, kMaxSegs*2*D, e*2*D, 2D, S)`
and consumer row multiplier `kMaxSegs*2*D` — both now the DECLARED width, exactly the pattern
`b_ada`/`b_modg` already use (which is why block modulation was always correct). Op-ordering,
kernels, arena, ABI: untouched. The avx host path shares this issue-path so it is fixed too.
* **Replay parity (torch, device stream anchored):** step 1 video VEL cos 0.9698→**0.9975**, device
std 2.901→**2.065** vs reference-math 2.051 (was +41% inflated). Step 0 unchanged (0.9994).
* **Render + VISION verification (device, `minimax-h3-dasiwa-w8a8.rad`, 512² 6s seed 1234
res_multistep 25, workflow prompt with `<d>`, output `build/tmp/look/fixed512/`):** FL2VA f0/mid/
end + T2VA control mid — **fried look GONE on every arm**: wood-chip ground resolves naturally
(was posterized crosshatch), skin natural, flare soft, shadows deep with detail, and the fire jet
at the pinned endpoint has internal yellow→orange gradient instead of a blown white blob. mp4
bitrate dropped 6.75 MB→1.88 MB at identical settings = the high-frequency noise-bake is gone.
Pins still force (f0 standing/pointing, last frame fire-breathing). Audio streams present (aac).
Side effect for #35-followups: the audio head was un-modulated too — worth a re-listen.
* **Debug machinery kept (all gated on R4D_DIT_SEL, zero production cost):** per-step dump tagging
(`dit_s{K}_*` files, `R4D_DIT_SEL=K` also dumps step K, steps 0–1 always), the kernel-pointer
nout shadow (the lesson above), tvid/tarr schedule dumps. The TP2 dual-window blk hack was
diagnostic-only and was reverted before the fix commit.