[OMNIML-5823] Add row-padded IQ export and Nemotron recipe - #2433
Closed
hychiang-git wants to merge 9 commits into
Closed
hychiang-git wants to merge 9 commits into
hychiang-git wants to merge 9 commits into
Conversation
Signed-off-by: Chenhan D. Yu <5185878+ChenhanYu@users.noreply.github.com>
Signed-off-by: Chenhan D. Yu <5185878+ChenhanYu@users.noreply.github.com>
Add TP=1 Megatron unified checkpoint export for IQ1_S and IQ2_XS, including final-layout packing and coverage for the scale-free payload schema. Signed-off-by: Chenhan D. Yu <5185878+ChenhanYu@users.noreply.github.com>
Signed-off-by: Chenhan D. Yu <5185878+ChenhanYu@users.noreply.github.com>
Signed-off-by: Chenhan D. Yu <5185878+ChenhanYu@users.noreply.github.com>
Store IQ payloads under canonical weight keys and remove redundant logical-shape tensors.\n\nSigned-off-by: Chenhan D. Yu <5185878+ChenhanYu@users.noreply.github.com>
Register packed quantized expert weights as buffers so unified export retains them. Add regression coverage for buffer-backed fused-expert projections. Signed-off-by: Chenhan D. Yu <5185878+ChenhanYu@users.noreply.github.com>
Signed-off-by: Hung-Yueh Chiang <hungyuehc@nvidia.com>
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueComment |
ChenhanYu
force-pushed
the
iq2xs-unified-export
branch
from
September 15, 2026 21:16
4b12d33 to
73baffe
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.
What does this PR do?
Type of change: new feature
This PR extends the IQ1_S and IQ2_XS work in #2381 with row-padded export and model-specific validation:
Usage
The launcher examples under
tools/launcher/examples/nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16/provide export, checkpoint-validation, stock-decoder, and full-GGUF validation workflows.Testing
python -m pytest -q tests/unit/torch/quantization/test_iq1_s.py tests/unit/torch/quantization/test_iq2_xs.py tests/unit/torch/export/test_export_weight.py tests/unit/torch/export/test_get_quantization.py tests/unit/torch/export/test_offload_export.py tests/unit/recipe/test_nemotron_lightning_iq2_xs_recipe.py tests/unit/examples/test_materialize_mixed_iq_gguf.py tests/unit/examples/test_validate_ggml_row_alignment.py tests/unit/examples/test_validate_iq2_xs_reconstruction.py tests/unit/examples/test_validate_mixed_quantized_hf.py— 89 passed.pre-commit run --from-ref origin/iq2xs-unified-export --to-ref HEAD— passed.Before your PR is "Ready for review"
Make sure you read and follow Contributor guidelines and your commits are signed (
git commit -s -S).Make sure you read and follow the Security Best Practices.
CONTRIBUTING.md: N/A — no new dependency or copied implementation.Additional Information
Depends on #2381. This remains a draft while the parent PR and end-to-end runtime validation are in progress.