[Bugfix] Restore MRV2 full-payload transport for offline Qwen3-TTS (#8010)

Signed-off-by: Sy03 <1370724210@qq.com>
This commit is contained in:
Sy03 authored and GitHub committed 2026-09-23 01:51:20 +00:00
1 parent 3f473a358b
commit 5634f03eb1
13 files changed
+284 -26

No files matched your search

@@ -15,6 +15,7 @@ from vllm.v1.core.sched.output import SchedulerOutput
from vllm.v1.worker.gpu.model_runner import GPUModelRunner
from vllm.v1.worker.gpu.sample.sampler import Sampler
from vllm_omni.config.model import OmniModelConfig
from vllm_omni.model_executor.models.output_templates import OmniOutput
from vllm_omni.worker_v2.model_states import init_omni_model_state
from vllm_omni.worker_v2.model_states.omni_model_state import OmniModelState
@@ -53,6 +54,8 @@ def test_add_requests_empty_admission_and_stop_id_sanitization():
def test_prepare_native_data_plane_terminal_abort_split_and_warmup_skip():
runner = _make_runner()
runner.model_config = object.__new__(OmniModelConfig)
runner.model_config.async_chunk = True
plane = SimpleNamespace(
register_request=MagicMock(),
register_receivers=MagicMock(),
@@ -78,6 +81,19 @@ def test_prepare_native_data_plane_terminal_abort_split_and_warmup_skip():
plane.abort_requests.assert_called_once_with({"aborted"})
def test_full_payload_receive_is_polled_without_scheduled_tokens(mocker):
runner = object.__new__(OmniGPUModelRunner)
runner.model_config = object.__new__(OmniModelConfig)
runner.model_config.async_chunk = False
plane = mocker.Mock()
runner._omni_data_plane = plane
scheduler_output = SchedulerOutput.make_empty()
runner._prepare_native_data_plane(scheduler_output)
plane.recv_full_payload_inputs.assert_called_once_with(scheduler_output)
@pytest.mark.parametrize("output_form", ["tuple", "omni"])
def test_capture_model_unwraps_exclude_full_and_capture_mtp(output_form):
runner = object.__new__(OmniGPUModelRunner)