Archived
decl_gated_fold_mx declared gemm_nt_q_gated_mx over 1..8 rows only, from before libr4d had gemm_mxfp4a8_gated_gemv_wide (9..64, byte-identical to gemv_wide followed by gated_quant_fp8, the pair it replaces). TranslateGemma already folds to 64 through RADIANCE_G3_FOLD_ROWS; Qwen's 16-row verify steps (two sequences at speculation 7) still ran gate_up and gated_quant_fp8 apart. Qwen3.8-27B MXFP4 + DFlash2 at TP2 on 2x R9700, production flags, ms a decode step, three interleaved rounds (medians), the 1..8 band -> folding to 32: 16 rows (x2): 1k 20.96 -> 20.78 (-0.9 %), 16k 21.96 -> 21.70 (-1.2 %) 32 rows (x4): 1k 23.97 -> 24.10 (+0.5 %), 16k 26.06 -> 25.98 32 rows (x8 short block): 1k 24.99 -> 25.14 (+0.6 %) and 64 rows lost 2.1 % (16k x16) on the base before this main. So the band is 16: a taller step takes exactly main's path. Where the wide row does not resolve (K at or under decode_shortk's corner), the declaration drops to 1..8 instead of losing the fold. Greedy output is identical to main (300 tokens, two prompts). arch_test: qwen35_fp8_mxfp4_feed_forward_folds_verify_steps_up_to_16_rows (one and two sequences of 8 rows fold, three to eight take the pair). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>