alt.freeweights.smollm / SmolLM2-360M-Instruct
From: HuggingFaceTB <huggingface.co/HuggingFaceTB>Newsgroups: alt.freeweights.smollmSubject:

SmolLM2-360M-Instruct

Date: 2026-11-14Commit: a10cc15Signed: 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.02GBSmolLM2-360M-Instructonnx safetensorspermissive
FactsParams362MSize5.02 GBFormatsonnx, safetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get HuggingFaceTB/SmolLM2-360M-Instruct
# manifest sha256 2bea3010df9f… · 5.02 GB · 27 files
$ fw verify ./SmolLM2-360M-Instruct HuggingFaceTB/SmolLM2-360M-Instruct
From sourceHosted (signed)HuggingFaceTB/SmolLM2-360M-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 SmolLM2-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
27, each with a sha256
Publisher
HuggingFaceTB
Added
2026-11-14
Section
alt.freeweights.smollm
Lineage

Original release from the publisher.

Base model: HuggingFaceTB/SmolLM2-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 a10cc15. Shown as plain text with links; images open at the publisher.

SmolLM2#

Image: image/png

Table of Contents#

  1. Model Summary
  2. Limitations
  3. Training
  4. License
  5. Citation

Model Summary#

SmolLM2 is a family of compact language models available in three size: 135M, 360M, and 1.7B parameters. They are capable of solving a wide range of tasks while being lightweight enough to run on-device. More details in our paper: https://arxiv.org/abs/2502.02737

SmolLM2 demonstrates significant advances over its predecessor SmolLM1, particularly in instruction following, knowledge, reasoning. The 360M model was trained on 4 trillion tokens using a diverse dataset combination: FineWeb-Edu, DCLM, The Stack, along with new filtered datasets we curated and will release soon. We developed the instruct version through supervised fine-tuning (SFT) using a combination of public datasets and our own curated datasets. We then applied Direct Preference Optimization (DPO) using UltraFeedback.

The instruct model additionally supports tasks such as text rewriting, summarization and function calling (for the 1.7B) thanks to datasets developed by Argilla such as Synth-APIGen-v0.1. You can find the SFT dataset here: https://huggingface.co/datasets/HuggingFaceTB/smol-smoltalk and finetuning code in the alignement handbook

For more details refer to: https://github.com/huggingface/smollm. You will find pre-training, post-training, evaluation and local inference code.

How to use#
Transformers#
pip install transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
checkpoint = "HuggingFaceTB/SmolLM2-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/SmolLM2-360M-Instruct --device cpu
Transformers.js#
npm i @huggingface/transformers
import { pipeline } from "@huggingface/transformers";

// Create a text generation pipeline
const generator = await pipeline(
  "text-generation",
  "HuggingFaceTB/SmolLM2-135M-Instruct",
);

// Define the list of messages
const messages = [
  { role: "system", content: "You are a helpful assistant." },
  { role: "user", content: "What is the capital of France?" },
];

// Generate a response
const output = await generator(messages, { max_new_tokens: 128 });
console.log(output[0].generated_text.at(-1).content);
// "The capital of France is Paris."

Evaluation#

In this section, we report the evaluation results of SmolLM2. All evaluations are zero-shot unless stated otherwise, and we use lighteval to run them.

Base Pre-Trained Model#

MetricsSmolLM2-360MQwen2.5-0.5BSmolLM-360M
HellaSwag54.551.251.8
ARC (Average)53.045.450.1
PIQA71.769.971.6
MMLU (cloze)35.833.734.4
CommonsenseQA38.031.635.3
TriviaQA16.94.39.1
Winogrande52.554.152.8
OpenBookQA37.437.437.2
GSM8K (5-shot)3.233.41.6

Instruction Model#

MetricSmolLM2-360M-InstructQwen2.5-0.5B-InstructSmolLM-360M-Instruct
IFEval (Average prompt/inst)41.031.619.8
MT-Bench3.664.163.37
HellaSwag52.148.047.9
ARC (Average)43.737.338.8
PIQA70.867.269.4
MMLU (cloze)32.831.730.6
BBH (3-shot)27.330.724.4
GSM8K (5-shot)7.4326.81.36

Limitations#

SmolLM2 models primarily understand and generate content in English. They can produce text on a variety of topics, but the generated content may not always be factually accurate, logically consistent, or free from biases present in the training data. These models should be used as assistive tools rather than definitive sources of information. Users should always verify important information and critically evaluate any generated content.

Training#

Model#
  • Architecture: Transformer decoder
  • Pretraining tokens: 4T
  • Precision: bfloat16
Hardware#
  • GPUs: 64 H100
Software#

License#

Apache 2.0

Citation#

@misc{allal2025smollm2smolgoesbig,
      title={SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Model}, 
      author={Loubna Ben Allal and Anton Lozhkov and Elie Bakouch and Gabriel Martín Blázquez and Guilherme Penedo and Lewis Tunstall and Andrés Marafioti and Hynek Kydlíček and Agustín Piqueres Lajarín and Vaibhav Srivastav and Joshua Lochner and Caleb Fahlgren and Xuan-Son Nguyen and Clémentine Fourrier and Ben Burtenshaw and Hugo Larcher and Haojun Zhao and Cyril Zakka and Mathieu Morlon and Colin Raffel and Leandro von Werra and Thomas Wolf},
      year={2025},
      eprint={2502.02737},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2502.02737}, 
}

Files

27 files · 5.02 GBWeights 724 MB (safetensors). Sizes and sha256 from the signed manifest.
Show all 27 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md7.30 KB6b88794416ac9da8f254ebb0bec228967a2bdd0badf9a2853863928b25facd95
all_results.json786 B71face5e244d784819f937a25206865c295c8889fe4359eec28bbec85d02da0d
config.json846 B224f72354f10d617a359cc82ad15a3c96e866b9b2ffadb81997eeea9e88e22ee
eval_results.json589 Bdb9bcb5c4f2a3be0d7e88f86af26f375c22c240954af86942d1554d87a488ce8
generation_config.json132 B87b916edaaab66b3899b9d0dd0752727dff6666686da0504d89ae0a6e055a013
merges.txt466 KB0b54e8aa4e53d5383e2e4bc635a56b43f9647f7b13832d5d9ecd8f82dac4f510
model.safetensors724 MBe6bffe7435d7ddc10fd3b9a9efd429dafbacb1cb17015fb5562664e7532bf86e
onnx/model.onnx1.45 GBcf419c37a4f6073a325028245d4cae2e6135765f0f2841dbe6f48c8cd261bbcd
onnx/model_bnb4.onnx368 MB53bb7e8dd5184642c8ffe8776b98070da31678ec886c0b8eaea82fc0e3342325
onnx/model_fp16.onnx725 MB9b3bbb7e1435a9c52f4435b21dc77dc40b71a988ab2f0b4ce47b04b52ca9e8e8
onnx/model_int8.onnx365 MBcb7375a212a6583cbd96eaa739142f3a1a0d17cbd51043c60f081ea5ce6d21e3
onnx/model_q4.onnx388 MBa4ffda96e65beafc6f6cef0cbcf9fdc1cbdd79c230906bf3897d190547c7a596
onnx/model_q4f16.onnx273 MBcc63370efc2aca6d5307518b85162777132cc5b8d68eeb8154ea9b5fce09ad46
onnx/model_quantized.onnx365 MB57987a3a24dc34ad2cb5e7e566840ccaece095e35a24ae4fc5b3086c7ddd6918
onnx/model_uint8.onnx365 MB57987a3a24dc34ad2cb5e7e566840ccaece095e35a24ae4fc5b3086c7ddd6918
runs/Oct31_09-01-58_ip-26-0-172-142/events.out.tfevents.1730365788.ip-26-0-172-142.451351.078.1 KB6a59625dee7fb61068e6a6ea53682ee0d91da3f92189019d5ceed597d21ebf27
runs/Oct31_09-01-58_ip-26-0-172-142/events.out.tfevents.1730371773.ip-26-0-172-142.451351.1828 Bac5691a0cdfdd383d29b69e85c4aaf632c695ce8fd31683bb9512f310fbf1250
runs/Oct31_09-19-57_ip-26-0-174-36/events.out.tfevents.1730366818.ip-26-0-174-36.3233632.039.0 KB44f4f653d8d22e5db793f6743dc486f1d3f0919a66d5bbd69ebfd22b9e1f598b
runs/Oct31_09-20-43_ip-26-0-161-142/events.out.tfevents.1730366856.ip-26-0-161-142.1301887.037.6 KB684365d127b952fdfd215e337f4f8dc5bc4d37ef88fb608632d244ec6f86a449
special_tokens_map.json655 B2b7379f3ae813529281a5c602bc5a11c1d4e0a99107aaa597fe936c1e813ca52
tokenizer.json2.10 MB9ca9acddb6525a194ec8ac7a87f24fbba7232a9a15ffa1af0c1224fcd888e47c
tokenizer_config.json3.76 KB4ec77d44f62efeb38d7e044a1db318f6a939438425312dfa333b8382dbad98df
train_results.json232 Bfceae2634b0a268a8adbda73fd0b2192922b496054011f588d2c6e888db1cea1
trainer_state.json57.6 KB2263f580ae0d7890acc11253b83138b3fc1250dc6728688a3387ce813b92eed1
training_args.bin6.52 KB3b7e0f2e2a3074b496c74cd65dd47e8da90de5ccf808bc233cb1420827c7d68f
vocab.json801 KB82b84012e3add4d01d12ba14442026e49b8cbbaead1f79ecf3d919784f82dc79
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
a10cc1512e pinned now manifest updated, same commit2026-11-14 21:11 UTC27 files · 5.02 GB
a10cc1512e2026-11-14 21:11 UTC27 files · 5.02 GB

Use it

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

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
6b88794416ac9da8f254ebb0bec228967a2bdd0badf9a2853863928b25facd95
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: SmolLM2-360M-InstructDate: 2026-11-14Commit: a10cc15Signed: 2DC28CC7B26A283B ✓
Upstream
HuggingFaceTB/SmolLM2-360M-Instruct
Pinned commit
a10cc1512eabd3dde888204e902eca88bddb4951
Manifest
SmolLM2-360M-Instruct.json · .minisig
Manifest sha256
2bea3010df9f7edb6966cb1733530617a5cce2aa4ff52db6ffa7ceea6fe3b642
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/SmolLM2-360M-Instruct.json $ curl -O https://freeweights.allternit.com/manifests/HuggingFaceTB/SmolLM2-360M-Instruct.json.minisig $ minisign -Vm SmolLM2-360M-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/SmolLM2-360M · this model is a quantization of it

9 models in the catalog name this one as their parent.

Fine-tunes
2
Quantizations
7
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download HuggingFaceTB/SmolLM2-360M-Instruct
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. SmolLM2-360M-Instruct.json. Provenance. Takedown history: none.

Variants

7 quantized or adapter builds of SmolLM2-360M-Instruct. 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