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] FP4 quantization on CPU rounds ties toward zero while Metal rounds to even #4753
☑️ I understand it is strictly prohibited to use AI to write issues.
Describe the bug
This bug was identified by comparing floating point number conversion results across a few open-source implementations. On CPU, mx.quantize to FP4 rounds some ties towards zero and some to even while the Metal kernel rounds all ties to even. The OCP MX spec says that implementations must at least support round ties to even (other rounding modes are optional). The CPU implementation should at least be self-consistent. Feel free to close if this is expected/intended.
Activity