[Model]Support MiniCPM-o 4.5 (#3642)

Signed-off-by: tc-mb <tianchi_cai@icloud.com>
Co-authored-by: GKangaroo <1095103651@qq.com>
Co-authored-by: GKangaroo <gqx24@mails.tsinghua.edu.cn>
Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
This commit is contained in:
authored and GitHub committed 2026-06-01 22:12:24 +08:00
1 parent 29343540f7
commit 2b7249fbb3
22 files changed
+6840 -6

No files matched your search

+6 -3
View File
@@ -78,10 +78,13 @@ def register_omni_models_to_vllm():
_register_omni_hf_configs()
supported_archs = ModelRegistry.get_supported_archs()
# Always register every arch declared in _OMNI_MODELS — these are the
# archs vllm-omni explicitly owns, so we want our implementation to
# win even if a future vllm release ships a same-named built-in.
# vllm's ModelRegistry.register_model already emits a warning and
# overrides on collision; we let it handle that.
for arch, (mod_folder, mod_relname, cls_name) in _OMNI_MODELS.items():
if arch not in supported_archs:
ModelRegistry.register_model(arch, f"vllm_omni.model_executor.models.{mod_folder}.{mod_relname}:{cls_name}")
ModelRegistry.register_model(arch, f"vllm_omni.model_executor.models.{mod_folder}.{mod_relname}:{cls_name}")
@dataclass