-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[V0 Deprecation] Remove V0 logic from get_input_embeddings
interface
#25242
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
[V0 Deprecation] Remove V0 logic from get_input_embeddings
interface
#25242
Conversation
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
|
||
def merge_multimodal_embeddings_from_map( | ||
inputs_embeds: torch.Tensor, multimodal_embeddings: NestedTensors, | ||
placeholder_map: MultiModalPlaceholderMap.IndexMap) -> torch.Tensor: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MultiModalPlaceholderMap
itself can be removed once the V0 model runners are gone
I have also decided not to touch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request refactors the get_input_embeddings
method across several multimodal models (hyperclovax_vision
, ultravox
) to remove V0 compatibility logic. The changes simplify the code by consistently using the merge_multimodal_embeddings
utility and removing deprecated code paths and functions like merge_multimodal_embeddings_from_map
. The SupportsMultiModal
interface in interfaces.py
is also cleaned up by removing overloads and parameters related to V0. These changes improve code clarity and maintainability by centralizing the embedding merge logic and removing obsolete code. The implementation appears correct and is a positive step towards simplifying the codebase.
vllm-project#25242) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
vllm-project#25242) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
vllm-project#25242) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk> Signed-off-by: charlifu <charlifu@amd.com>
Purpose
Remove V0-related code from
get_input_embeddings
in order to facilitate #16229Test Plan
Test Result
Essential Elements of an Effective PR Description Checklist
supported_models.md
andexamples
for a new model.