Support configurable power-of-2 scaling ('oas' vs 'ceil') for floating-point microscaling in QWIX - #366
Open
copybara-service[bot] wants to merge 1 commit into
Open
Support configurable power-of-2 scaling ('oas' vs 'ceil') for floating-point microscaling in QWIX#366copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
copybara-service
Bot
force-pushed
the
test_980016894
branch
2 times, most recently
from
September 14, 2026 20:11
6105957 to
64dc0e9
Compare
copybara-service
Bot
force-pushed
the
test_980016894
branch
from
September 15, 2026 01:07
64dc0e9 to
69180c5
Compare
…g-point microscaling in QWIX
- Support scale_method in qarray.compute_scale_zero_point and HowToQuantize ('default', 'oas', 'ceil') for microscaled floating-point formats ('mxfp8', 'mxfp4').
- Enforce exact Ceil power-of-2 scaling unconditionally for microscaled integer formats ('mxint8', 'mxint4'), disallowing OAS for integers where uniform lattice steps cannot shift without loss of precision.
- Use efficient bit manipulation (mantissa mask add + bitwise and) for 2 ** ceil(log2(scale)) without transcendentals.
- Add scale_method fields to DotGeneralQtConfig for forward and backward passes.
- Add unit tests verifying OAS and ceil scale behaviors for floating-point formats, exact Ceil scaling for integer formats, and INT8 emulation using INT4 passes.
PiperOrigin-RevId: 980016894
copybara-service
Bot
force-pushed
the
test_980016894
branch
from
September 15, 2026 08:18
69180c5 to
4517fb4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Support configurable power-of-2 scaling ('oas' vs 'ceil') for floating-point microscaling in QWIX