AI SeedbankHelp preserve open and free AI for humanity's future

← All models

HuggingFaceTB_SmolLM2-135M

HuggingFaceTB · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: 1 · Leechers: 0

Observed 2026-09-02T13:56:39Z via announce.aitorrent.org:7070.

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


library_name: transformers license: apache-2.0 language:

  • en

SmolLM2

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 135M model was trained on 2 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 at https://github.com/huggingface/alignment-handbook/tree/main/recipes/smollm2

How to use

pip install transformers

Running the model on CPU/GPU/multi GPU

  • Using full precision
# pip install transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
checkpoint = "HuggingFaceTB/SmolLM2-135M"
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)
inputs = tokenizer.encode("Gravity is", return_tensors="pt").to(device)
outputs = model.generate(inputs)
print(tokenizer.decode(outputs[0]))
  • Using torch.bfloat16
# pip install accelerate
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
checkpoint = "HuggingFaceTB/SmolLM2-135M"
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
# for fp16 use `torch_dtype=torch.float16` instead
model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map="auto", torch_dtype=torch.bfloat16)
inputs = tokenizer.encode("Gravity is", return_tensors="pt").to("cuda")
outputs = model.generate(inputs)
print(tokenizer.decode(outputs[0]))
>>> print(f"Memory footprint: {model.get_memory_footprint() / 1e6:.2f} MB")
Memory footprint: 723.56 MB

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

Metrics SmolLM2-135M-8k SmolLM-135M
HellaSwag 42.1 41.2
ARC (Average) 43.9 42.4
PIQA 68.4 68.4
MMLU (cloze) 31.5 30.2
CommonsenseQA 33.9 32.7
TriviaQA 4.1 4.3
Winogrande 51.3 51.3
OpenBookQA 34.6 34.0
GSM8K (5-shot) 1.4 1.0

Instruction model

Metric SmolLM2-135M-Instruct SmolLM-135M-Instruct
IFEval (Average prompt/inst) 29.9 17.2
MT-Bench 1.98 1.68
HellaSwag 40.9 38.9
ARC (Average) 37.3 33.9
PIQA 66.3 64.0
MMLU (cloze) 29.3 28.3
BBH (3-shot) 28.2 25.2
GSM8K (5-shot) 1.4 1.4

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: 2T
  • Precision: bfloat16

Hardware

  • GPUs: 64 H100

Software

  • Training Framework: nanotron

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}, 
}

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:f1a38838dc4823726ee82a9e8f970c1312dd8d95&dn=HuggingFaceTB_SmolLM2-135M

Open magnet in torrent client · infohash f1a38838dc4823726ee82a9e8f970c1312dd8d95

Files & hashes

PathSizesha1sha256
README.md6.2 KB (6,340 B)4049f762cb41ec6f526936c9af80ae216048bc74d1ba68cae64a89b6b434b11526e6e2271ee5ffd2c914ec35ed515f9d84c6085c
config.json704 B (704 B)ccf3dac2f33905d152adbdf3886b5e38a4eb75791d556eab73b69c7f11f64c557a2f9c6f440bd4c6b89bb2584a6b498c92603843
generation_config.json111 B (111 B)0fce861c328ff24830f3037d91ce773254447bf72056c988e990b0d13670f63f2f3b87b3b6d07edaf7a3416998ba27dab2d8a059
merges.txt455.5 KB (466,391 B)69503b13f727ba3812b6803e97442a6de05ef5eb0b54e8aa4e53d5383e2e4bc635a56b43f9647f7b13832d5d9ecd8f82dac4f510
model.safetensors256.6 MB (269,060,552 B)f4d51980927d5b8f9099151fce7263e82f00b12580521b40281d6ce74e35c9282c22539e75aa0ac8578892b2a59955ef78d55da1
special_tokens_map.json831 B (831 B)f6652f246cb895ca1edfb16d10b57917b266e335e786b595b9a23148bf1630df78d9037a048ea671e48bfd3549a1e3c233742bb3
tokenizer.json2.0 MB (2,104,556 B)f922b1797f0c88e71addc8393787831f2477a4bd9ca9acddb6525a194ec8ac7a87f24fbba7232a9a15ffa1af0c1224fcd888e47c
tokenizer_config.json3.6 KB (3,658 B)d45192775d58298087a1fedf5967fe5b63b091ab4bb9af56a342753d39374f4016a16574cab299fe088e896f425ce3c433f61424
vocab.json781.9 KB (800,662 B)0ad5ecc2035b7031b88afb544ee95e2d49baa48482b84012e3add4d01d12ba14442026e49b8cbbaead1f79ecf3d919784f82dc79

Cite this release

Canonical URL
https://aiseedbank.org/models/HuggingFaceTB_SmolLM2-135M/
Slug
HuggingFaceTB_SmolLM2-135M
Infohash
f1a38838dc4823726ee82a9e8f970c1312dd8d95
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: HuggingFaceTB_SmolLM2-135M.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositoryHuggingFaceTB/SmolLM2-135M
Revision (pinned)93efa2f097d58c2a74874c7e644dbc9b0cee75a2
Fetched at2026-09-02T05:39:48Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-02T05:39:53Z

apache-2.0259.8 MB (272,443,805 bytes)transformerssafetensorsllamatext-generationeval-resultstext-generation-inferenceendpoints_compatible1 language (en)paper: 2502.02737