4 files changed
+6
-5
No files matched your search
@@ -15,7 +15,7 @@ Architecture:
|
|||||||
__version__ = "0.1.0"
|
__version__ = "0.1.0"
|
||||||
__author__ = "vLLM-omni Team"
|
__author__ = "vLLM-omni Team"
|
||||||
__email__ = "hsliuustc@gmail.com"
|
__email__ = "hsliuustc@gmail.com"
|
||||||
|
from . import patch
|
||||||
from .config import (
|
from .config import (
|
||||||
DiTCacheConfig,
|
DiTCacheConfig,
|
||||||
DiTConfig,
|
DiTConfig,
|
||||||
@@ -25,7 +25,7 @@ from .config import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Main entry points
|
# Main entry points
|
||||||
from .entrypoints.omni_llm import AsyncOmniLLM, OmniLLM
|
from .entrypoints.omni_llm import OmniLLM
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
# Version info
|
# Version info
|
||||||
@@ -34,7 +34,7 @@ __all__ = [
|
|||||||
"__email__",
|
"__email__",
|
||||||
# Main components
|
# Main components
|
||||||
"OmniLLM",
|
"OmniLLM",
|
||||||
"AsyncOmniLLM",
|
# AsyncOmniLLM is not supported yet
|
||||||
# Configuration
|
# Configuration
|
||||||
"OmniStageConfig",
|
"OmniStageConfig",
|
||||||
"DiTConfig",
|
"DiTConfig",
|
||||||
|
|||||||
@@ -242,7 +242,7 @@ class MultimodalOutputProcessor(VLLMOutputProcessor):
|
|||||||
) -> OutputProcessorOutput:
|
) -> OutputProcessorOutput:
|
||||||
self._reqid_to_mm_type.clear()
|
self._reqid_to_mm_type.clear()
|
||||||
for eco in engine_core_outputs:
|
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:
|
if mm_type:
|
||||||
self._reqid_to_mm_type[eco.request_id] = mm_type
|
self._reqid_to_mm_type[eco.request_id] = mm_type
|
||||||
self._route_and_normalize(eco)
|
self._route_and_normalize(eco)
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ class OmniStageLLM(LLM):
|
|||||||
engine_args=engine_args, usage_context=UsageContext.LLM_CLASS
|
engine_args=engine_args, usage_context=UsageContext.LLM_CLASS
|
||||||
)
|
)
|
||||||
self.llm_engine.output_processor = MultimodalOutputProcessor(
|
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(
|
self.llm_engine.processor = OmniProcessor(
|
||||||
vllm_config=self.llm_engine.vllm_config, tokenizer=self.llm_engine.tokenizer
|
vllm_config=self.llm_engine.vllm_config, tokenizer=self.llm_engine.tokenizer
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
from .registry import OmniModelRegistry
|
||||||
Reference in new issue
Block a user