alt.freeweights.smollm / SmolLM-1.7B-Instruct
From: HuggingFaceTB <huggingface.co/HuggingFaceTB>Newsgroups: alt.freeweights.smollmSubject:

SmolLM-1.7B-Instruct

Date: 2026-11-14Commit: e238427Signed: 2DC28CC7B26A283B ✓

Text generation model with 1.7B parameters. Onnx and safetensors weights, 22.7 GB in all. Published by HuggingFaceTB under Apache-2.0.

1.7B params22.7GBSmolLM-1.7B-Instructonnx safetensorspermissive
FactsParams1.7BSize22.7 GBFormatsonnx, safetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get HuggingFaceTB/SmolLM-1.7B-Instruct
# manifest sha256 5fdfb25ef133… · 22.7 GB · 20 files
$ fw verify ./SmolLM-1.7B-Instruct HuggingFaceTB/SmolLM-1.7B-Instruct
From sourceHosted (signed)HuggingFaceTB/SmolLM-1.7B-InstructLast check: 2026-11-14 21:11 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Quantized of SmolLM-1.7B.

Works with

Overview

Size
22.7 GB
Weights
3.42 GB (safetensors)
Parameters
1.7B
Formats
onnx, safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
20, each with a sha256
Publisher
HuggingFaceTB
Added
2026-11-14
Section
alt.freeweights.smollm
Lineage

Original release from the publisher.

Base model: HuggingFaceTB/SmolLM-1.7B

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-14 21:11 UTCpassed

Model card

From the publisher at commit e238427. Shown as plain text with links; images open at the publisher.

SmolLM-1.7B-Instruct#

Image: SmolLM

Model Summary#

SmolLM is a series of small language models available in three sizes: 135M, 360M, and 1.7B parameters.

These models are pre-trained on SmolLM-Corpus, a curated collection of high-quality educational and synthetic data designed for training LLMs. For further details, we refer to our blogpost.

To build SmolLM-Instruct, we finetuned the base models on publicly available datasets.

Changelog#

|Release|Description|

|-|-|

|v0.1| Initial release of SmolLM-Instruct. We finetune on the permissive subset of the WebInstructSub dataset, combined with StarCoder2-Self-OSS-Instruct. Then, we perform DPO (Direct Preference Optimization) for one epoch on HelpSteer for the 135M and 1.7B models, and argilla/dpo-mix-7k for the 360M model.|

|v0.2| We changed the finetuning mix to datasets more suitable for smol models. We train on a new dataset of 2k simple everyday conversations we generated by llama3.1-70B everyday-conversations-llama3.1-2k, Magpie-Pro-300K-Filtered, StarCoder2-Self-OSS-Instruct, and a small subset of OpenHermes-2.5|

v0.2 models are better at staying on topic and responding appropriately to standard prompts, such as greetings and questions about their role as AI assistants. SmolLM-360M-Instruct (v0.2) has a 63.3% win rate over SmolLM-360M-Instruct (v0.1) on AlpacaEval. You can find the details here.

You can load v0.1 checkpoint by specifying revision="v0.1" in the transformers code:

model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/SmolLM-1.7B-Instruct", revision="v0.1")

Usage#

Local Applications#

⚡ For local applications, you can find optimized implementations of the model in MLC, GGUF and Transformers.js formats, in addition to fast in-browser demos in this collection: https://huggingface.co/collections/HuggingFaceTB/local-smollms-66c0f3b2a15b4eed7fb198d0

We noticed that 4bit quantization degrades the quality of the 135M and 360M, so we use q016 for MLC and ONNX/Transformers.js checkpoints for the WebGPU demos. We also suggest using temperature 0.2 and top-p 0.9.

Transformers#
pip install transformers
# pip install transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
checkpoint = "HuggingFaceTB/SmolLM-1.7B-Instruct"

device = "cuda" # for GPU usage or "cpu" for CPU usage
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
# for multiple GPUs install accelerate and do `model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map="auto")`
model = AutoModelForCausalLM.from_pretrained(checkpoint).to(device)

