[Feat] Phase 1 foundation types for multimodal output decoupling (#1816)

Signed-off-by: Megha Agarwal <agarwalmegha1308@gmail.com>
Signed-off-by: Megha Agarwal <agarwalmegha@microsoft.com>
Co-authored-by: Zhou Taichang <tzhouam@connect.ust.hk>
This commit is contained in:
Megha AgarwalandZhou Taichang authored and GitHub committed 2026-03-23 22:33:01 +08:00
1 parent 77d773ad47
commit 9eeac248f2
4 files changed
+346

No files matched your search

+6
View File
@@ -7,6 +7,7 @@ from vllm.engine.arg_utils import EngineArgs
from vllm.logger import init_logger
from vllm_omni.config import OmniModelConfig
from vllm_omni.engine.output_modality import OutputModality
from vllm_omni.plugins import load_omni_general_plugins
logger = init_logger(__name__)
@@ -143,3 +144,8 @@ class OmniEngineArgs(EngineArgs):
task_type=self.task_type,
)
return omni_config
@property
def output_modality(self) -> OutputModality:
"""Parse engine_output_type into a type-safe OutputModality flag."""
return OutputModality.from_string(self.engine_output_type)