Repository navigation
[2/2] Export vLLM fake-quant checkpoints through Megatron-Bridge #2889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
b190d28
Export vLLM fake-quant checkpoints through Megatron-Bridge
kevalmorabia97 c5c3433
Drop every weight-quantizer buffer when folding weights
kevalmorabia97 4c5fd63
Cover per-expert Qwen3-MoE in the fake-quant export parallelism test
kevalmorabia97 916395d
Keep the SVDQuant low-rank term when folding weights
kevalmorabia97 45cca84
Mark the export as saved in one place for both export paths
kevalmorabia97 f882803
Fold sequential weight quantizers (e.g. W4A8) in mtq.fold_weight
kevalmorabia97 5c1fc9e
Fold the fake-quant export tests into the existing Megatron example t…
kevalmorabia97 08ce4b2
Compare against the versioned recipe of the Megatron-LM fake-quant ex…
kevalmorabia97 f13e5cc
Check the quantizers once before the Megatron-LM fake-quant export
kevalmorabia97 65ca9f2
Test the Megatron examples and GPU tests against a newer Megatron-Bridge
kevalmorabia97 449cffb
Keep a quantized output_layer's checkpoint state on newer Megatron-Core
kevalmorabia97 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| name: Megatron-Bridge from source | ||
| description: >- | ||
| Replace the NeMo container's Megatron-Bridge and Megatron-Core sources with a Megatron-Bridge commit and | ||
| its pinned Megatron-LM, so CI covers features newer than the container. Remove once the container has them. | ||
|
|
||
| inputs: | ||
| commit: | ||
| description: Megatron-Bridge commit. Keep in sync with examples/megatron_bridge/README.md. | ||
| default: 1d9caf7324e608aca7181de40be26a6387976210 | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - shell: bash | ||
| run: | | ||
| set -euxo pipefail | ||
| src=$(mktemp -d) | ||
| git -C "$src" init -q | ||
| git -C "$src" fetch -q --depth 1 https://github.com/NVIDIA-NeMo/Megatron-Bridge.git "${{ inputs.commit }}" | ||
| git -C "$src" checkout -q FETCH_HEAD | ||
| git -C "$src" submodule update -q --init --depth 1 3rdparty/Megatron-LM | ||
| # Both are editable installs in the NeMo container, so replacing the sources is enough. | ||
| for dir in src/megatron/bridge 3rdparty/Megatron-LM/megatron; do | ||
| rm -rf "/opt/Megatron-Bridge/$dir" | ||
| cp -r "$src/$dir" "/opt/Megatron-Bridge/$dir" | ||
| done | ||
| rm -rf "$src" |
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.