Skip to content

Conversation

DarkLight1337
Copy link
Member

@DarkLight1337 DarkLight1337 commented Sep 19, 2025

Purpose

Remove V0-related code from get_input_embeddings in order to facilitate #16229

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.
  • (Optional) Release notes update. If your change is user facing, please update the release notes draft in the Google Doc.

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
@DarkLight1337 DarkLight1337 added the ready ONLY add when PR is ready to merge/full CI is needed label Sep 19, 2025

def merge_multimodal_embeddings_from_map(
inputs_embeds: torch.Tensor, multimodal_embeddings: NestedTensors,
placeholder_map: MultiModalPlaceholderMap.IndexMap) -> torch.Tensor:
Copy link
Member Author

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

@DarkLight1337
Copy link
Member Author

I have also decided not to touch get_input_embeddings_v0 until V0 model runners are removed

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a 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.

@DarkLight1337 DarkLight1337 enabled auto-merge (squash) September 19, 2025 09:08
@DarkLight1337 DarkLight1337 merged commit 5089fd7 into vllm-project:main Sep 19, 2025
55 checks passed
@DarkLight1337 DarkLight1337 deleted the get-input-embeddings-v1 branch September 19, 2025 11:10
debroy-rh pushed a commit to debroy-rh/vllm that referenced this pull request Sep 19, 2025
FeiDaLI pushed a commit to FeiDaLI/vllm that referenced this pull request Sep 25, 2025
charlifu pushed a commit to ROCm/vllm that referenced this pull request Sep 25, 2025
vllm-project#25242)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
Signed-off-by: charlifu <charlifu@amd.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready ONLY add when PR is ready to merge/full CI is needed
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants