Skip to content

[Bugfix][LoRA] Use an explicit capability flag for tower connector LoRA - #53092

Merged
jeejeelee merged 3 commits into
vllm-project:mainfrom
linitra24:fix/tower-connector-lora-capability
Aug 21, 2026
Merged

jeejeelee merged 3 commits into
vllm-project:mainfrom
linitra24:fix/tower-connector-lora-capability

Conversation

@linitra24

@linitra24 linitra24 commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

get_num_mm_encoder_tokens is defined on SupportsMultiModal, so every model that inherits this interface has the method even if it does not implement it. Therefore, the previous hasattr check always returned True for multimodal models and could incorrectly enable tower connector LoRA.

Replace the hasattr(model, "get_num_mm_encoder_tokens") check with an explicit supports_tower_connector_lora capability flag.

Purpose

Test Plan

Test Result


Essential Elements of an Effective PR Description Checklist
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.

Signed-off-by: linitra24 <Joy25810@foxmail.com>

@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.

@linitra24 linitra24 changed the title [LoRA] Use an explicit capability flag for tower connector LoRA [Bugfix][LoRA] Use an explicit capability flag for tower connector LoRA Aug 20, 2026
@mergify mergify Bot added llama Related to Llama models mistral Related to Mistral models qwen Related to Qwen models glm bug Something isn't working labels Aug 20, 2026
@jeejeelee

Copy link
Copy Markdown
Member

/ci run

@jeejeelee
jeejeelee enabled auto-merge (squash) August 21, 2026 02:49
@github-actions github-actions Bot added the ready ONLY add when PR is ready to merge/full CI is needed label Aug 21, 2026
@github-actions

Copy link
Copy Markdown

✅ Triggered Buildkite CI #84944 for commit 5414504cc1c7.

@linitra24

Copy link
Copy Markdown
Contributor Author

/ci run

@github-actions

Copy link
Copy Markdown

✅ Triggered Buildkite CI #84957 for commit 7b672b21785b.

@linitra24

Copy link
Copy Markdown
Contributor Author

/ci run

@github-actions

Copy link
Copy Markdown

✅ Triggered Buildkite CI #84964 for commit 2834408d536b.

@jeejeelee
jeejeelee merged commit e85d1b6 into vllm-project:main Aug 21, 2026
99 checks passed
JonSnow1807 added a commit to JonSnow1807/vllm that referenced this pull request Aug 22, 2026
Assisted-by: AI coding assistant
Signed-off-by: JonSnow1807 <JonSnow1807@users.noreply.github.com>
am-cohere pushed a commit to am-cohere/vllm that referenced this pull request Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working glm 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants