alt.freeweights.smollm / smollm-360M-instruct-add-basics
From: HuggingFaceTB <huggingface.co/HuggingFaceTB>Newsgroups: alt.freeweights.smollmSubject:

smollm-360M-instruct-add-basics

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

Text generation model with 362M parameters. Onnx and safetensors weights, 5.02 GB in all. Published by HuggingFaceTB under Apache-2.0.

362M params5.02GBsmollm-360M-instruct-add-basicsonnx safetensorspermissive
FactsParams362MSize5.02 GBFormatsonnx, safetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get HuggingFaceTB/smollm-360M-instruct-add-basics
# manifest sha256 47d2f94308fa… · 5.02 GB · 26 files
$ fw verify ./smollm-360M-instruct-add-basics HuggingFaceTB/smollm-360M-instruct-add-basics
From sourceHosted (signed)HuggingFaceTB/smollm-360M-instruct-add-basicsLast 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-360M.

Works with

Overview

Size
5.02 GB
Weights
724 MB (safetensors)
Parameters
362M
Formats
onnx, safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
26, each with a sha256
Publisher
HuggingFaceTB
Added
2026-11-14
Section
alt.freeweights.smollm
Lineage

Original release from the publisher.

Base model: HuggingFaceTB/SmolLM-360M

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 ce9dcde. Shown as plain text with links; images open at the publisher.

SmolLM-360M-Instruct#

Image: SmolLM

Model Summary#

Chat with the model at: https://huggingface.co/spaces/HuggingFaceTB/instant-smol

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

These models are 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 finetune 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-Filtere, self-oss-instruct-sc2-exec-filter-50k, and a small subset of OpenHermes-2.5|

We've noticed that the 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. Additionally, 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.

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-360M-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-360M-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 alignement-handbook with the datasets mentioned in the changelog, using these parameters for v0.2:

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

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

26 files · 5.02 GBWeights 724 MB (safetensors). Sizes and sha256 from the signed manifest.
Show all 26 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md5.14 KB3d416f1a8d9ecf289e5a8661f509ded1cec554f7f840d07f2280895952ce38eb
all_results.json417 B769327e7ea33ed3104c05a128a1141c0e5fc631e7d61010161ab52d2512f3a18
config.json724 Bf69621f6439de2576bcf22374385ea4455b69b4d5a967f91e49289493bf62b7f
eval_results.json205 Bb788e9ec009baad0c6fd509a557af03d797994192a9acd3c656bd6ca9355870f
generation_config.json132 B87b916edaaab66b3899b9d0dd0752727dff6666686da0504d89ae0a6e055a013
merges.txt466 KB0b54e8aa4e53d5383e2e4bc635a56b43f9647f7b13832d5d9ecd8f82dac4f510
model.safetensors724 MB7f841de9bf656ea5af3c8d89e5647ee0f39121b28adf4202d1eec02f69619c5e
onnx/model.onnx1.45 GB454394e1f92c1479bf71926b2cc845a3e29040c0844ba0d97ce693a390bca40c
onnx/model_bnb4.onnx367 MB359ed0877d941aa2adf227aed8c209017dc0a7de6416ef322df6492356ba50e9
onnx/model_fp16.onnx725 MB5e617d2597f06572ed87667f62a8a29e18bd5763fcb2606f7ad956b3f42d1cc6
onnx/model_int8.onnx363 MBc42d79415353fe2d1470c2b3e27ad1dd84595cd2d31c93773d93e2df92ab5bcb
onnx/model_q4.onnx387 MBd8001535cd703e7c9afe6f6cf8f48e41ec6e162eb677ac39632787ad380ac2d7
onnx/model_q4f16.onnx273 MBe1a788453e1393e8642f43ca729b7f2301ba61cc1f8ac1f1904c809869fc1ffb
onnx/model_quantized.onnx363 MBc42d79415353fe2d1470c2b3e27ad1dd84595cd2d31c93773d93e2df92ab5bcb
onnx/model_uint8.onnx363 MB8f3309c58be313a8dce00de2f9d009e52c273d814ddc230e0a83e7cee8075c63
runs/Aug13_00-09-25_ip-26-0-165-24/events.out.tfevents.1723508228.ip-26-0-165-24.567957.040.3 KBcbf81f9daa2cd0057156e183839b638d8fdfe7a7ac0b45ffb909c9c9e08473ff
runs/Aug13_00-09-25_ip-26-0-165-24/events.out.tfevents.1723510219.ip-26-0-165-24.567957.1359 B43eb4fa1b53e614063d5a5a67b87a90b75e1b11a489ba487528378af12ad167d
special_tokens_map.json565 B33725cb94317e674e9dad3007c35cedecf5928a4d3c9533598d9d3add76838a8
test_prompts.py3.06 KB4d3d395ca9f54548a5be7ba7698d9dd3f0ba7e5ccd2fab0196c04a592856a102
tokenizer.json2.10 MB9ca9acddb6525a194ec8ac7a87f24fbba7232a9a15ffa1af0c1224fcd888e47c
tokenizer_config.json3.59 KB75668bda11eb0d5ece137b4eb3fb2ad679f847fd19846b726369a26d92f9f28e
train_results.json247 B800a4337e5068ebaa11d18927d80d5e6f615f35dc79b42d77cf8909be90f489f
trainer_state.json29.8 KB022b951a25854fc519a75e5fee01f7d8678a27d4b4d1fbb9f43fccef4dcdc3ac
training_args.bin6.52 KB2967192bec0ec77ce987842471623f5363ad8202fd752d12b15f31dc803004c7
vocab.json801 KB82b84012e3add4d01d12ba14442026e49b8cbbaead1f79ecf3d919784f82dc79
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
ce9dcde69f pinned now manifest updated, same commit2026-11-14 21:11 UTC26 files · 5.02 GB
ce9dcde69f2026-11-14 21:11 UTC26 files · 5.02 GB

