[Rebase] Rebase to vllm 0.20.0 (#3232)

Signed-off-by: tzhouam <tzhouam@connect.ust.hk>
Signed-off-by: Zhou Taichang <tzhouam@connect.ust.hk>
Signed-off-by: Yuanheng Zhao <jonathan.zhaoyh@gmail.com>
Co-authored-by: Yuanheng Zhao <54058983+yuanheng-zhao@users.noreply.github.com>
This commit is contained in:
Zhou TaichangandYuanheng Zhao authored and GitHub committed 2026-04-30 09:56:59 +12:00
1 parent dd0fa02547
commit 7f2b1e9386
70 files changed
+1191 -273

No files matched your search

@@ -9,11 +9,13 @@ from vllm.inputs import PromptType
from tests.helpers.mark import hardware_test
from tests.helpers.stage_config import get_deploy_config_path
from vllm_omni.config.stage_config import _PIPELINE_REGISTRY
from vllm_omni.entrypoints.async_omni import AsyncOmni
os.environ["VLLM_WORKER_MULTIPROC_METHOD"] = "spawn"
SEED = 42
pipeline = _PIPELINE_REGISTRY["qwen2_5_omni_thinker_only"]
# Single-stage thinker-only deploy, materialized from tests.helpers.stage_config._CI_OVERLAYS.
stage_config = get_deploy_config_path("ci/qwen2_5_omni_thinker_only.yaml")
+14 -6
View File
@@ -1137,13 +1137,20 @@ class TestLaunchDiffusionStage:
"vllm_omni.engine.async_omni_engine.StageDiffusionClient.from_addresses",
return_value=diffusion_client,
)
mock_acquire_locks = mocker.patch(
"vllm_omni.engine.async_omni_engine.acquire_diffusion_device_locks",
return_value=[101],
)
mock_release_locks = mocker.patch("vllm_omni.engine.async_omni_engine.release_device_locks")
result = engine._launch_diffusion_stage(
stage_cfg=stage_cfg,
metadata=metadata,
omni_master_server=omni_master_server,
stage_init_timeout=60,
)
mock_acquire_locks.assert_called_once_with(5, "diffusion-config", 60)
mock_register.assert_called_once_with(
omni_master_address="127.0.0.1",
omni_master_port=25000,
@@ -1158,7 +1165,8 @@ class TestLaunchDiffusionStage:
request_address="tcp://127.0.0.1:25002",
response_address="tcp://127.0.0.1:25003",
)
mock_handshake.assert_called_once_with(proc, "tcp://127.0.0.1:25001")
mock_handshake.assert_called_once_with(proc, "tcp://127.0.0.1:25001", 60)
mock_release_locks.assert_called_once_with([101])
mock_from_addresses.assert_called_once_with(
metadata,
request_address="tcp://127.0.0.1:25002",
@@ -1205,7 +1213,7 @@ class TestCreateRemoteLlmStage:
@contextmanager
def fake_connect_cm(*args, **kwargs):
yield eng_mgr, coordinator, fake_addresses
yield eng_mgr, coordinator, fake_addresses, None
mocker.patch(
"vllm_omni.engine.async_omni_engine.build_engine_args_dict",
@@ -1265,7 +1273,7 @@ class TestCreateRemoteLlmStage:
@contextmanager
def fake_connect_cm(*args, **kwargs):
yield mocker.Mock(), mocker.Mock(), fake_addresses
yield mocker.Mock(), mocker.Mock(), fake_addresses, None
mocker.patch(
"vllm_omni.engine.async_omni_engine.build_engine_args_dict",
@@ -1329,7 +1337,7 @@ class TestCreateRemoteLlmStage:
@contextmanager
def boom(*args, **kwargs):
yield mocker.Mock(), mocker.Mock(), mocker.Mock()
yield mocker.Mock(), mocker.Mock(), mocker.Mock(), None
raise RuntimeError("handshake failed")
mocker.patch(
@@ -1402,7 +1410,7 @@ class TestConnectRemoteEngineCoresCoordinator:
vllm_config=vllm_config,
omni_master_server=omni_master_server,
stage_id=7,
) as (_, yielded_coordinator, yielded_addresses):
) as (_, yielded_coordinator, yielded_addresses, _tensor_queue):
assert yielded_coordinator is None
assert yielded_addresses.coordinator_input == "tcp://coord-in"
assert yielded_addresses.coordinator_output == "tcp://coord-out"
@@ -1439,7 +1447,7 @@ class TestConnectRemoteEngineCoresCoordinator:
vllm_config=vllm_config,
omni_master_server=omni_master_server,
stage_id=7,
) as (_, yielded_coordinator, yielded_addresses):
) as (_, yielded_coordinator, yielded_addresses, _tensor_queue):
assert yielded_coordinator is None
assert yielded_addresses.coordinator_input is None
assert yielded_addresses.coordinator_output is None