Deprecate AQT quantization in MaxText#3912
Open
sarunsingla11722 wants to merge 4 commits into
Open
Conversation
gobbleturk
reviewed
May 14, 2026
| return TransformerEngineQuantization(config) | ||
| quant_mode = get_quant_mode(quant_mode_str) | ||
| replicate_scale = config.replicate_quant_scale if config.replicate_quant_scale else False | ||
| max_logging.log("WARNING: AQT quantization is deprecated and will be removed in a future release. Please migrate to Qwix by setting use_qwix_quantization=True.") |
Collaborator
There was a problem hiding this comment.
potentially this should go in types.py instead but prolly fine here
gobbleturk
approved these changes
May 14, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Description
This PR implements Phase 1 of the deprecation plan for Google's Accurate Quantized Training (AQT) library in MaxText in favor of its successor, Qwix. Qwix operates natively within the JAX ecosystem using a non-intrusive Interception API, supporting both QAT and PTQ without custom layer wrappers.
To ensure a smooth transition for enterprise customers and automated training scripts, AQT remains fully functional in this release but is explicitly marked as deprecated across core logic, configuration, and documentation. Full removal will occur in a future major release (Phase 2).
FIXES:b/512240084
Key Changes
max_loggingruntime warning alerting users that AQT is deprecated and advising migration to Qwix (use_qwix_quantization=True).use_qwix_quantizationto mark the legacy AQT default as deprecated.Tests
Verification & Testing
QuantizationTest.test_aqt_quantizationsuccessfully emits the deprecation warning.If the change fixes a bug or a Github issue, please include a link, e.g.,:
FIXES: b/123456
FIXES: #123456
Notice 1: Once all tests pass, the "pull ready" label will automatically be assigned.
This label is used for administrative purposes. Please do not add it manually.
Notice 2: For external contributions, our settings currently require an approval from a MaxText maintainer to trigger CI tests.
Tests
Please describe how you tested this change, and include any instructions and/or
commands to reproduce.
Checklist
Before submitting this PR, please make sure (put X in square brackets):
gemini-reviewlabel.