[Edge][WP6] Slim the AR/TTS import path and add an edge dependency set
* diffusers is no longer imported by vllm_omni.diffusion.data (annotation only); vllm_omni.diffusion.io_support (diffusion registry + distributed state) is imported lazily by config_factory and async_omni_engine, so constructing a Qwen3-TTS pipeline config / AsyncOmni no longer loads diffusers, x_transformers or whisper (guarded by tests/config/test_import_guard.py). * requirements/common.txt = core.txt (AR/speech runtime) + media.txt (diffusion/video/extra audio); VLLM_OMNI_EDGE_BUILD=1 makes setup.py use requirements/<device>-edge.txt (core only); `edge` extra adds websockets and sounddevice for on-device clients. Measured on this host (CUDA venv): `import vllm` 7.0-7.9 s, `import vllm_omni` adds ~20 s of which ~17 s is transformers' own import (transformers.utils.import_utils) pulled in by vllm_omni.patch / vllm_omni.version; that floor is not vLLM-Omni's and is unchanged. Guard test: no diffusion module loaded on the TTS path. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
49a839ecf9
commit
8e912db6c8
11 files changed
+98
-45
No files matched your search
+2
-40
@@ -1,41 +1,3 @@
|
||||
# Common dependencies for all platforms
|
||||
# transformers: required unified multimodal model classes are unavailable
|
||||
# before 5.10.1; 5.10.0 is yanked, and 5.15 has a known construction
|
||||
# regression. transformers 5.9 also changed
|
||||
# _adjust_missing_and_unexpected_keys from
|
||||
# list+list to set|set, breaking models that declare
|
||||
# _keys_to_ignore_on_load_unexpected as a list (e.g. OpenMOSS-Team/MOSS-TTS-Nano)
|
||||
# with "TypeError: unsupported operand type(s) for |: 'list' and 'set'".
|
||||
# That breakage is now handled in code instead of by pinning:
|
||||
# MossTTSNanoForGeneration wraps weight loading in
|
||||
# transformers_keys_to_ignore_compat (vllm_omni/model_executor/models/utils.py).
|
||||
transformers >= 5.10.1, < 5.15
|
||||
av>=14.0.0
|
||||
omegaconf>=2.3.0
|
||||
diffusers==0.40.0
|
||||
# Hub kernels, including LTX-2.5 NATTEN. Keep this pin in sync with the
|
||||
# supported transformers range above.
|
||||
kernels==0.15.2
|
||||
safetensors>=0.8.0
|
||||
accelerate==1.12.0
|
||||
soundfile>=0.13.1
|
||||
cache-dit==1.5.0
|
||||
tqdm>=4.66.0
|
||||
torchsde>=0.2.6
|
||||
openai-whisper>=20250625
|
||||
imageio[ffmpeg]>=2.37.2
|
||||
x-transformers>=2.12.2
|
||||
einops>=0.8.1
|
||||
prettytable>=3.8.0
|
||||
aenum==3.1.16
|
||||
pyzmq>=25.0.0
|
||||
janus>=1.0.0
|
||||
msgpack>=1.0.0
|
||||
pydantic>=2.1.0
|
||||
pydantic-settings>=2.0.0
|
||||
# Required for GGUF-quantized diffusion model loading (gguf_adapters). The CI
|
||||
# base image does not ship it, so declare it explicitly. The loader also guards
|
||||
# this import so a missing gguf no longer breaks all diffusion model loading.
|
||||
gguf>=0.10.0
|
||||
# Required for running the Cosmos3 model with guardrails enabled (default behavior).
|
||||
cosmos-guardrail>=0.3.1
|
||||
# -r core.txt
|
||||
-r media.txt
|
||||
@@ -0,0 +1,17 @@
|
||||
# Core runtime deps for AR / generation (TTS, speech) pipelines. Media /
|
||||
# diffusion / video deps live in media.txt; common.txt pulls both.
|
||||
transformers >= 5.10.1, < 5.15
|
||||
av>=14.0.0
|
||||
omegaconf>=2.3.0
|
||||
safetensors>=0.8.0
|
||||
accelerate==1.12.0
|
||||
soundfile>=0.13.1
|
||||
tqdm>=4.66.0
|
||||
einops>=0.8.1
|
||||
prettytable>=3.8.0
|
||||
aenum==3.1.16
|
||||
pyzmq>=25.0.0
|
||||
janus>=1.0.0
|
||||
msgpack>=1.0.0
|
||||
pydantic>=2.1.0
|
||||
pydantic-settings>=2.0.0
|
||||
@@ -0,0 +1,4 @@
|
||||
# AR-only (TTS/speech) CPU build: VLLM_OMNI_EDGE_BUILD=1 VLLM_TARGET_DEVICE=cpu pip install -e .
|
||||
-r core.txt
|
||||
psutil
|
||||
intel-openmp; platform_machine == "x86_64"
|
||||
@@ -0,0 +1,2 @@
|
||||
# AR-only (TTS/speech) CUDA build: VLLM_OMNI_EDGE_BUILD=1 pip install -e .
|
||||
-r core.txt
|
||||
@@ -0,0 +1,10 @@
|
||||
# Diffusion / image / video / extra-audio deps (not needed by AR-only edge builds).
|
||||
diffusers==0.40.0
|
||||
kernels==0.15.2
|
||||
cache-dit==1.5.0
|
||||
torchsde>=0.2.6
|
||||
openai-whisper>=20250625
|
||||
imageio[ffmpeg]>=2.37.2
|
||||
x-transformers>=2.12.2
|
||||
gguf>=0.10.0
|
||||
cosmos-guardrail>=0.3.1
|
||||
Reference in new issue
Block a user