Archived
vae/dit/refiner FFN: store the SwiGLU gate half FIRST — the container's row swap was the fried look
Three map_rows sites reordered ff.net.0.proj rows so the gate landed SECOND, while silu_mul / gated_quant_fp8 gate with the FIRST half (comfy's _swiglu_eager — the reference that produced the ground-truth clips — chunks gate-first). Every DiT, refiner and video-VAE-decoder FFN therefore computed silu(up)*gate instead of silu(gate)*up: the block-0 device internals dump measured the FFN down-projection at cos 0.49 against the reference while attn/to_out sat at the bf16 floor, and renders came out over-bright with 37.8% of pixels clipping high. The maps are now identity (checkpoint order) at all three sites; quant scales follow because they are computed from the mapped rows. TE blocks were never affected (separate gate/up concat, already gate-first). Reconverted with --reuse (707 tensors / 803 weights): minimax-h3-dasiwa-w8a8-gatefix.rad. Byte check flips in every class (vae relFro 1.7e-3 vs 1.24 swapped, bias exact, dit sign-match 0.989 vs 0.484, ref fp8 2.6e-2 vs 1.37). Device A/B 512² 6s seed 1234: clipHi 37.8% -> 0.1%, luma 136 -> 81 (reference 86), T2VA control clean; step-0 velocity vs the full CPU reference cos 0.9886, std ratio 1.071 (was a 7.6x gap) — the W8A8 quant floor. Kept: the R4D_DIT_SEL-gated decoder parity shadows (dbg_vd_* decl fields + driver readback) that localised the fault. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
bf6dc374d4
commit
d480a47bef
4 files changed
+193
-7
No files matched your search
@@ -238,6 +238,13 @@ private:
|
||||
bool dit_used_ = false; /* the running pass staged a dump */
|
||||
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),
|
||||
* appended to the same slab and read back on chunk 0's decode pass. Staged once per request. */
|
||||
int64_t dec_lat_b_ = 0, dec_x0_b_ = 0, dec_blk_b_ = 0, dec_n_b_ = 0,
|
||||
dec_pix_b_ = 0;
|
||||
bool dec_used_ = false;
|
||||
int64_t dec_geom_[4] = {0, 0, 0, 0}; /* lat_h, lat_w, tiles, n_frames_out */
|
||||
|
||||
std::vector<RadBatch> out_; /* one per rank */
|
||||
std::vector<RadVideoGenBatch> vout_;
|
||||
Pass pass_;
|
||||
|
||||
Reference in new issue
Block a user