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
ParoQuant dense fallback overflows before a cancelling bias is added #3866
The public forward uses the dense CPU fallback for this supported group size. The quantized grid calculation has a finite FP16 output after bias, but the intermediate FP16 dot overflows before bias can cancel it.
Cause
ParoLinear._forward_dense decodes the packed weight to the activation dtype, runs torch.matmul, then adds bias in that dtype. The CPU ATen path in the same class already accumulates bias in FP32 before its final cast. The CUDA AWQ path also appears to return an activation-dtype result before adding bias, though this reproduction executes only the CPU fallback.
Expected
Keep the reduction and bias epilogue in a range that can represent the finite result, then cast once to the output dtype. Add a numeric-range test for the dense fallback and verify the native path. This is the same precision class as #3863 in a separate backend.
Activity
fix(paroquant): keep fp32 reduction and bias epilogue (#3866) (#3893)