mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-14 15:52:49 +08:00
feat: add smollm support (#8050)
This commit is contained in:
parent
12292e4283
commit
501e7d8a8f
@ -1684,6 +1684,21 @@ register_template(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
register_template(
|
||||||
|
name="smollm",
|
||||||
|
format_system=StringFormatter(
|
||||||
|
slots=["<|im_start|>system\n{{content}}<|im_end|>\n"]
|
||||||
|
),
|
||||||
|
format_user=StringFormatter(
|
||||||
|
slots=["<|im_start|>user\n{{content}}<|im_end|>\n"]
|
||||||
|
),
|
||||||
|
format_assistant=StringFormatter(
|
||||||
|
slots=["<|im_start|>assistant\n{{content}}<|im_end|>\n"]
|
||||||
|
),
|
||||||
|
stop_words=["<|im_end|>"],
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
register_template(
|
register_template(
|
||||||
name="solar",
|
name="solar",
|
||||||
format_user=StringFormatter(slots=["### User:\n{{content}}\n\n### Assistant:\n"]),
|
format_user=StringFormatter(slots=["### User:\n{{content}}\n\n### Assistant:\n"]),
|
||||||
|
@ -2719,6 +2719,25 @@ register_model_group(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
register_model_group(
|
||||||
|
models={
|
||||||
|
"SmolLM-135M-Instruct": {
|
||||||
|
DownloadSource.DEFAULT: "HuggingFaceTB/SmolLM-135M-Instruct",
|
||||||
|
DownloadSource.MODELSCOPE: "HuggingFaceTB/SmolLM-135M-Instruct",
|
||||||
|
},
|
||||||
|
"SmolLM-360M-Instruct": {
|
||||||
|
DownloadSource.DEFAULT: "HuggingFaceTB/SmolLM-360M-Instruct",
|
||||||
|
DownloadSource.MODELSCOPE: "HuggingFaceTB/SmolLM-360M-Instruct",
|
||||||
|
},
|
||||||
|
"SmolLM-1.7B-Instruct": {
|
||||||
|
DownloadSource.DEFAULT: "HuggingFaceTB/SmolLM-1.7B-Instruct",
|
||||||
|
DownloadSource.MODELSCOPE: "HuggingFaceTB/SmolLM-1.7B-Instruct",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
template="smollm",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
register_model_group(
|
register_model_group(
|
||||||
models={
|
models={
|
||||||
"SOLAR-10.7B-v1.0": {
|
"SOLAR-10.7B-v1.0": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user