[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:
1 parent
77d773ad47
commit
9eeac248f2
4 files changed
+346
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user