-
-
Notifications
You must be signed in to change notification settings - Fork 20.5k
Remove unnecessary load_weights methods
#44589
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
vllm-bot
merged 57 commits into
vllm-project:main
from
hmellor:remove-simple-load-weights
Jun 29, 2026
Merged
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
88beb3b
Enable fused linear layers to load themselves
hmellor 41f4584
Enable GPTQ extra bias skipping in AutoWeightsLoader
hmellor fcd151b
Try it on a couple of simple weight loaders
hmellor a9788ab
Fix LoRA loading for these two models
hmellor cca665e
Delete some more load_weights methods
hmellor e316238
Add patterns from `maybe_remap_kv_scale_name` to `QuantizationConfig.…
hmellor 665ca0c
Use new mappings in `AutoWeightsLoader`
hmellor edf67e6
Remove some more load_weights methods
hmellor 698d2a6
Merge remote-tracking branch 'upstream/main' into remove-simple-load-…
hmellor b1f1c9d
Fix `load_weights` methods for fused case
hmellor b5a7191
Fix BaiChuan tests that depend on old behaviour
hmellor f5383aa
Handle MergedColumnParallelLinear for LoRA too
hmellor 82a7a64
Delete some more load_weights methods
hmellor c3a316a
Add debug logs while loading
hmellor c802faa
Fix late initialised biases
hmellor 88de67d
Fix GPTQ tests
hmellor 4069aae
fix bnb
hmellor 9d69ba6
Merge branch 'main' into remove-simple-load-weights
hmellor 872ff37
Make `vllm.model_executor.utils.get_packed_modules_mapping` check `hf…
hmellor 3b73687
Fix `WeightsMapper.get_packed_modules_mapping`
hmellor c657d7d
Better `SupportsQuant._maybe_apply_model_mapping`
hmellor f2d548b
`BitsAndBytesModelLoader` can be simpler now
hmellor 41e3a9e
Use `get_packed_modules_mapping` for `get_supported_lora_modules`
hmellor 68085a0
Fix test
hmellor 2f56a42
tweaks
hmellor d051813
typo
hmellor 5c2a354
Mapper must present both shard id and weight name as supported packings
hmellor b5bdb58
Fix test
hmellor dbf02b1
`AutoWeightsLoader` inject packed mappings from mapper at load time
hmellor a97a1a1
revert lora test changes
hmellor a33e90e
Revert quant/lora hacks; `get_packed_modules_mapping` -> `get_unfused…
hmellor 4e5c1e3
Add `packed_modules_mapping` attrs back to models
hmellor 735d725
Revert now unused LoRA things
hmellor a7a65a9
Revert lora test
hmellor 2aadace
tweak diff
hmellor ed3b43c
More accurate comment
hmellor 4a53e8b
Merge branch 'main' into remove-simple-load-weights
hmellor f7d1268
Be explicit about which mappings are for stacking
hmellor 342b77c
Always ignore unexpected bias
hmellor 5df5d58
Fix loading submodules for quant schemes
hmellor 280726c
Merge branch 'main' into remove-simple-load-weights
hmellor f6babd8
remove unnecessary `loaded_shard_id: tuple[int, ...]` loading
hmellor 88cc90c
Merge branch 'main' into remove-simple-load-weights
hmellor 38388b6
Revert "remove unnecessary `loaded_shard_id: tuple[int, ...]` loading"
hmellor b5ee2e2
`MergedColumnParallelLinear.load_weights` handle tuple shard id
hmellor d7619d2
Make `validate_shard_id` narrow type properly
hmellor 1f62b5b
Pass shard_id as a param of the weight instead of str hacks
hmellor 4ab92e2
Apply to models
hmellor 5fe0c6e
revert whisper formatting change
hmellor 0e78b7c
Remove child scan in bnb loading
hmellor 48fae6b
Bring GLMV4 mapper to the top class
hmellor 2426f76
propagate mapper from Qwen2Model
hmellor d36e06e
Add Gemma3
hmellor 69f7415
propagate up for internlm2 too
hmellor 29c0149
supports quant and propagation for other models too
hmellor c3491ea
Merge branch 'main' into remove-simple-load-weights
hmellor 0e292fe
Merge branch 'main' into remove-simple-load-weights
hmellor 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
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.