Archived
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:
1 parent
f7cc1b3a3b
commit
2477456b36
4 files changed
+143
-26
No files matched your search
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user