Archived
Unblocked by the on-box torch env. ref_aenc_parity.py loads the reference HF audio VAE (fp32) under ComfyUI's --cpu branch (no GPU context — the TP2 server holds both cards), and compares the device's b_enca normalised latent to the reference encode() run on the device's OWN staged enc_samples buffer. Device-input-anchored => removes every decode/normalise/pad confound; a kernel bug shows gross, a correct fp8 port shows at/below the ~1.6e-3 convert quant floor. --selftest validates the reshape / slot / metric logic without a device (perfect->0, temporal-misalign->0.24). Driver side: extend the R4D_ENC_DEBUG scaffolding to raw-dump the staged enc_samples (host buffer at stage time) and the b_enca / b_evc readback to R4D_ENC_DUMPDIR. Inert unless R4D_ENC_DEBUG + R4D_ENC_DUMPDIR are both set; host tier green. Reference model.py re-baked golden.json byte-identical (no reference drift).