CoolFace
Modelpublic

HuggingFaceTB/SmolLM3-3B-Base

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
174likes613kdownloads
Model Card

SmolLM3

image/png

Table of Contents

  1. 1.Model Summary
  2. 2.How to use
  3. 3.Evaluation
  4. 4.Training
  5. 5.Limitations
  6. 6.License

Model Summary

SmolLM3 is a 3B parameter language model designed to push the boundaries of small models. It supports 6 languages, advanced reasoning and long context. SmolLM3 is a fully open model that offers strong performance at the 3B–4B scale.

image/png

SmolLM3-3B-Base is the base model after pretraining, you can find the instruct model at SmolLM3-3B.

The model is a decoder-only transformer using GQA and NoPE, it was pretrained on 11.2T tokens with a staged curriculum of web, code, math and reasoning data. Post-training included midtraining on 140B reasoning tokens followed by supervised fine-tuning and alignment via Anchored Preference Optimization (APO).

Key features

  • Instruct model optimized for hybrid reasoning
  • Fully open model: open weights + full training details including public data mixture and training configs
  • Long context: Trained on 64k context and suppots up to 128k tokens using YARN extrapolation
  • Multilingual: 6 natively supported (English, French, Spanish, German, Italian, and Portuguese)

For more details refer to our blog post: https://hf.co/blog/smollm3

How to use

The modeling code for SmolLM3 is available in transformers v4.53.0, so make sure to upgrade your transformers version. You can also load the model with the latest vllm which uses transformers as a backend.

bash
pip install -U transformers
python
from transformers import AutoModelForCausalLM, AutoTokenizer

checkpoint = "HuggingFaceTB/SmolLM3-3B"
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]))

