Fix template name of MiniCPM-V (#6620)

* fix template name

* tiny fix

Former-commit-id: 94dea52cef709a7e6f1cdc0b78e83e0422bd65d3
This commit is contained in:
Zhangchi Feng
2025-01-13 16:46:48 +08:00
committed by GitHub
parent 7f58bf984f
commit 73c1c15b62
5 changed files with 7 additions and 7 deletions

View File

@@ -567,12 +567,12 @@ _register_template(
_register_template(
name="cpm_o",
name="cpm_v",
format_user=StringFormatter(slots=["<|im_start|>user\n{{content}}<|im_end|>\n<|im_start|>assistant\n"]),
format_assistant=StringFormatter(slots=["{{content}}<|im_end|>\n"]),
format_system=StringFormatter(slots=["<|im_start|>system\n{{content}}<|im_end|>\n"]),
stop_words=["<|im_end|>"],
mm_plugin=get_mm_plugin(name="cpm_o", image_token="<image>", video_token="<video>"),
mm_plugin=get_mm_plugin(name="cpm_v", image_token="<image>", video_token="<video>"),
)