Model reference · open weights

SmolLM2

SmolLM2 is an open-weight language model from HuggingFaceTB, listed in the AxForge catalogue. AxForge can bring it up on EU-owned hardware for you on request — with the licence handled where one is required.

LLMs HuggingFaceTB 4 variants 2.4M downloads/mo
Request this model on EU hardware All served models Not on the shared API today — deployed on request.

About

What SmolLM2 is

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 Running the model on CPU/GPU/multi GPU Using full precision Using torch.bfloat16 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 Instruction model 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

Summarised from the published model card. Read the full card on the HuggingFace links below.

Specifications

What it is

MakerHuggingFaceTB
TypeLanguage models
Parameters (lead)135M
Context8k tokens
Variants4
Runs withtransformers
Released2024-10-31
Popularity2.4M downloads / month
Likes752
LicenceOpen weights

How it works

How language models work

Your prompttext / messagesTransformerattention over tokensNext-token loopgenerate + streamResponsetext · tool callsA language model reads your tokens and predicts the next one, again and again, streaming the reply back.

Variants

Sizes & precisions

Open weights ship in several sizes and precisions. One page, all the variants — pick the one that fits your GPU. VRAM figures are estimates from model size.

VariantParamsPrecisionVRAMFits 16 GBWeights
SmolLM2-135M135MBF16~0.3 GBWeights ↗
SmolLM2-360M362MBF16~0.8 GBWeights ↗
SmolLM2-1.7B1.7BBF16~3.9 GBWeights ↗
SmolLM2-1.7B-Instruct-GGUFGGUFWeights ↗

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys smollm2 for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (smollm2 below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/chat/completions \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"smollm2","messages":[{"role":"user","content":"Hello"}]}'

Details

Languages, data & research

Languages

en

Tags

transformers safetensors llama text-generation en eval-results text-generation-inference endpoints_compatible deploy:azure tensorboard onnx transformers.js conversational gguf

Papers

Licence

Open weights

Open weights under apache-2.0 — commercial use is permitted. Deploy it on AxForge EU hardware on request. Read the licence ↗

Sources

Weights & code

Want SmolLM2 on EU-owned hardware?

Request this model on EU hardware See what’s served now

Explore

More language models

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms