Files
vllm-omni/vllm_omni/__init__.py
T

41 lines
1.3 KiB
Python
Raw Normal View History

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
"""
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-10-24 18:01:02 +08:00
from .entrypoints.omni_llm import OmniLLM
2025-10-24 12:16:48 +08:00
2025-11-17 14:44:10 +08:00
# from .version import __version__, __version_tuple__ # isort:skip
2025-09-11 14:32:51 +08:00
__all__ = [
2025-11-17 14:44:10 +08:00
# "__version__", # TODO: add __version__ back when it is implemented
# "__version_tuple__", # TODO: add __version_tuple__ back when it is implemented
2025-09-11 14:32:51 +08:00
# Main components
"OmniLLM",
2025-11-17 14:44:10 +08:00
"AsyncOmniLLM",
# 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
]