2025-09-11 14:32:51 +08:00
|
|
|
"""
|
2025-10-24 12:16:48 +08:00
|
|
|
vLLM-omni: Multi-modality models inference and serving with
|
|
|
|
|
non-autoregressive structures.
|
2025-09-11 14:32:51 +08:00
|
|
|
|
2025-10-24 12:16:48 +08:00
|
|
|
This package extends vLLM beyond traditional text-based, autoregressive
|
|
|
|
|
generation to support multi-modality models with non-autoregressive
|
|
|
|
|
structures and non-textual outputs.
|
2025-09-11 14:32:51 +08:00
|
|
|
|
|
|
|
|
Architecture:
|
2025-10-24 12:16:48 +08:00
|
|
|
- 🟡 Modified: vLLM components modified for multimodal support
|
|
|
|
|
- 🔴 Added: New components for multimodal and non-autoregressive
|
|
|
|
|
processing
|
2025-09-11 14:32:51 +08:00
|
|
|
"""
|
|
|
|
|
|
2025-11-15 21:45:43 +08:00
|
|
|
try:
|
|
|
|
|
from . import patch # noqa: F401
|
|
|
|
|
except ModuleNotFoundError as exc: # pragma: no cover - optional dependency
|
|
|
|
|
if exc.name != "vllm":
|
|
|
|
|
raise
|
|
|
|
|
# Allow importing vllm_omni without vllm (e.g., documentation builds)
|
|
|
|
|
patch = None # type: ignore
|
2025-10-25 12:09:19 +08:00
|
|
|
from .config import OmniModelConfig
|
2025-11-17 14:44:10 +08:00
|
|
|
from .entrypoints.async_omni_llm import AsyncOmniLLM
|
2025-09-11 14:32:51 +08:00
|
|
|
|
2025-10-24 12:16:48 +08:00
|
|
|
# Main entry points
|
2025-11-28 14:22:11 +08:00
|
|
|
from .entrypoints.omni import Omni
|
2025-10-24 12:16:48 +08:00
|
|
|
|
2025-11-27 17:41:22 +08:00
|
|
|
from .version import __version__, __version_tuple__ # isort:skip
|
2025-11-17 14:44:10 +08:00
|
|
|
|
|
|
|
|
|
2025-09-11 14:32:51 +08:00
|
|
|
__all__ = [
|
2025-11-27 17:41:22 +08:00
|
|
|
"__version__",
|
|
|
|
|
"__version_tuple__",
|
2025-09-11 14:32:51 +08:00
|
|
|
# Main components
|
2025-11-28 14:22:11 +08:00
|
|
|
"Omni",
|
2025-11-17 14:44:10 +08:00
|
|
|
"AsyncOmniLLM",
|
2025-09-25 09:10:54 +08:00
|
|
|
# Configuration
|
2025-10-25 12:09:19 +08:00
|
|
|
"OmniModelConfig",
|
2025-09-11 14:32:51 +08:00
|
|
|
# All other components are available through their respective modules
|
|
|
|
|
# processors.*, schedulers.*, executors.*, etc.
|
2025-10-24 12:16:48 +08:00
|
|
|
]
|