[Frontend] Move cli_args.py and dp_supervisor.py out openai folder (#53659)

Signed-off-by: wang.yuqi <yuqi.wang@daocloud.io>
This commit is contained in:
wang.yuqi
2026-08-25 07:02:32 +00:00
committed by GitHub
parent c74dd2d208
commit 735daf8ef6
14 changed files with 42 additions and 33 deletions
+2 -2
View File
@@ -869,7 +869,7 @@ class TestDpDeviceIdSharding:
against its inherited device-control env var."""
import argparse
from vllm.entrypoints.openai.dp_supervisor import _build_device_ids
from vllm.entrypoints.launchers.dp_supervisor import _build_device_ids
args = argparse.Namespace(
tensor_parallel_size=2, pipeline_parallel_size=1, device_ids=None
@@ -881,7 +881,7 @@ class TestDpDeviceIdSharding:
"""User-provided --device-ids are sharded across DP children."""
import argparse
from vllm.entrypoints.openai.dp_supervisor import _build_device_ids
from vllm.entrypoints.launchers.dp_supervisor import _build_device_ids
args = argparse.Namespace(
tensor_parallel_size=2, pipeline_parallel_size=1, device_ids=[4, 5, 6, 7]
@@ -18,7 +18,7 @@ import typing
import pytest
from vllm.config.model import TokenizerMode
from vllm.entrypoints.openai.cli_args import BaseFrontendArgs, make_arg_parser
from vllm.entrypoints.launchers.cli_args import BaseFrontendArgs, make_arg_parser
from vllm.renderers.registry import RENDERER_REGISTRY
from vllm.tokenizers.registry import TokenizerRegistry
from vllm.utils.argparse_utils import FlexibleArgumentParser
@@ -5,12 +5,14 @@ import json
import pytest
from vllm.entrypoints.openai.cli_args import make_arg_parser, validate_parsed_serve_args
from tests.utils import VLLM_PATH
from vllm.entrypoints.launchers.cli_args import (
make_arg_parser,
validate_parsed_serve_args,
)
from vllm.entrypoints.openai.models.protocol import LoRAModulePath
from vllm.utils.argparse_utils import FlexibleArgumentParser
from ...utils import VLLM_PATH
LORA_MODULE = {
"name": "module2",
"path": "/path/to/module2",
@@ -32,8 +32,8 @@ import pytest
import uvicorn
from fastapi import FastAPI, Response
import vllm.entrypoints.openai.dp_supervisor as dp_sup
from vllm.entrypoints.openai.dp_supervisor import (
import vllm.entrypoints.launchers.dp_supervisor as dp_sup
from vllm.entrypoints.launchers.dp_supervisor import (
CHILD_EXIT_GRACE_S,
DPSupervisor,
_build_vllm_dp_server_args,
+1 -1
View File
@@ -18,7 +18,7 @@ from fastapi import FastAPI
from vllm_add_dummy_endpoint_plugin import DummyAdminEndpointPlugin
from vllm.entrypoints.launchers.app import build_app
from vllm.entrypoints.openai.cli_args import make_arg_parser
from vllm.entrypoints.launchers.cli_args import make_arg_parser
from vllm.plugins import load_endpoint_plugins
from vllm.plugins.endpoint_plugins.interface import (
EndpointPlugin,