For local inference, you can use llama.cpp, ONNX, MLX and MLC. You can find quantized checkpoints in this collection (https://huggingface.co/collections/HuggingFaceTB/smollm3-686d33c1fdffe8e635317e23).

Long context processing

The current config.json is set for context length up to 65,536 tokens. To handle longer inputs (128k or 256k), we utilize YaRN you can change the max_position_embeddings and rope_scaling` to:

{
  ...,
  "rope_scaling": {
    "factor": 2.0, #2x65536=131 072 
    "original_max_position_embeddings": 65536,
    "type": "yarn"
  }
}

Evaluation

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

We highlight the best score in bold and underline the second-best score.

Base Pre-Trained Model

English benchmarks

Note: All evaluations are zero-shot unless stated otherwise. For Ruler 64k evaluation, we apply YaRN to the Qwen models with 32k context to extrapolate the context length.

CategoryMetricSmolLM3-3BQwen2.5-3BLlama3-3.2BQwen3-1.7B-BaseQwen3-4B-Base
Reasoning & CommonsenseHellaSwag76.1574.19<u>75.52</u>60.5274.37
ARC-CF (Average)65.6159.8158.5855.88<u>62.11</u>
Winogrande58.8861.4158.7257.06<u>59.59</u>
CommonsenseQA<u>55.28</u>49.1460.6048.9852.99
Knowledge & UnderstandingMMLU-CF (Average)<u>44.13</u>42.9341.3239.1147.65
MMLU Pro CF<u>19.61</u>16.6616.4218.0424.92
MMLU Pro MCF<u>32.70</u>31.3225.0730.3941.07
PIQA78.8978.35<u>78.51</u>75.3577.58
OpenBookQA40.6040.20<u>42.00</u>36.4042.40
BoolQ78.9973.61<u>75.33</u>74.4674.28
Math & Code
Coding & mathHumanEval+30.4834.1425.00<u>43.29</u>54.87
MBPP+52.9152.1138.88<u>59.25</u>63.75
MATH (4-shot)<u>46.10</u>40.107.4441.6451.20
GSM8k (5-shot)67.63<u>70.13</u>25.9265.8874.14
Long context
Ruler 32k76.3575.93<u>77.58</u>70.6383.98
Ruler 64k<u>67.85</u>64.9072.9357.1860.29
Ruler 128k61.03<u>62.23</u>71.3043.0347.23
Multilingual benchmarks
CategoryMetricSmolLM3 3B BaseQwen2.5-3BLlama3.2 3BQwen3 1.7B BaseQwen3 4B Base
Main supported languages
FrenchMLMM Hellaswag63.9457.4757.6651.26<u>61.00</u>
Belebele51.00<u>51.55</u>49.2249.4455.00
Global MMLU (CF)<u>38.37</u>34.2233.7134.9441.80
Flores-200 (5-shot)62.8561.38<u>62.89<u/u>58.6865.76
SpanishMLMM Hellaswag65.8558.2559.3952.40<u>61.85</u>
Belebele47.00<u>48.88</u>47.0047.5650.33
Global MMLU (CF)<u>38.51</u>35.8435.6034.7941.22
Flores-200 (5-shot)<u>48.25</u>50.0044.4546.9350.16
GermanMLMM Hellaswag59.5649.9953.1946.10<u>56.43</u>
Belebele<u>48.44</u>47.8846.2248.0053.44
Global MMLU (CF)<u>35.10</u>33.1932.6032.7338.70
Flores-200 (5-shot)56.6050.63<u>54.95</u>52.5850.48
ItalianMLMM Hellaswag62.4953.2154.9648.72<u>58.76</u>
Belebele<u>46.44</u>44.7743.8844.0048.7844.88
Global MMLU (CF)<u>36.99</u>33.9132.7935.3739.26
Flores-200 (5-shot)<u>52.65<u/>54.8748.8348.3749.11
PortugueseMLMM Hellaswag63.2257.3856.8450.73<u>59.89</u>
Belebele47.6749.2245.0044.0050.00<u>49.00</U>
Global MMLU (CF)<u>36.88</u>34.7233.0535.2640.66
Flores-200 (5-shot)<u>60.93</u>57.6854.2856.5863.43

The model has also been trained on Arabic (standard), Chinese and Russian data, but has seen fewer tokens in these languages compared to the 6 above. We report the performance on these langages for information. | Category | Metric | SmolLM3 3B Base | Qwen2.5-3B | Llama3.2 3B | Qwen3 1.7B Base | Qwen3 4B Base | |---------|--------|---------------------|------------|--------------|------------------|---------------| | Other supported languages | | | | | | | | | Arabic| Belebele | 40.22 | 44.22 | <u>45.33</u> | 42.33 | 51.78 | | | Global MMLU (CF) | 28.57 | 28.81 | 27.67 | <u>29.37</u> | 31.85 | | | Flores-200 (5-shot) | <u>40.22</u> | 39.44 | 44.43 | 35.82 | 39.76 | | Chinese| Belebele | 43.78 | 44.56 | <u>49.56</u> | 48.78 | 53.22 | | | Global MMLU (CF) | 36.16 | 33.79 | <u>39.57</u> | 38.56 | 44.55 | | | Flores-200 (5-shot) | 29.17 | 33.21 | 31.89 | 25.70 | <u>32.50</u> | | Russian| Belebele | <u>47.44</u> | 45.89 | <u>47.44</u> | 45.22 | 51.44 | | | Global MMLU (CF) | <u>36.51</u> | 32.47 | 34.52 | 34.83 | 38.80 | | | Flores-200 (5-shot) | 47.13 | 48.74 | 50.74 | <u>54.70</u> | 60.53 |

Instruction Model

No Extended Thinking

Evaluation results of non reasoning models and reasoning models in no thinking mode. We highlight the best and second-best scores in bold. | Category | Metric | SmoLLM3-3B | Qwen2.5-3B | Llama3.1-3B | Qwen3-1.7B | Qwen3-4B | |---------|--------|------------|------------|-------------|------------|----------| | High school math competition | AIME 2025 | <u>9.3</u> | 2.9 | 0.3 | 8.0 | 17.1 | | Math problem-solving | GSM-Plus | 72.8 | <u>74.1</u> | 59.2 | 68.3 | 82.1 | | Competitive programming | LiveCodeBench v4 | <u>15.2</u> | 10.5 | 3.4 | 15.0 | 24.9 | | Graduate-level reasoning | GPQA Diamond | <u>35.7</u> | 32.2 | 29.4 | 31.8 | 44.4 | | Instruction following | IFEval | 76.7 | 65.6 | 71.6 | <u>74.0</u> | 68.9 | | Alignment | MixEval Hard | 26.9 | <u>27.6</u> | 24.9 | 24.3 | 31.6 | | Tool Calling | BFCL| <u>92.3</u> | - | <u>92.3</u> | 89.5 | 95.0 | | Multilingual Q&A | Global MMLU | <u>53.5</u> | 50.54 | 46.8 | 49.5 | 65.1* |

(*): this is a tool calling finetune

Extended Thinking

Evaluation results in reasoning mode for SmolLM3 and Qwen3 models: | Category | Metric | SmoLLM3-3B | Qwen3-1.7B | Qwen3-4B | |---------|--------|------------|------------|----------| | High school math competition | AIME 2025 | <u>36.7</u> | 30.7 | 58.8 | | Math problem-solving | GSM-Plus | <u>83.4</u> | 79.4 | 88.2 | | Competitive programming | LiveCodeBench v4 | 30.0 | <u>34.4</u> | 52.9 | | Graduate-level reasoning | GPQA Diamond | <u>41.7</u> | 39.9 | 55.3 | | Instruction following | IFEval | 71.2 | <u>74.2</u> | 85.4 | | Alignment | MixEval Hard | 30.8 | <u>33.9</u> | 38.0 | | Tool Calling | BFCL | <u>88.8</u> | <u>88.8</u> | 95.5 | | Multilingual Q&A | Global MMLU | <u>64.1</u> | 62.3 | 73.3 |

Training

Model

  • Architecture: Transformer decoder
  • Pretraining tokens: 11T
  • Precision: bfloat16

Software & hardware

  • GPUs: 384 H100
  • Training Framework: nanotron
  • Data processing framework: datatrove
  • Evaluation framework: lighteval
  • Post-training Framework: TRL

Open resources

Here is an infographic with all the training details.

  • The datasets used for pretraining can be found in this collection and those used in mid-training and post-training will be released in the following weeks
  • The training and evaluation configs and code can be found in the huggingface/smollm repository.
  • The training intermediate checkpoints are available at HuggingFaceTB/SmolLM3-3B-checkpoints

image/png

Limitations

SmolLM3 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.

License

Apache 2.0

Citation

bash
@misc{bakouch2025smollm3,
  title={{SmolLM3: smol, multilingual, long-context reasoner}},
  author={Bakouch, Elie and Ben Allal, Loubna and Lozhkov, Anton and Tazi, Nouamane and Tunstall, Lewis and Patiño, Carlos Miguel and Beeching, Edward and Roucher, Aymeric and Reedi, Aksel Joonas and Gallouédec, Quentin and Rasul, Kashif and Habib, Nathan and Fourrier, Clémentine and Kydlicek, Hynek and Penedo, Guilherme and Larcher, Hugo and Morlon, Mathieu and Srivastav, Vaibhav and Lochner, Joshua and Nguyen, Xuan-Son and Raffel, Colin and von Werra, Leandro and Wolf, Thomas},
  year={2025},
  howpublished={\url{https://huggingface.co/blog/smollm3}}
}