minimaxh3: adaln_t_table curve-form checkpoints + an R4D_DIT_SEL step dump

The DaSiWa overlay ships its modulation curve as a precomputed table (adaln_t_table
[1025,8]): timestep_embed gains a curve mode -- y[m] = the table linearly sampled at the
timestep, no sinusoid, no MLP -- in the HIP, AVX and ref tiers, and the arch drives the four
timestep rows (video, audio, and each re-embedded with its reference pin) through it with the
ada projections as plain bf16 K=8 lines. The dasiwa-w8a8 recipe carries the overlay.
Device-verified at 512: T2VA, I2VA and FL2VA complete clean and the T2VA re-run is
bit-identical; the fried look PERSISTS on the exact finetune the reference clips rendered
from, which kills the checkpoint-style theory and pins the fork to Radiance's forward.

For the value-parity localisation: R4D_DIT_SEL (env, driver and plugin) declares f32 PERSIST
shadows of the stream entering block 0, the timestep table and the step-0 modulation, and the
driver reads those plus the velocity head back on a plain request's step 0 into
R4D_ENC_DUMPDIR, for the CPU reference DiT replay to diff against.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
gearwave00001andClaude committed 2026-10-21 13:37:03 -05:00
1 parent 3a7a79fb47
commit cfbccb46dc
16 files changed
+631 -92

No files matched your search

+16
View File
@@ -1037,6 +1037,22 @@ typedef struct RadVideoGenDecl {
int64_t dbg_ve_l3_bytes;
rad_buf dbg_ve_l4;
int64_t dbg_ve_l4_bytes;
/* #45 DiT value-parity: an f32 PERSIST twin of the DiT stream entering block 0 (b_h, post
* video_patch_proj / condition_proj / audio_patch_proj -- the JOINT [text|audio|video] rows),
* and of the velocity head output (b_vel), both written by debug-only cast ops so the bf16 arena
* scratch (b_h) lag does not corrupt the readback (the b_ax2 lesson). Read with R4D_DIT_SEL on a
* generation pass: replay the identical h0 through the reference DiT (comfy model.py) and compare
* the velocity to localize where Radiance's forward over-gains. The t_emb / modulation / rope the
* pass actually used are dumped alongside so the torch replay needs no re-derivation. Trailing
* debug fields; an older plugin declares none and keeps the 0 default. */
rad_buf dbg_dit_h0; /* [T, D] f32: stream into block 0 */
int64_t dbg_dit_h0_bytes;
rad_buf dbg_dit_vel; /* [maxV, kPatchVals] f32: velocity head output */
int64_t dbg_dit_vel_bytes;
rad_buf dbg_dit_temb; /* [TT, td] f32: silu(t_emb) the adaln projections consume */
int64_t dbg_dit_temb_bytes;
rad_buf dbg_dit_mod; /* modulation table (b_modg) f32, this step */
int64_t dbg_dit_mod_bytes;
} RadVideoGenDecl;
int rad_declare_video_generator(RadBuilder* b, const RadVideoGenDecl* d);