Archived
The gated attention block (qwen35 family, Qwen4exp, lfm2, krea2) takes gate_quant_fp8 when a library declares it, otherwise sigmoid + mul (+ quant_act_fp8). One sub-group per (row, 128-column group), the sigmoid rounded to bf16 before the multiply, xe2_sigmoid's float exp with the double one near a bf16 tie (always double under XE2_EXACT): byte-identical to libxe2's sigmoid -> mul -> quant_act_fp8, which the row declares as its chain (.replaces) for rad-kbench's fusion oracle. out_bf16 may alias x. xe2_sigmoid and xe2_mul get [M, n] shape hooks (libr4d's unary/binary), which the oracle sizes the chain's temporaries from. XE2_NO_FUSED_GATE=1 hides the row for an A/B. kbench: fixture 2144/2144; fusion oracle 40/40 byte-identical on the 9B, the 27B, and the 9B under XE2_EXACT. 27B int4, spec off: 646 -> 630 launches a decode step, same output hash, decode 30.6 tok/s either way (the saving is ~16 dispatch gaps, ~0.3%), prefill 2.4k 1387 -> 1400 tok/s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>