Repository navigation
[OMNIML-6085] Run expert-parallel PTQ from hf_ptq.py #2754
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
Open
shengliangxu
wants to merge
45
commits into
shengliangx/hfep-base-14-hf-ptq
Choose a base branch
from
shengliangx/hfep-14-hf-ptq
base: shengliangx/hfep-base-14-hf-ptq
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
f83eb16
Run expert-parallel PTQ from hf_ptq.py
shengliangxu dd4c58b
Move the expert-parallel PTQ changelog entry into 0.49.0
shengliangxu 83d15c3
Test hf_ptq.py's expert-parallel wiring
shengliangxu 6aa837c
Refuse a plan whose dense sharding nothing would apply
shengliangxu da0d66d
Pin a model to one GPU only when torchrun runs several ranks
shengliangxu 40cfc95
Document expert-parallel PTQ in the hf_ptq README
shengliangxu 49c0180
Calibrate through the distributed loop only for expert-parallel runs
shengliangxu 40899fe
Initialize NVML before probing it in launch_memory_monitor
shengliangxu d489b4b
Stub load_pretrained in the device-pinning test
shengliangxu 446c152
Load hf_ptq's models through load_pretrained's routing
shengliangxu 8fcda25
Stub load_pretrained in the FSDP2 MTP-refusal test
shengliangxu c249470
Answer the session's collectives in the hf_ptq wiring tests
shengliangxu 987610c
Run hf_ptq without the session: own the process group, read rank and …
shengliangxu 0edf648
Decide hf_ptq's distribution once and read the plan wherever it distr…
shengliangxu ec6e422
Take hf_ptq's DistributedState from distributed_run
shengliangxu e155b07
Let distributed_run own hf_ptq's one-rank FSDP2 group
shengliangxu b0c984e
Leave a single process's FSDP2 group to the load
shengliangxu 14ddc44
Keep every rank decoding hf_ptq's preview of a sharded model
shengliangxu 211ef0d
Test the preview lockstep for a one-rank FSDP2 plan and in the VL ima…
shengliangxu 820ddb8
Write a replicated model's checkpoint from rank 0 only
shengliangxu 4daa54e
Refuse dense FSDP2 within expert-data-parallel replicas before loading
shengliangxu 4ef2a4c
Answer the checkpoint-read gather in hf_ptq's simulated torchrun laun…
shengliangxu 29b87bf
Run hf_ptq expert-parallel for real on two GPUs
shengliangxu d06802c
Trim the hf_ptq expert-parallel tests: drop duplicates, merge tables
shengliangxu 4fe6e55
Refuse the TensorRT-LLM checkpoint export in a multi-process run
shengliangxu 879d45f
Calibrate image batches through the expert-parallel loop
shengliangxu 0ddf290
Let the hf_ptq EP tests' checkpoint stub take the Hub options
shengliangxu fb475b2
Keep generate from switching a MoE's experts to batched_mm in hf_ptq'…
shengliangxu 2f0cc06
Run hf_ptq's sharded previews for real, under expert parallelism and …
shengliangxu 10ded45
Refuse an AutoQuantize recipe on the expert-parallel and replicated runs
shengliangxu 16b758e
Keep each rank on its own GPU on every load path, and stop a sharded …
shengliangxu 7238c98
Have a sharded model's ranks skip the image preview together
shengliangxu a04bf65
Refuse single-process load options in hf_ptq's multi-rank runs
shengliangxu 53159ca
Refuse a sharded vLLM fake-quant export; re-plant a2a forwards after PTQ
shengliangxu 532c902
Describe auto's EP degree below a spec's floor, and who re-plants a2a
shengliangxu c0f2ea9
Keep --use_fsdp2's best-effort preview; refuse a rank naming no GPU
shengliangxu 7777e5e
Re-plant a text-calibrated VLM's a2a forwards over the whole model
shengliangxu b5d0f7e
Keep a preview's nested language model off batched_mm experts too
shengliangxu c724987
Note hf_ptq's --device refusal under a multi-rank torchrun in the cha…
shengliangxu 5fbb9b1
Refuse a sharded model's speculative-decoding export on every rank
shengliangxu 8245ee9
Name transformers 5.7 as the expert-parallel floor in the hf_ptq README
shengliangxu e277aa8
Skip hf_ptq's preview of a model that has no generate
shengliangxu a5e4fca
Drop hf_ptq's preview skip for a model without generate
shengliangxu 886b5b8
Skip hf_ptq's DeepSeek-V3 expert-parallel routes below transformers 5.7
shengliangxu a7793b7
Keep hf_ptq's Whisper calibration loader whole on every rank
shengliangxu 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
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.