[Multimodal] Type dummy options per modality (#57576)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
56cac80b14
commit
8a5cf54387
@@ -6,7 +6,7 @@ from types import SimpleNamespace
|
||||
import pytest
|
||||
import torch
|
||||
|
||||
from vllm.config.multimodal import VideoDummyOptions
|
||||
from vllm.config.multimodal import MultiModalDummyOptions, VideoDummyOptions
|
||||
from vllm.model_executor.models.molmo2 import (
|
||||
Molmo2DummyInputsBuilder,
|
||||
build_flat_image_bool_length,
|
||||
@@ -83,7 +83,9 @@ def test_dummy_video_num_frames_override_honors_min_of_two(
|
||||
data = builder.get_dummy_mm_data(
|
||||
seq_len=128,
|
||||
mm_counts={"image": 0, "video": 1},
|
||||
mm_options={"video": VideoDummyOptions(num_frames=num_frames_override)},
|
||||
mm_options=MultiModalDummyOptions(
|
||||
video=VideoDummyOptions(num_frames=num_frames_override)
|
||||
),
|
||||
)
|
||||
|
||||
video, _metadata = data["video"][0]
|
||||
|
||||
Reference in New Issue
Block a user