mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-01 11:12:50 +08:00
feat: add smollm support (#8050)
This commit is contained in:
parent
c477ae6405
commit
e6f45d696b
@ -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(
|
||||
name="solar",
|
||||
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(
|
||||
models={
|
||||
"SOLAR-10.7B-v1.0": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user