[MR V2] Migrate to Model Runner V2
Squashed migration rebased onto current main. Collapses the 46-commit dev/migrate-MR-v2 history (10 merge commits + superseded pre-rebase work) into a single commit, so the diff reflects only the genuine MR-V2 feature (worker_v2/ runners + model_states, omni schedulers, stage engine pipeline, pooling_output serialization bridge). Content already merged to main separately (step_audio2, tts_adapters, npu/_310p, etc.) drops out. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
cead615288
commit
9678ae58cf
74 files changed
+8244
-95
No files matched your search
@@ -7,6 +7,7 @@ from collections.abc import Sequence
|
||||
from typing import Any, Literal
|
||||
|
||||
import huggingface_hub
|
||||
from vllm import envs
|
||||
from vllm.logger import init_logger
|
||||
from vllm.v1.engine.exceptions import EngineDeadError, EngineGenerateError
|
||||
|
||||
@@ -29,6 +30,10 @@ from vllm_omni.model_executor.model_loader.weight_utils import download_weights_
|
||||
from vllm_omni.outputs import OmniRequestOutput
|
||||
from vllm_omni.utils.tracking_parser import TrackingNamespace
|
||||
|
||||
_omni_use_v2 = os.environ.get("VLLM_OMNI_USE_V2_RUNNER", "0")
|
||||
os.environ.setdefault("VLLM_USE_V2_MODEL_RUNNER", _omni_use_v2)
|
||||
envs.VLLM_USE_V2_MODEL_RUNNER = _omni_use_v2 == "1"
|
||||
|
||||
logger = init_logger(__name__)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user