"ssh:/git@developer.sourcefind.cn:2222/yangql/googletest.git" did not exist on "c18438ca2983d4f334cfdbd4453e15c41111fa17"
Unverified Commit 6fe58876 authored by Isotr0py's avatar Isotr0py Committed by GitHub
Browse files

[Chore] Remove v0 dead code for Qwen2.5-omni (#30883)


Signed-off-by: default avatarIsotr0py <mozf@mail2.sysu.edu.cn>
parent bc3700e0
...@@ -70,7 +70,6 @@ from vllm.multimodal.inputs import ( ...@@ -70,7 +70,6 @@ from vllm.multimodal.inputs import (
MultiModalFeatureSpec, MultiModalFeatureSpec,
MultiModalFieldConfig, MultiModalFieldConfig,
MultiModalKwargsItems, MultiModalKwargsItems,
NestedTensors,
) )
from vllm.multimodal.parse import ( from vllm.multimodal.parse import (
AudioProcessorItems, AudioProcessorItems,
...@@ -1150,27 +1149,6 @@ class Qwen2_5OmniThinkerForConditionalGeneration( ...@@ -1150,27 +1149,6 @@ class Qwen2_5OmniThinkerForConditionalGeneration(
handle_oov_mm_token=handle_oov_mm_token, handle_oov_mm_token=handle_oov_mm_token,
) )
def embed_multimodal_v0(self, **kwargs: object) -> NestedTensors | None:
audio_input = self._parse_and_validate_audio_input(**kwargs)
image_input = self._parse_and_validate_image_input(**kwargs)
video_input = self._parse_and_validate_video_input(**kwargs)
if audio_input is None and image_input is None and video_input is None:
return None
multimodal_embeddings: list[tuple[NestedTensors, str]] = []
if audio_input is not None:
audio_embeds = self._process_audio_input(audio_input)
multimodal_embeddings.append((audio_embeds, "audio"))
if image_input is not None:
image_embeds = self._process_image_input(image_input)
multimodal_embeddings.append((image_embeds, "image"))
if video_input is not None:
video_embeds = self._process_video_input(video_input)
multimodal_embeddings.append((video_embeds, "video"))
return multimodal_embeddings
def forward( def forward(
self, self,
input_ids: torch.Tensor, input_ids: torch.Tensor,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment