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

← All models

HuggingFaceTB_SmolLM2-135M-Instruct

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 pipeline_tag: text-generation tags:
  • safetensors
  • onnx
  • transformers.js base_model:
  • HuggingFaceTB/SmolLM2-135M

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

Transformers

pip install transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
checkpoint = "HuggingFaceTB/SmolLM2-135M-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 gravity?"}]
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-135M-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

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 19.8 16.8
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:c741f3dade8cff862aabd252d0217edbb1913075&dn=HuggingFaceTB_SmolLM2-135M-Instruct

Open magnet in torrent client · infohash c741f3dade8cff862aabd252d0217edbb1913075

Files & hashes

PathSizesha1sha256
README.md6.6 KB (6,772 B)d168166639f4dec33a0d0bb5f8e7d4e20d9d52ac4f97533ad95b1b2fea15fbc075c01b94578ebdd7c8138888fa43fa3abd530dc4
all_results.json783 B (783 B)85c006f9a5e464072db2465b66ac20be695963d01f68a2e167194d764c414643b54f0960945dc3f46bc47ec53b02475df527f376
config.json861 B (861 B)36293b6099200eb8aeb55ae2c01bca2ba46d80d08eb740e8bbe4cff95ea7b4588d17a2432deb16e8075bc5828ff7ba9be94d982a
eval_results.json586 B (586 B)b6c91c24d0db60c08b7a8be9692d83b5c071d5c76c7ecd0c2c0e8f6af8cbb34065fb2d5eb4c504febf2e266a7c7f948f13c70b7c
generation_config.json132 B (132 B)da6c4d71a43aa7e6f785bdbb28ea5025438a73fa87b916edaaab66b3899b9d0dd0752727dff6666686da0504d89ae0a6e055a013
merges.txt455.5 KB (466,391 B)69503b13f727ba3812b6803e97442a6de05ef5eb0b54e8aa4e53d5383e2e4bc635a56b43f9647f7b13832d5d9ecd8f82dac4f510
model.safetensors256.6 MB (269,060,552 B)c317d43e826619181273f6ac64c5c028b93aaa335af571cbf074e6d21a03528d2330792e532ca608f24ac70a143f6b369968ab8c
runs/Oct31_10-14-22_ip-26-0-174-36/events.out.tfevents.1730370128.ip-26-0-174-36.3239327.076.3 KB (78,157 B)bee455a8ebd4c9fb713aaf064e314a57e7dc889b774faae98f36baa1ee525b594023c5fc25b4ad9249e04ccdf4cba9ee4f4585fd
runs/Oct31_10-14-22_ip-26-0-174-36/events.out.tfevents.1730376056.ip-26-0-174-36.3239327.1828 B (828 B)023e14a9e966c70ac678bee38a0400f98607e126043a35029ecb401ef0df75148304075329cd444faf2097b0316e9200018fea5c
special_tokens_map.json655 B (655 B)44719d2e365acac0637fd25a3acf46494ca459402b7379f3ae813529281a5c602bc5a11c1d4e0a99107aaa597fe936c1e813ca52
tokenizer.json2.0 MB (2,104,556 B)f922b1797f0c88e71addc8393787831f2477a4bd9ca9acddb6525a194ec8ac7a87f24fbba7232a9a15ffa1af0c1224fcd888e47c
tokenizer_config.json3.7 KB (3,764 B)8c7b22013909450429303ed10be4398bd63f54574ec77d44f62efeb38d7e044a1db318f6a939438425312dfa333b8382dbad98df
train_results.json232 B (232 B)246b9556e2d21f927f43ff1a0ff9447c5906b46f713996ce10b9d99a440fec73c0f3bdb2f3c4db6adba3d027bdaa40796f059b2d
trainer_state.json55.9 KB (57,225 B)6870fd88eb2bd4aa2a3c7d3ecb9214bfdddf64f19664b2f12a8a29cad27a12da7b0d3a1081c8ba1392bcec71fa3bfd4fafc11284
training_args.bin6.4 KB (6,520 B)bf5922c52a3a01ccabad05c65bdd50cf5fd37cd290f508e5769b31070c2c8f82e7ecdce816d610763df89479b5258bc66ee8b357
vocab.json781.9 KB (800,662 B)0ad5ecc2035b7031b88afb544ee95e2d49baa48482b84012e3add4d01d12ba14442026e49b8cbbaead1f79ecf3d919784f82dc79

Cite this release

Canonical URL
https://aiseedbank.org/models/HuggingFaceTB_SmolLM2-135M-Instruct/
Slug
HuggingFaceTB_SmolLM2-135M-Instruct
Infohash
c741f3dade8cff862aabd252d0217edbb1913075
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-Instruct.SHA256SUMS (+ minisign signature).

Provenance

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

Trackers

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

apache-2.0260.0 MB (272,588,676 bytes)transformerstensorboardonnxsafetensorsllamatext-generationtransformers.jsconversationaltext-generation-inferenceendpoints_compatible1 language (en)paper: 2502.02737