mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-04 12:42:51 +08:00
Merge pull request #3161 from hiyouga/feature/add-mediatek-model
support Breeze-7B Former-commit-id: 4c6c4a0d8829bc098c202e4c3df36f702d579537
This commit is contained in:
commit
8682d033eb
@ -773,3 +773,11 @@ _register_template(
|
|||||||
format_user=StringFormatter(slots=["<human>:{{content}}\n<bot>:"]),
|
format_user=StringFormatter(slots=["<human>:{{content}}\n<bot>:"]),
|
||||||
format_separator=EmptyFormatter(slots=["\n"]),
|
format_separator=EmptyFormatter(slots=["\n"]),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
_register_template(
|
||||||
|
name="breeze",
|
||||||
|
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. ",
|
||||||
|
efficient_eos=True,
|
||||||
|
)
|
||||||
|
@ -981,3 +981,17 @@ register_model_group(
|
|||||||
},
|
},
|
||||||
template="atom",
|
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="breeze",
|
||||||
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user