Support new features of MiniCPM-V (#6626)

* fix template name

* tiny fix

* support minicpm-o-2.6

Former-commit-id: 53034a61c7654358f46916cbc370910fb2aeff3b
This commit is contained in:
Zhangchi Feng
2025-01-14 00:26:19 +08:00
committed by GitHub
parent 2a05941b14
commit ae32c148d1
8 changed files with 189 additions and 168 deletions

View File

@@ -1163,6 +1163,17 @@ register_model_group(
)
register_model_group(
models={
"MiniCPM-o-2_6-Chat": {
DownloadSource.DEFAULT: "openbmb/MiniCPM-o-2_6",
DownloadSource.MODELSCOPE: "OpenBMB/MiniCPM-o-2_6",
},
},
template="minicpm_v",
)
register_model_group(
models={
"MiniCPM-V-2_6-Chat": {
@@ -1170,7 +1181,7 @@ register_model_group(
DownloadSource.MODELSCOPE: "OpenBMB/MiniCPM-V-2_6",
},
},
template="cpm_v",
template="minicpm_v",
)