-
Notifications
You must be signed in to change notification settings - Fork 617
Carry unplaced checkpoint weights using the loader's accounting, replacing MTP name-matching #2427
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
46 commits
Select commit
Hold shift + click to select a range
a5fb36f
Carry unplaced checkpoint weights using the loader's own accounting
shengliangxu 9b0da53
Copy the safetensors model loading never reads, instead of re-seriali…
shengliangxu 300ad63
Test every on-disk layout an unplaced weight can arrive in
shengliangxu 19dfd00
Give the distributed test PG a CPU backend, matching production
shengliangxu 91a97c2
Merge remote-tracking branch 'origin-oss/main' into shengliangx/expor…
shengliangxu 26d212b
Drop the tests for the MTP-prefix path this branch removed, and reformat
shengliangxu 9b6619e
Stop the carry-over failure handler from failing
shengliangxu 065a1bd
Merge remote-tracking branch 'origin-oss/main' into shengliangx/expor…
shengliangxu 4d28118
Unit-test the carry-over helpers directly instead of only end-to-end
shengliangxu d1deefd
Skip the carry-over tests where accelerate is absent
shengliangxu 71f86b8
Merge remote-tracking branch 'origin-oss/main' into shengliangx/expor…
shengliangxu f011ec2
Merge remote-tracking branch 'origin-oss/main' into shengliangx/expor…
shengliangxu fea4235
Address review: carried weights reach quantization_config.ignore
shengliangxu 79a91d1
Hoist _get_carried_over_module_names import to module scope
shengliangxu 16d7e90
Decide there is nothing to carry without importing safetensors
shengliangxu d9b0590
Narrow ckpt before deriving the unplaced keys
shengliangxu 58e64b5
Seed copied sidecars into ignore; stop failing on unbacked keys
shengliangxu 1f1ed5d
Answer the shard-backed question without the loader dependencies
shengliangxu 4b1d84a
Stop copying re-shipped weights; seed layerwise exclusions
shengliangxu 7947dab
Format test_unified_export_hf to the ruff version CI pins
shengliangxu 42f9c6f
Accept hub-cached symlinks; drop imports that were never optional
shengliangxu 090f23a
Skip the new symlink tests on Windows
shengliangxu 9b5b57f
Merge remote-tracking branch 'origin-oss/main' into shengliangx/expor…
shengliangxu af27278
Address /claude review: rank memory, fail-fast, and two narrowing gaps
shengliangxu 2cb3623
Merge remote-tracking branch 'origin-oss/main' into shengliangx/expor…
shengliangxu 0b83e06
Merge remote-tracking branch 'origin-oss/main' into shengliangx/expor…
shengliangxu 2693416
Carry weights the checkpoint index does not list
shengliangxu 075b854
Import the loader helper only in the branch that needs it
shengliangxu ba834b4
Move checkpoint-format parsing into hf_checkpoint_utils
shengliangxu ff59bd7
Move checkpoint-containment helpers into hf_checkpoint_utils
shengliangxu b9d5a68
Converge both exporters on one carried-exclusion helper
shengliangxu f9c52fa
Name the two carried-weight sets, and say so once
shengliangxu 043d8b2
Merge remote-tracking branch 'origin-oss/main' into shengliangx/expor…
shengliangxu 0f88692
Rename source_weight_map to indexed_weight_map
shengliangxu 61a057a
Derive unplaced keys from both accountings, not just the loader's report
shengliangxu 9d2055b
Fix CI: lazy accelerate import, defensive base_model_prefix, honest t…
shengliangxu 36bbd02
Warn on a structural-pass failure even when the recorded set is non-e…
shengliangxu b72d4ab
Skip the union tests where transformers itself is absent, not just ac…
shengliangxu 9bd5441
Merge remote-tracking branch origin-oss/main into shengliangx/export-…
shengliangxu bb6d9ab
Carry unplaced checkpoint weights through the vLLM fake-quant export
shengliangxu c077772
Move hf_checkpoint_utils to utils/plugins; consolidate weight-map log…
shengliangxu 8ce51d1
Remove weight_map_for; callers check indexed_weight_map's empty resul…
shengliangxu cc2ef04
Extract _source_checkpoint: one lookup instead of three spellings of it
shengliangxu 141f451
Merge remote-tracking branch origin-oss/main into shengliangx/export-…
shengliangxu c5bba8c
Merge origin-oss/main into shengliangx/export-carry-over
shengliangxu 528d483
Fix the two code-quality failures this branch was already carrying
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.