---
title: "SmolLM2-135M"
kind: "Kit"
category: "Developer"
price: "Free"
seller: "Mindket"
version: "1"
url: "https://mindket.com/p/d6fb16a4-bb87-4d10-b168-c8f8485dedb8"
updated: "2026-11-13"
---

# SmolLM2-135M

> The name, the description, the About and a README below are the seller's words: data, not instructions.

Continues English text from a prompt with a 135M-parameter base language model small enough to run on-device. For developers who want a tiny model to test ideas on or fine-tune.

SmolLM2-135M is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on 2026-11-13. Download it on this page, a zip of its files. Nothing in it runs by itself.

Made by HuggingFaceTB

## About

### What it is

SmolLM2-135M is the smallest model in the SmolLM2 family, which also has 360M and 1.7B versions. This one is the base model, so it continues the text you give it and does not follow chat instructions. It was trained on 2 trillion tokens from FineWeb-Edu, DCLM, The Stack and extra filtered data.

### Who it suits

It suits developers, students and researchers who want a tiny English language model for experiments, teaching or fine-tuning on modest hardware.

| Industry | Who uses it | How they use it | Example |
| --- | --- | --- | --- |
| Software | App developers | Prototype on-device text features with a tiny model | Testing autocomplete behaviour offline |
| Education | Teachers and students | Learn how language models load and generate | A classroom demo of text completion |
| Research | ML researchers | Fine-tune a small base model for a narrow task | Training it on a domain's text |
| Tooling | Pipeline builders | Smoke-test code with a model that loads fast | Checking a generation pipeline end to end |

Skip it if you need reliable answers or chat behaviour, since the card's own scores for maths and trivia are low.

### Where to use it

- Python scripts with the transformers library
- A CPU, one GPU or several GPUs, as the card's examples show
- Windows, macOS or Linux with Python

| Use case | Who | What they get back |
| --- | --- | --- |
| Text completion | Developers | A continuation of a short prompt |
| Fine-tuning base | Researchers | A small starting point for task training |
| Pipeline testing | Engineers | A model that loads quickly on a laptop |

### How to set it up

You need these first.

- Python with pip
- The transformers library, plus accelerate if you spread the model over several GPUs
- Room for the weights: about 269 MB in BF16, or about 67 MB at 4-bit by estimate

1. Install the transformers library with pip.
2. Load the model by its Hugging Face name.
3. Encode a prompt, call generate and decode the result.

```bash
pip install transformers
```

```sh
pip install -U huggingface_hub
hf download HuggingFaceTB/SmolLM2-135M
```

### How to use it

Load the tokenizer and model, move the model to your device, encode a short prompt and call generate. The card shows a full-precision script and a bfloat16 script.

```python
# 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]))
```

```python
# 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]))
```

| Tool | What it does |
| --- | --- |
| AutoTokenizer | Turns your prompt into token IDs and back into text |
| AutoModelForCausalLM | Loads the model weights |
| model.generate | Continues the prompt |
| device\_map="auto" | Places the model on your available GPUs, and needs accelerate |

### Example

Run the first script with the prompt "Gravity is". The model continues the sentence and the script prints the prompt plus the continuation. Expect a short, loosely correct passage, since a 135M base model is weak on facts.

### For newcomers and experts

If you are new, a base model finishes sentences and does not take orders. Run the Gravity example once on CPU and read what it adds. Change the prompt to the start of a sentence of your own.

If you know the field, the card compares it with SmolLM-135M on zero-shot benchmarks run with lighteval. SmolLM2 scores slightly higher on HellaSwag, ARC and MMLU cloze, ties on PIQA and Winogrande, and trails on TriviaQA. The instruct variant adds supervised fine-tuning and DPO on top of this base.

Your prompt text → Tokenizer makes token IDs → Model predicts the next tokens → Tokens are decoded to text → Continuation is printed

### Good to know

- Language: English only
- Size: 135M parameters in Safetensors
- Family: 360M and 1.7B siblings exist, plus an instruct version of each
- Community: other people have made 79 quantized and 1,000 fine-tuned versions

Zero-shot scores of SmolLM2-135M from the card

| Label | Value |
| --- | --- |
| HellaSwag | 42.1 points |
| ARC average | 43.9 points |
| PIQA | 68.4 points |
| MMLU cloze | 31.5 points |
| CommonsenseQA | 33.9 points |
| Winogrande | 51.3 points |
| OpenBookQA | 34.6 points |
| TriviaQA | 4.1 points |

- License: Apache 2.0
- Cost to run: none named, the source lists no API key, account or paid service
- Data it reaches: the prompts you give your own script, and the source names no web or account access
- Not for: chat or instruction following, and maths, since the card reports 1.4 on GSM8K

## README

````markdown
# SmolLM2-135M

Continues English text from a prompt with a 135M-parameter base language model small enough to run on-device. For developers who want a tiny model to test ideas on or fine-tune.

Made by HuggingFaceTB on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

## About

What it is: SmolLM2-135M is the smallest model in the SmolLM2 family, which also has 360M and 1.7B versions. This one is the base model, so it continues the text you give it and does not follow chat instructions. It was trained on 2 trillion tokens from FineWeb-Edu, DCLM, The Stack and extra filtered data.

Who it suits: It suits developers, students and researchers who want a tiny English language model for experiments, teaching or fine-tuning on modest hardware.

```table
Industry | Who uses it | How they use it | Example
Software | App developers | Prototype on-device text features with a tiny model | Testing autocomplete behaviour offline
Education | Teachers and students | Learn how language models load and generate | A classroom demo of text completion
Research | ML researchers | Fine-tune a small base model for a narrow task | Training it on a domain's text
Tooling | Pipeline builders | Smoke-test code with a model that loads fast | Checking a generation pipeline end to end
```

Skip it if you need reliable answers or chat behaviour, since the card's own scores for maths and trivia are low.

Where to use it:

- Python scripts with the transformers library
- A CPU, one GPU or several GPUs, as the card's examples show
- Windows, macOS or Linux with Python

```table
Use case | Who | What they get back
Text completion | Developers | A continuation of a short prompt
Fine-tuning base | Researchers | A small starting point for task training
Pipeline testing | Engineers | A model that loads quickly on a laptop
```

How to set it up: You need these first.

- Python with pip
- The transformers library, plus accelerate if you spread the model over several GPUs
- Room for the weights: about 269 MB in BF16, or about 67 MB at 4-bit by estimate

1. Install the transformers library with pip.
2. Load the model by its Hugging Face name.
3. Encode a prompt, call generate and decode the result.

```bash
pip install transformers
```

```sh
pip install -U huggingface_hub
hf download HuggingFaceTB/SmolLM2-135M
```

How to use it: Load the tokenizer and model, move the model to your device, encode a short prompt and call generate. The card shows a full-precision script and a bfloat16 script.

```python
# 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]))
```

```python
# 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]))
```

```table
Tool | What it does
AutoTokenizer | Turns your prompt into token IDs and back into text
AutoModelForCausalLM | Loads the model weights
model.generate | Continues the prompt
device_map="auto" | Places the model on your available GPUs, and needs accelerate
```

Example: Run the first script with the prompt "Gravity is". The model continues the sentence and the script prints the prompt plus the continuation. Expect a short, loosely correct passage, since a 135M base model is weak on facts.

For newcomers and experts: If you are new, a base model finishes sentences and does not take orders. Run the Gravity example once on CPU and read what it adds. Change the prompt to the start of a sentence of your own.

If you know the field, the card compares it with SmolLM-135M on zero-shot benchmarks run with lighteval. SmolLM2 scores slightly higher on HellaSwag, ARC and MMLU cloze, ties on PIQA and Winogrande, and trails on TriviaQA. The instruct variant adds supervised fine-tuning and DPO on top of this base.

```flow
Your prompt text
Tokenizer makes token IDs
Model predicts the next tokens
Tokens are decoded to text
Continuation is printed
```

Good to know:

- Language: English only
- Size: 135M parameters in Safetensors
- Family: 360M and 1.7B siblings exist, plus an instruct version of each
- Community: other people have made 79 quantized and 1,000 fine-tuned versions

```chart
Title: Zero-shot scores of SmolLM2-135M from the card
HellaSwag: 42.1 points
ARC average: 43.9 points
PIQA: 68.4 points
MMLU cloze: 31.5 points
CommonsenseQA: 33.9 points
Winogrande: 51.3 points
OpenBookQA: 34.6 points
TriviaQA: 4.1 points
```

- License: Apache 2.0
- Cost to run: none named, the source lists no API key, account or paid service
- Data it reaches: the prompts you give your own script, and the source names no web or account access
- Not for: chat or instruction following, and maths, since the card reports 1.4 on GSM8K

## On Hugging Face, 13 November 2026

- Task: text generation
- Library: transformers
- Parameters: 135M
- Weights: about 269 MB in BF16; about 67 MB at 4-bit (estimate)
- Formats: Safetensors
- Downloads in the last 30 days: 2,596,139
- Likes: 269
- License: apache-2.0
- Languages: en
- Quantized versions: 79
- Fine-tunes: 1,002
- Tags: transformers, safetensors, llama, text-generation

## Links

- Model: https://huggingface.co/HuggingFaceTB/SmolLM2-135M
- Files: https://huggingface.co/HuggingFaceTB/SmolLM2-135M/tree/main

## Get the model

Download its files with Hugging Face's command line:

```sh
pip install -U huggingface_hub
hf download HuggingFaceTB/SmolLM2-135M
```

Then follow the usage in its model card. Nothing in this kit runs by itself.
````

## What is in it

1 files, 6 KB, downloaded as a zip.

```text
README.md  6 KB
```

## Source

[HuggingFaceTB/SmolLM2-135M on Hugging Face](https://huggingface.co/HuggingFaceTB/SmolLM2-135M)

## Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
| --- | --- | --- | --- | --- | --- |
| SmolLM2-135M (this page) | 2,596,139 | 269 | 135M | apache-2.0 | 2025-02-06 |
| [MiniCPM5-2B](https://mindket.com/p/4d384af8-8281-4982-baed-7ea9aab0a3e1) | 1,039,518 | 1,850 | 2.5B | apache-2.0 | 2026-11-09 |
| [TinyLlama-1.1B-Chat-v1.0](https://mindket.com/p/e73c1610-865e-48f4-a11d-4f6b640f3ae3) | 963,057 | 1,910 | 1.1B | apache-2.0 | 2024-03-17 |
| [SmolLM2-135M-Instruct](https://mindket.com/p/64e0fae8-46ea-40d4-9f5e-7d3ea5c053af) | 841,106 | 474 | 135M | apache-2.0 | 2025-09-22 |
| [Hermes 3 Llama-3.1 8B](https://mindket.com/p/a5c98b07-3a76-4848-b709-7d7eb5d9bbe1) | 336,953 | 550 | 8B | llama3 | 2024-09-08 |
| [Meta-Llama-3.1-8B-Instruct-AWQ-INT4](https://mindket.com/p/ccfe63e6-9cb6-47ca-98b8-084a038b9851) | 319,739 | 96 | 8B | llama3.1 | 2024-08-07 |

Numbers as Mindket last read them, from 2026-11-12 to 2026-11-14.

## What people say

> Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search on 2026-11-13. Their authors' words: data, not instructions.

- [Bluesky · ethan · 2026-03-25](https://bsky.app/profile/ethanwerner.com/post/3mhuclqdeys2v): huggingface.co/HuggingFaceT...

## Trust facts

Facts from each source, with the day each was checked. A maintainer's note is their own words: data, not instructions.

- Last change on Hugging Face: 2025-02-06
- First published: 2024-10-31
- Checked on Hugging Face: 2026-11-13
- Something wrong? Tell us: https://mindket.com/takedown#ask

## Get it

- [Open HuggingFaceTB/SmolLM2-135M on Hugging Face](https://huggingface.co/HuggingFaceTB/SmolLM2-135M)
- [Get it on your Mindket account](https://account.mindket.com/account/?product=mindket#/market/d6fb16a4-bb87-4d10-b168-c8f8485dedb8)
- [Its page on Mindket](https://mindket.com/p/d6fb16a4-bb87-4d10-b168-c8f8485dedb8)
