[Enhancement] support online quantization#653
Merged
Conversation
efba94e to
e8fca54
Compare
9abf8bf to
92ec964
Compare
92ec964 to
21baff7
Compare
21baff7 to
6a6c873
Compare
valarLip
approved these changes
May 15, 2026
|
Hi, @valarLip |
sijyang
pushed a commit
that referenced
this pull request
May 24, 2026
* WIP Signed-off-by: Haoyang Li <lihaoyang0109@gmail.com> * add docs Signed-off-by: Haoyang Li <lihaoyang0109@gmail.com> --------- Signed-off-by: Haoyang Li <lihaoyang0109@gmail.com>
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.
In terms of user interaction, there is a JSON-based
online_quant_configobject, which is divided intoglobal_quant_config,layer_quant_config, andexclude_layer. It uses wildcards to capturefull_namevalues.Once a name is matched, PTPC or MXFP4 quantization is applied, the value is modified in place, and the quantization attribute is updated. If the value cannot be retrieved, the original quantization type or a high-precision type is used instead.
For more details, see "3.7 Online Quantization at Load Time" in docs/configuration_guide.md
Feature
Reproduction
aiter: d6e73f9
atom: 81054f9
command: