[BugFix][Higgs-Audio-V3] Fix transcript and concurrent sampling tests (#6422)

Signed-off-by: akshatvishu <akshatnayak197@gmail.com>
This commit is contained in:
akshatvishu authored and GitHub committed 2026-08-30 08:52:15 +00:00
1 parent a6b559cf54
commit c41925689d
10 files changed
+330 -34

No files matched your search

@@ -1,9 +1,13 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
from contextlib import contextmanager
from types import SimpleNamespace
import pytest
import torch
from vllm.v1.cudagraph_dispatcher import CUDAGraphMode
from vllm.v1.worker.gpu_model_runner import GPUModelRunner
from vllm_omni.worker.gpu_ar_model_runner import GPUARModelRunner
from vllm_omni.worker.gpu_model_runner import (
@@ -107,6 +111,23 @@ class DummyReqState:
pass
def test_model_forward_passes_request_ids_to_decode_metadata(monkeypatch):
received = {}
model = SimpleNamespace(
supports_omni_decode_step_metadata=True,
update_decode_step_metadata=lambda **kwargs: received.update(kwargs),
)
runner = object.__new__(OmniGPUModelRunner)
runner.model = model
runner.input_batch = DummyInputBatch(["request-a", "request-b"])
runner._build_model_kwargs_extra = lambda: {}
monkeypatch.setattr(GPUModelRunner, "_model_forward", lambda *_args, **_kwargs: torch.zeros(1))
OmniGPUModelRunner._model_forward(runner, input_ids=torch.ones(2, dtype=torch.long))
assert received["req_ids"] == ["request-a", "request-b"]
class MiMoAudioForConditionalGeneration(torch.nn.Module):
"""Dummy model whose class name must exactly match the production check."""