2025-09-11 14:32:51 +08:00
|
|
|
"""
|
2025-11-29 04:42:39 -08:00
|
|
|
vLLM-Omni: Multi-modality models inference and serving with
|
2025-10-24 12:16:48 +08:00
|
|
|
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-11-30 04:44:01 +08:00
|
|
|
|
2026-01-22 18:09:55 +08:00
|
|
|
|
2025-10-25 12:09:19 +08:00
|
|
|
from .config import OmniModelConfig
|
2025-11-30 22:26:33 +08:00
|
|
|
from .entrypoints.async_omni import AsyncOmni
|
2025-09-11 14:32:51 +08:00
|
|
|
|
2025-10-24 12:16:48 +08:00
|
|
|
# Main entry points
|
2025-11-30 18:20:44 +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-30 18:20:44 +08:00
|
|
|
"Omni",
|
2025-11-30 22:26:33 +08:00
|
|
|
"AsyncOmni",
|
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
|
|
|
]
|