mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-14 23:58:11 +08:00
增加了对minicpm3.0的适配'
Former-commit-id: 4ad3a761af2452ef3f6c61190b7e47c9ea5227b9
This commit is contained in:
parent
2c1eef34cb
commit
c692339020
@ -558,7 +558,13 @@ _register_template(
|
|||||||
format_user=StringFormatter(slots=["<用户>{{content}}<AI>"]),
|
format_user=StringFormatter(slots=["<用户>{{content}}<AI>"]),
|
||||||
format_prefix=EmptyFormatter(slots=[{"bos_token"}]),
|
format_prefix=EmptyFormatter(slots=[{"bos_token"}]),
|
||||||
)
|
)
|
||||||
|
_register_template(
|
||||||
|
name="cpm3",
|
||||||
|
format_user=StringFormatter(slots=["<|im_start|>user\n{{content}}<|im_end|>\n<|im_start|>assistant\n"]),
|
||||||
|
format_prefix=EmptyFormatter(slots=[{"bos_token"}]),
|
||||||
|
format_system=StringFormatter(slots=["<|im_start|>system\n{{content}}<|im_end|>\n"]),
|
||||||
|
stop_words=["<|im_end|>"],
|
||||||
|
)
|
||||||
|
|
||||||
_register_template(
|
_register_template(
|
||||||
name="dbrx",
|
name="dbrx",
|
||||||
|
@ -806,6 +806,15 @@ register_model_group(
|
|||||||
template="cpm",
|
template="cpm",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
register_model_group(
|
||||||
|
models={
|
||||||
|
"MiniCPM3-4B": {
|
||||||
|
DownloadSource.DEFAULT: "openbmb/MiniCPM3-4B",
|
||||||
|
DownloadSource.MODELSCOPE: "OpenBMB/MiniCPM3-4B",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
template="cpm3",
|
||||||
|
)
|
||||||
|
|
||||||
register_model_group(
|
register_model_group(
|
||||||
models={
|
models={
|
||||||
|
Loading…
x
Reference in New Issue
Block a user