Merge pull request #35 from tzhouam/end2end_fixup

End2end fixup
This commit is contained in:
Hongsheng Liu authored and GitHub committed 2025-10-25 17:04:42 +08:00
commit 6248bbf646
4 files changed
+6 -5

No files matched your search

+3 -3
View File
@@ -15,7 +15,7 @@ Architecture:
__version__ = "0.1.0"
__author__ = "vLLM-omni Team"
__email__ = "hsliuustc@gmail.com"
from . import patch
from .config import (
DiTCacheConfig,
DiTConfig,
@@ -25,7 +25,7 @@ from .config import (
)
# Main entry points
from .entrypoints.omni_llm import AsyncOmniLLM, OmniLLM
from .entrypoints.omni_llm import OmniLLM
__all__ = [
# Version info
@@ -34,7 +34,7 @@ __all__ = [
"__email__",
# Main components
"OmniLLM",
"AsyncOmniLLM",
# AsyncOmniLLM is not supported yet
# Configuration
"OmniStageConfig",
"DiTConfig",
+1 -1
View File
@@ -242,7 +242,7 @@ class MultimodalOutputProcessor(VLLMOutputProcessor):
) -> OutputProcessorOutput:
self._reqid_to_mm_type.clear()
for eco in engine_core_outputs:
mm_type = (getattr(eco, "output_type", None) or "").lower()
mm_type = (self.engine_core_output_type or "").lower()
if mm_type:
self._reqid_to_mm_type[eco.request_id] = mm_type
self._route_and_normalize(eco)
+1 -1
View File
@@ -163,7 +163,7 @@ class OmniStageLLM(LLM):
engine_args=engine_args, usage_context=UsageContext.LLM_CLASS
)
self.llm_engine.output_processor = MultimodalOutputProcessor(
tokenizer=self.llm_engine.tokenizer, log_stats=self.llm_engine.log_stats
tokenizer=self.llm_engine.tokenizer, log_stats=self.llm_engine.log_stats, engine_core_output_type=engine_args.engine_output_type
)
self.llm_engine.processor = OmniProcessor(
vllm_config=self.llm_engine.vllm_config, tokenizer=self.llm_engine.tokenizer
@@ -0,0 +1 @@
from .registry import OmniModelRegistry