smollm3-3b

SmolLM3

A compact 3B model that punches above its size: dual-mode reasoning, six languages, and up to 128k-token context, released fully open with weights, data mixture, and training details.

Apache-2.0
Text Generation
Transformers
Safetensors
ONNX
by @AIOZAI
8
0

Last updated: 12 days ago


Generic badge Generic badge

SmolLM3 3B

Summary

Introduction

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

The model is a decoder-only transformer using GQA and NoPE (with a 3:1 ratio). 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 supports up to 128k tokens using YARN extrapolation
  • Multilingual: 6 natively supported (English, French, Spanish, German, Italian, and Portuguese)

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.

Instruction Model

No Extended Thinking

Evaluation results of non-reasoning models and reasoning models in no-thinking mode. We highlight the best score in bold and underline the second-best score.

CategoryMetricSmolLM3-3BQwen2.5-3BLlama3.1-3BQwen3-1.7BQwen3-4B
High school math competitionAIME 20259.32.90.38.017.1
Math problem-solvingGSM-Plus72.874.159.268.382.1
Competitive programmingLiveCodeBench v415.210.53.415.024.9
Graduate-level reasoningGPQA Diamond35.732.229.431.844.4
Instruction followingIFEval76.765.671.674.068.9
AlignmentMixEval Hard26.927.624.924.331.6
Tool CallingBFCL92.3-92.3 *89.595.0
Multilingual Q&AGlobal MMLU53.550.5446.849.565.1

(*): this is a tool calling finetune

Extended Thinking

Evaluation results in reasoning mode for SmolLM3 and Qwen3 models:

CategoryMetricSmolLM3-3BQwen3-1.7BQwen3-4B
High school math competitionAIME 202536.730.758.8
Math problem-solvingGSM-Plus83.479.488.2
Competitive programmingLiveCodeBench v430.034.452.9
Graduate-level reasoningGPQA Diamond41.739.955.3
Instruction followingIFEval71.274.285.4
AlignmentMixEval Hard30.833.938.0
Tool CallingBFCL88.888.895.5
Multilingual Q&AGlobal MMLU64.162.373.3

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.1975.5260.5274.37
ARC-CF (Average)65.6159.8158.5855.8862.11
Winogrande58.8861.4158.7257.0659.59
CommonsenseQA55.2849.1460.6048.9852.99
Knowledge & UnderstandingMMLU-CF (Average)44.1342.9341.3239.1147.65
MMLU Pro CF19.6116.6616.4218.0424.92
MMLU Pro MCF32.7031.3225.0730.3941.07
PIQA78.8978.3578.5175.3577.58
OpenBookQA40.6040.2042.0036.4042.40
BoolQ78.9973.6175.3374.4674.28
Math & Code
Coding & mathHumanEval+30.4834.1425.0043.2954.87
MBPP+52.9152.1138.8859.2563.75
MATH (4-shot)46.1040.107.4441.6451.20
GSM8k (5-shot)67.6370.1325.9265.8874.14
Long context
Ruler 32k76.3575.9377.5870.6383.98
Ruler 64k67.8564.9072.9357.1860.29
Ruler 128k61.0362.2371.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.2661.00
Belebele51.0051.5549.2249.4455.00
Global MMLU (CF)38.3734.2233.7134.9441.80
Flores-200 (5-shot)62.8561.3862.8958.6865.76
SpanishMLMM Hellaswag65.8558.2559.3952.4061.85
Belebele47.0048.8847.0047.5650.33
Global MMLU (CF)38.5135.8435.6034.7941.22
Flores-200 (5-shot)48.2550.0044.4546.9350.16
GermanMLMM Hellaswag59.5649.9953.1946.1056.43
Belebele48.4447.8846.2248.0053.44
Global MMLU (CF)35.1033.1932.6032.7338.70
Flores-200 (5-shot)56.6050.6354.9552.5850.48
ItalianMLMM Hellaswag62.4953.2154.9648.7258.76
Belebele46.4444.7743.8844.0048.78
Global MMLU (CF)36.9933.9132.7935.3739.26
Flores-200 (5-shot)52.6554.8748.8348.3749.11
PortugueseMLMM Hellaswag63.2257.3856.8450.7359.89
Belebele47.6749.2245.0044.0049.00
Global MMLU (CF)36.8834.7233.0535.2640.66
Flores-200 (5-shot)60.9357.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.

CategoryMetricSmolLM3 3B BaseQwen2.5-3BLlama3.2 3BQwen3 1.7B BaseQwen3 4B Base
Other supported languages
ArabicBelebele40.2244.2245.3342.3351.78
Global MMLU (CF)28.5728.8127.6729.3731.85
Flores-200 (5-shot)40.2239.4444.4335.8239.76
ChineseBelebele43.7844.5649.5648.7853.22
Global MMLU (CF)36.1633.7939.5738.5644.55
Flores-200 (5-shot)29.1733.2131.8925.7032.50
RussianBelebele47.4445.8947.4445.2251.44
Global MMLU (CF)36.5132.4734.5234.8338.80
Flores-200 (5-shot)47.1348.7450.7454.7060.53

Parameters

Inputs

  • prompt - (text): User-provided input can be a question, a request, or the context to be addressed. The system uses the prompt to analyze, infer, and generate a corresponding response.

Output

  • output - (text): The content generated after the token is the final answer that the model returns to the user.

Usage for developers

Please find below the details to track the information and access the code for processing the model on our platform.

Requirements

pip install -r requirements.txt

Code based on AIOZ structure

import os
from transformers import AutoModelForCausalLM, AutoTokenizer

...


def do_ai_task(
        prompt: Union[str, Path],
        model_storage_directory: Union[str, Path],
        device: Literal["cpu", "cuda", "gpu"] = "cpu",
        *args, **kwargs) -> Any:
    """Define AI task: load model, pre-process, post-process, etc ..."""
    # Define AI task workflow. Below is an example
    model_weights = os.path.join(model_storage_directory, "SmolLM3-3B")

    # load the tokenizer and the model
    tokenizer = AutoTokenizer.from_pretrained(model_weights)
    model = AutoModelForCausalLM.from_pretrained(
        model_weights,
    ).to(device)

    # Get and decode the output
    output_ids = generated_ids[0][len(model_inputs.input_ids[0]) :]
    output = tokenizer.decode(output_ids, skip_special_tokens=True)
    return output

Reference

This repository is based on and inspired by the SmolLM team's work, including their open weights, training code, and public data mixture. We sincerely appreciate their generosity in sharing the model and full training details.

License

SmolLM3-3B is released under the Apache License 2.0, which permits use, modification, and redistribution for both commercial and non-commercial purposes. AIOZ AI redistributes this model in accordance with those terms. A full copy of the license is included in the LICENSE file, and attribution is provided in the NOTICE file.

Citation

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