messages = [{"role": "user", "content": "What is the capital of France."}]
input_text=tokenizer.apply_chat_template(messages, tokenize=False)
print(input_text)
inputs = tokenizer.encode(input_text, return_tensors="pt").to(device)
outputs = model.generate(inputs, max_new_tokens=50, temperature=0.2, top_p=0.9, do_sample=True)
print(tokenizer.decode(outputs[0]))
Chat in TRL#

You can also use the TRL CLI to chat with the model from the terminal:

pip install trl
trl chat --model_name_or_path HuggingFaceTB/SmolLM-1.7B-Instruct --device cpu

Limitations#

Additionally, the generated content may not always be factually accurate, logically consistent, or free from biases present in the training data, we invite users to leverage them as assistive tools rather than definitive sources of information. We find that they can handle general knowledge questions, creative writing and basic Python programming. But they are English only and may have difficulty with arithmetics, editing tasks and complex reasoning. For more details about the models' capabilities, please refer to our blog post.

Training parameters#

We train the models using the alignment-handbook with the datasets mentioned in the changelog, using these parameters v0.2 (most of them are from Zephyr Gemma recipe):

  • 1 epoch
  • lr 1e-3
  • cosine schedule
  • warmup ratio 0.1
  • global batch size 262k tokens

You can find the training recipe here: https://github.com/huggingface/alignment-handbook/tree/smollm/recipes/smollm

Citation#

@misc{allal2024SmolLM,
      title={SmolLM - blazingly fast and remarkably powerful}, 
      author={Loubna Ben Allal and Anton Lozhkov and Elie Bakouch and Leandro von Werra and Thomas Wolf},
      year={2024},
}

Files

20 files · 22.7 GBWeights 3.42 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 20 files with their sha256
FileSizesha256
.gitattributes1.64 KB11766e5171641f6c68b9f14099fdb4e7b3d610f0a69451893e356c8334812257
README.md5.63 KBdc6c896a9f8260692671034f3ded8d89f342b7415f7acf31e6f46a683dc972aa
config.json738 B1efbcd16ed33838faecf09009a7b5cf6685d02ec0225fd25d1007229b8b2a39d
generation_config.json186 B4170e608b2f3a437a8620bcb815ca8e0fcf932812c4681a2e0b199a377cd804e
merges.txt466 KB0b54e8aa4e53d5383e2e4bc635a56b43f9647f7b13832d5d9ecd8f82dac4f510
model.safetensors3.42 GB7108f45b86e4b0c9b0c8f611264b381522e093b366ec0fdf83c0e07149b0c398
onnx/model.onnx562 KB5e2b596dd6bd22b4337eaf3bf4161313306dfc61d12227dab61a28a1afecd95e
onnx/model.onnx_data6.85 GB43c2ff1f9af866f2fc88d29d9ef6c283c2c3908908bfc45e8b7acb948a4b41bc
onnx/model_bnb4.onnx1.31 GBa632c41a9cd1bcd7116a75ce4c77c290b1e65532f001107d873c4759462a4d6b
onnx/model_fp16.onnx579 KBa38d5ebf9f8d3556de0aa6b5c7fde73bbd75b89b603f03eadc5903fb47dac346
onnx/model_fp16.onnx_data3.42 GBbfb0a58ad2b44ced92f2cb3b5c3c6554b007d210d4fd45b090d0e78156aeb292
onnx/model_int8.onnx1.71 GBc7bcbc362755972f15beb94e1d8a9e4d83e8ccf08e669d40c668061e4d712ac0
onnx/model_q4.onnx1.41 GBe80eb151f4c5c50e842bbf338a774436d0f4c3e3a81176d4bfc6760853d8a7a6
onnx/model_q4f16.onnx1.11 GB54ca7d257e47e478ecb9f1306399aa111305556eabac5485c470294df3273cf9
onnx/model_quantized.onnx1.71 GBc7bcbc362755972f15beb94e1d8a9e4d83e8ccf08e669d40c668061e4d712ac0
onnx/model_uint8.onnx1.71 GBb28a17162551f5165479e10819627426cdb82d3e9dfff339a2d5f651d6a6429c
special_tokens_map.json655 B2b7379f3ae813529281a5c602bc5a11c1d4e0a99107aaa597fe936c1e813ca52
tokenizer.json2.10 MB9ca9acddb6525a194ec8ac7a87f24fbba7232a9a15ffa1af0c1224fcd888e47c
tokenizer_config.json3.59 KB75668bda11eb0d5ece137b4eb3fb2ad679f847fd19846b726369a26d92f9f28e
vocab.json801 KB82b84012e3add4d01d12ba14442026e49b8cbbaead1f79ecf3d919784f82dc79
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
e2384271b5 pinned now manifest updated, same commit2026-11-14 21:11 UTC20 files · 22.7 GB
e2384271b52026-11-14 21:11 UTC20 files · 22.7 GB

