This commit is contained in:
parent
a88fe8c1af
commit
2565a32bd9
|
@ -773,3 +773,12 @@ _register_template(
|
|||
format_user=StringFormatter(slots=["<human>:{{content}}\n<bot>:"]),
|
||||
format_separator=EmptyFormatter(slots=["\n"]),
|
||||
)
|
||||
|
||||
_register_template(
|
||||
name="mediatek",
|
||||
format_user=StringFormatter(slots=["[INST] {{content}} [/INST] "]),
|
||||
format_system=StringFormatter(slots=[{"bos_token"}, "{{content}}"]),
|
||||
default_system="You are a helpful AI assistant built by MediaTek Research. The user you are helping speaks Traditional Chinese and comes from Taiwan. ",
|
||||
force_system=True,
|
||||
efficient_eos=True,
|
||||
)
|
|
@ -969,3 +969,17 @@ register_model_group(
|
|||
},
|
||||
template="atom",
|
||||
)
|
||||
|
||||
register_model_group(
|
||||
models={
|
||||
"Breeze-7B": {
|
||||
DownloadSource.DEFAULT: "MediaTek-Research/Breeze-7B-Base-v1_0",
|
||||
DownloadSource.MODELSCOPE: "MediaTek-Research/Breeze-7B-Base-v1_0",
|
||||
},
|
||||
"Breeze-7B-Chat": {
|
||||
DownloadSource.DEFAULT: "MediaTek-Research/Breeze-7B-Instruct-v1_0",
|
||||
DownloadSource.MODELSCOPE: "MediaTek-Research/Breeze-7B-Instruct-v1_0",
|
||||
}
|
||||
},
|
||||
template="mediatek",
|
||||
)
|
Loading…
Reference in New Issue