Skip to content

Make load_weights completely optional#49038

Open
hmellor wants to merge 17 commits into
vllm-project:mainfrom
hmellor:make-load-weights-optional
Open

Make load_weights completely optional#49038
hmellor wants to merge 17 commits into
vllm-project:mainfrom
hmellor:make-load-weights-optional

Conversation

@hmellor

@hmellor hmellor commented Jul 18, 2026

Copy link
Copy Markdown
Member

Part of #48972

Infrastructure changes:

  • Add autoload_weights and use it in weight loaders and runners. This creates it's own AutoWeightsLoader if the model doesn't have a load_weights method
  • When the model has no load_weights method, auto apply any hf_to_vllm_mapper in AutoWeightsLoader._load_module as the model is recursed into
  • Remove skip_prefix and skip_substrs from AutoWeightsLoader. These arguments duplicate the behaviour achievable with the mapper. Convert all uses of these arguments to mapper mappings
  • Add automatic lm_head skipping for models with tie_word_embeddings so every model doesn't need to specify this manually
  • Add fused_qkv_interleaved to QKVParallelLinear so that it can de-interleave a fused weight itself

hmellor added 3 commits July 18, 2026 13:23
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
…d weights

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
hmellor added 13 commits July 18, 2026 14:46
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
@hmellor hmellor added the ready ONLY add when PR is ready to merge/full CI is needed label Jul 19, 2026
@hmellor
hmellor marked this pull request as ready for review July 19, 2026 14:45

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deepseek Related to DeepSeek models gpt-oss Related to GPT-OSS models llama Related to Llama models mistral Related to Mistral models qwen Related to Qwen models ready ONLY add when PR is ready to merge/full CI is needed speculative-decoding v1

Projects

Status: To Triage

Development

Successfully merging this pull request may close these issues.

2 participants