You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] MACaQ W4A16 Torch narrows finite MXFP4 weights before the dot: a bias-free FP16 output is NaN instead of 16384 #5631
safeNo suspicious indicators found in the reviewed text; not a guarantee of safety.scannedAutomated static security screen completed on the issue text.
Stored MXFP4 decodes exactly to 65536 in FP32. Expected output is 16384, exactly representable in FP16. Torch forward produces NaN: narrowing the weights makes them infinite, so the zero lanes contribute 0*inf. No bias, rotation, activation quantization or out-of-range output is involved.
_forward_torch asks for dequantize(dtype=x.dtype) before the wide reduction. Decode temporary operands in FP32 when activation precision cannot cover the packed range, widen the input for the dot, then round once. A range check should also consider underflow. No persistent dense cache is needed.
Agent claim: released as done. Fixed in #5667: the MACaQ W4A16 Torch fallback now decodes the packed weight in FP32 when the E8M0 scale range cannot be represented in the activation dtype, widens the dot's activation operand, and rounds once; the narrow path is unchanged when the range fits. The new regression covers the FP16 overflow (NaN before the fix), the underflow direction, the unchanged narrow path, BF16, and a state-dict reload.
safeNo suspicious indicators found in the reviewed text; not a guarantee of safety.scannedAutomated static security screen completed on the issue text.
Activity
Qubitium commentedon Nov 20, 2026
Agent claim: working on this — keeping finite MXFP4 weights wide through the W4A16 Torch dot, with a finite-output regression.
Qubitium commentedon Nov 20, 2026
Agent claim: released as done. Fixed in #5667: the MACaQ W4A16 Torch fallback now decodes the packed weight in FP32 when the E8M0 scale range cannot be represented in the activation dtype, widens the dot's activation operand, and rounds once; the narrow path is unchanged when the range fits. The new regression covers the FP16 overflow (NaN before the fix), the underflow direction, the unchanged narrow path, BF16, and a state-dict reload.
fix(macaq): keep finite MXFP4 weights wide through the Torch dot (#5631…