[Entrypoints] Support Online Serving for Diffusion-only Models (#259)

Signed-off-by: Chenguang ZHENG <645327136@qq.com>
Signed-off-by: yinpe <11810305@mail.sustech.edu.cn>
Co-authored-by: yinpe <11810305@mail.sustech.edu.cn>
This commit is contained in:
Chenguang Zhengandyinpe authored and GitHub committed 2025-12-17 17:40:45 +08:00
1 parent 8722c6374c
commit acf66ee2cc
19 files changed
+2506 -20

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
"""
OpenAI-compatible API entrypoints for vLLM-Omni.
Provides:
- omni_run_server: Main server entry point (auto-detects model type)
- omni_run_diffusion_server: Server for diffusion models
- OmniOpenAIServingChat: Unified chat completion handler for both LLM and diffusion models
"""
from vllm_omni.entrypoints.openai.api_server import (
build_async_diffusion,
build_async_omni,
omni_diffusion_init_app_state,
omni_init_app_state,
omni_run_diffusion_server,
omni_run_server,
)
from vllm_omni.entrypoints.openai.serving_chat import OmniOpenAIServingChat
__all__ = [
# Server functions
"omni_run_server",
"omni_run_diffusion_server",
"build_async_omni",
"build_async_diffusion",
"omni_init_app_state",
"omni_diffusion_init_app_state",
# Serving classes
"OmniOpenAIServingChat",
]