Signed-off-by: HonestDeng <2958906959@qq.com> Signed-off-by: iwzbi <iwzbi@zju.edu.cn> Signed-off-by: iwzbi <wzbi@zju.edu.cn> Signed-off-by: Divyansh Singhvi <divyanshsinghvi@gmail.com> Signed-off-by: gcanlin <canlinguosdu@gmail.com> Signed-off-by: yinpeiqi <yinpeiqi809@gmail.com> Signed-off-by: Hongsheng Liu <liuhongsheng4@huawei.com> Signed-off-by: 汪志鹏 <wangzhipeng628@gmail.com> Co-authored-by: catcat <108673086+iwzbi@users.noreply.github.com> Co-authored-by: iwzbi <iwzbi@zju.edu.cn> Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com> Co-authored-by: dsinghvi <divyanshsinghvi@gmail.com> Co-authored-by: Canlin Guo <canlinguosdu@gmail.com> Co-authored-by: Peiqi Yin <60515999+yinpeiqi@users.noreply.github.com> Co-authored-by: 汪志鹏 <wangzhipeng628@gmail.com>
46 lines
1.3 KiB
Python
46 lines
1.3 KiB
Python
"""
|
|
vLLM-Omni: Multi-modality models inference and serving with
|
|
non-autoregressive structures.
|
|
|
|
This package extends vLLM beyond traditional text-based, autoregressive
|
|
generation to support multi-modality models with non-autoregressive
|
|
structures and non-textual outputs.
|
|
|
|
Architecture:
|
|
- 🟡 Modified: vLLM components modified for multimodal support
|
|
- 🔴 Added: New components for multimodal and non-autoregressive
|
|
processing
|
|
"""
|
|
|
|
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
|
|
|
|
# Register custom configs (AutoConfig, AutoTokenizer) as early as possible.
|
|
from vllm_omni.transformers_utils import configs as _configs # noqa: F401, E402
|
|
|
|
from .config import OmniModelConfig
|
|
from .entrypoints.async_omni import AsyncOmni
|
|
|
|
# Main entry points
|
|
from .entrypoints.omni import Omni
|
|
|
|
from .version import __version__, __version_tuple__ # isort:skip
|
|
|
|
|
|
__all__ = [
|
|
"__version__",
|
|
"__version_tuple__",
|
|
# Main components
|
|
"Omni",
|
|
"AsyncOmni",
|
|
# Configuration
|
|
"OmniModelConfig",
|
|
# All other components are available through their respective modules
|
|
# processors.*, schedulers.*, executors.*, etc.
|
|
]
|