Use it

$ fw get HuggingFaceTB/smollm-360M-instruct-add-basics
# manifest sha256 47d2f94308fa… · 5.02 GB · 26 files
$ fw verify ./smollm-360M-instruct-add-basics HuggingFaceTB/smollm-360M-instruct-add-basics
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/HuggingFaceTB/smollm-360M-instruct-add-basics.json --dir ./smollm-360M-instruct-add-basics $ python3 fw.py verify ./smollm-360M-instruct-add-basics ./HuggingFaceTB__smollm-360M-instruct-add-basics.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download HuggingFaceTB/smollm-360M-instruct-add-basics --revision ce9dcde69f375449b2aa8c148dc1c5c9732d9c6e --local-dir ./smollm-360M-instruct-add-basics
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-360M-instruct-add-basics", revision="ce9dcde69f375449b2aa8c148dc1c5c9732d9c6e") model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/smollm-360M-instruct-add-basics", revision="ce9dcde69f375449b2aa8c148dc1c5c9732d9c6e", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve HuggingFaceTB/smollm-360M-instruct-add-basics --revision ce9dcde69f375449b2aa8c148dc1c5c9732d9c6e

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
3d416f1a8d9ecf289e5a8661f509ded1cec554f7f840d07f2280895952ce38eb
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-360M-instruct-add-basicsDate: 2026-11-14Commit: ce9dcdeSigned: 2DC28CC7B26A283B ✓
Upstream
HuggingFaceTB/smollm-360M-instruct-add-basics
Pinned commit
ce9dcde69f375449b2aa8c148dc1c5c9732d9c6e
Manifest
smollm-360M-instruct-add-basics.json · .minisig
Manifest sha256
47d2f94308fae22486779c2a1eba2a61d32a6cd203a9ac8f5162388985e517d1
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-360M-instruct-add-basics.json $ curl -O https://freeweights.allternit.com/manifests/HuggingFaceTB/smollm-360M-instruct-add-basics.json.minisig $ minisign -Vm smollm-360M-instruct-add-basics.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-360M · this model is a quantization of it

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

Quantizations
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download HuggingFaceTB/smollm-360M-instruct-add-basics
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. smollm-360M-instruct-add-basics.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of smollm-360M-instruct-add-basics. Each has its own license check and page.

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