feat: add smollm support (#8050)

This commit is contained in:
Akshat Sehgal 2025-05-26 04:47:54 -07:00 committed by GitHub
parent c477ae6405
commit e6f45d696b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 34 additions and 0 deletions

View File

@ -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"]),

View File

@ -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": {