Use it

$ fw get HuggingFaceTB/SmolLM-1.7B-Instruct
# manifest sha256 5fdfb25ef133… · 22.7 GB · 20 files
$ fw verify ./SmolLM-1.7B-Instruct HuggingFaceTB/SmolLM-1.7B-Instruct
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/HuggingFaceTB/SmolLM-1.7B-Instruct.json --dir ./SmolLM-1.7B-Instruct $ python3 fw.py verify ./SmolLM-1.7B-Instruct ./HuggingFaceTB__SmolLM-1.7B-Instruct.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download HuggingFaceTB/SmolLM-1.7B-Instruct --revision e2384271b5d41e07894985d994ff4c24e8e2d106 --local-dir ./SmolLM-1.7B-Instruct
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("HuggingFaceTB/SmolLM-1.7B-Instruct", revision="e2384271b5d41e07894985d994ff4c24e8e2d106") model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/SmolLM-1.7B-Instruct", revision="e2384271b5d41e07894985d994ff4c24e8e2d106", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve HuggingFaceTB/SmolLM-1.7B-Instruct --revision e2384271b5d41e07894985d994ff4c24e8e2d106

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-14
Text in
README.md
Text sha256
dc6c896a9f8260692671034f3ded8d89f342b7415f7acf31e6f46a683dc972aa
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: HuggingFaceTB <huggingface.co/HuggingFaceTB>Newsgroups: alt.freeweights.smollmSubject: SmolLM-1.7B-InstructDate: 2026-11-14Commit: e238427Signed: 2DC28CC7B26A283B ✓
Upstream
HuggingFaceTB/SmolLM-1.7B-Instruct
Pinned commit
e2384271b5d41e07894985d994ff4c24e8e2d106
Manifest
SmolLM-1.7B-Instruct.json · .minisig
Manifest sha256
5fdfb25ef133304b7e524adaab4859bc182a287480a4731cc9ca5782f426d543
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:11 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/HuggingFaceTB/SmolLM-1.7B-Instruct.json $ curl -O https://freeweights.allternit.com/manifests/HuggingFaceTB/SmolLM-1.7B-Instruct.json.minisig $ minisign -Vm SmolLM-1.7B-Instruct.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

HuggingFaceTB/SmolLM-1.7B · this model is a quantization of it

1 model in the catalog name this one as their parent.

Fine-tunes
1
Fine-tunes 1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download HuggingFaceTB/SmolLM-1.7B-Instruct
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. SmolLM-1.7B-Instruct.json. Provenance. Takedown history: none.
From: HuggingFaceTB <huggingface.co/HuggingFaceTB>Subject: 135M-lc-100k-rope-12B
From: nisten <huggingface.co/nisten>Subject: Biggie-SmoLlm-0.4B
From: onnx-community <huggingface.co/onnx-community>Subject: Biggie-SmoLlm-0.4B-ONNX
From: unsloth <huggingface.co/unsloth>Subject: SmolLM-1.7B-bnb-4bit
From: unsloth <huggingface.co/unsloth>Subject: SmolLM-1.7B-Instruct
From: unsloth <huggingface.co/unsloth>Subject: SmolLM-135M-bnb-4bit