[Core] Enable inputs_embeds_size separate from hidden_size#29741
Merged
DarkLight1337 merged 13 commits intovllm-project:mainfrom Nov 30, 2025
Merged
[Core] Enable inputs_embeds_size separate from hidden_size#29741DarkLight1337 merged 13 commits intovllm-project:mainfrom
inputs_embeds_size separate from hidden_size#29741DarkLight1337 merged 13 commits intovllm-project:mainfrom
Conversation
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
5 tasks
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces support for models where inputs_embeds_size is different from hidden_size, which is a great addition for supporting more multimodal models. The changes are mostly about propagating this new configuration. However, I found a critical issue in the implementation of get_inputs_embeds_size which could lead to incorrect behavior for the intended models. My review includes a fix for this issue.
Member
Author
|
OK the test passes locally now. |
Isotr0py
approved these changes
Nov 30, 2025
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
Contributor
|
Thanks for reminding. @Potabk Please consider this change when upgrading vLLM |
Contributor
|
Thanks for fix that! |
kitaekatt
pushed a commit
to kitaekatt/vllm
that referenced
this pull request
Dec 1, 2025
…project#29741) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
amd-hhashemi
pushed a commit
to amd-hhashemi/vllm
that referenced
this pull request
Dec 2, 2025
…project#29741) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk> Signed-off-by: Hashem Hashemi <hashem.hashemi@amd.com>
dsuhinin
pushed a commit
to dsuhinin/vllm
that referenced
this pull request
Jan 21, 2026
…project#29741) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk> Signed-off-by: dsuhinin <suhinin.dmitriy@gmail.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Purpose
ModelConfig.get_inputs_embeds_sizeto distinguish the hidden dimension ofinputs_embedsfromModelConfig.get_hidden_size.ModelConfig.get_inputs_embeds_size. (Notable for OOT model runners)get_inputs_embeds_sizeandget_hidden_sizereturn different values.FIX #27566 (comment)
cc @piood @patrickvonplaten @wangxiyuan
Test Plan
Add
google/siglip2-giant-opt-patch16-384to SigLIP testsTest Result
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.