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

+11
View File
@@ -226,6 +226,17 @@ private:
int64_t enc_dbg_used_ = 0; /* bytes the last encode readback filled */
const char* enc_dbg_sel_ = ""; /* R4D_ENC_SEL: "", "mp" or "pre" (audio) */
/* Debug-only (#61, R4D_DIT_SEL): a pinned slab holding the DiT step-0 dump -- the f32 shadows
* (h0 | temb | mod) the plugin declares when it sees the same env, plus the step's velocity
* head output b_vel -- so done() can write them to R4D_ENC_DUMPDIR for the CPU reference DiT
* replay. Staged only on a plain request's step 0; a plugin without the env leaves
* decl_.dbg_dit_h0 null and dit_dbg_ stays false, so a normal run never touches these. */
bool dit_dbg_ = false;
char* dit_host_ = nullptr;
int64_t dit_h0_b_ = 0, dit_vel_b_ = 0, dit_temb_b_ = 0, dit_mod_b_ = 0;
bool dit_used_ = false; /* the running pass staged a dump */
int64_t dit_rows_ = 0; /* packed rows R of the dumped step */
std::vector<RadBatch> out_; /* one per rank */
std::vector<RadVideoGenBatch> vout_;
Pass pass_;