Mindket

SmolLM2-360M

Newversion 1 · updated

Overview

Continues English text from a prompt with a 362M-parameter base language model trained on 4 trillion tokens and light enough for on-device use. For developers who want a small base model to test or fine-tune.

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

At a glance

You need
  • Python with pip
  • The transformers library, plus accelerate if you spread the model over several GPUs
  • About 724 MB for the BF16 weights, or about 181 MB at 4-bit by estimate
Runs in
  • Python scripts with the transformers library
  • CPU, one GPU or several GPUs, as the card's examples show
  • Windows, macOS or Linux with Python
Start with
pip install transformers

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

SmolLM2-360M is the middle model of the SmolLM2 family, between the 135M and 1.7B versions. It is the base model, so it carries on the text you give it and does not follow chat instructions. It was trained on 4 trillion tokens drawn from FineWeb-Edu, DCLM, The Stack and extra filtered datasets.

Who it suits

It suits developers, students and researchers who want a small English language model for experiments, teaching or fine-tuning without large hardware.

IndustryWho uses itHow they use itExample
SoftwareApp developersTry on-device text features with a compact modelTesting phrase completion offline
EducationTeachers and studentsLearn how causal language models load and generateA lab exercise on text continuation
ResearchML researchersFine-tune a small base model for a narrow taskTraining it on a company's own documents
BenchmarkingEvaluatorsCompare small models on common zero-shot testsChecking scores against Qwen2.5-0.5B

Skip it if you need chat behaviour or maths, since the base model scores only 3.2 on GSM8K in the card.

Where to use it

  • Python scripts with the transformers library
  • CPU, one GPU or several GPUs, as the card's examples show
  • Windows, macOS or Linux with Python
Use caseWhoWhat they get back
Text continuationDevelopersA finished version of a short prompt
Fine-tuning startResearchersA mid-sized small model to train further
Local testingEngineersA model that runs on a laptop without a big GPU

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
  • About 724 MB for the BF16 weights, or about 181 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, generate and decode.
pip install transformers
pip install -U huggingface_hub
hf download HuggingFaceTB/SmolLM2-360M

How to use it

Load the tokenizer and model, send the model to your device, encode a short prompt and generate. The card gives one script at full precision and one in bfloat16.

# pip install transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
checkpoint = "HuggingFaceTB/SmolLM2-360M"
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]))
# pip install accelerate
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
checkpoint = "HuggingFaceTB/SmolLM2-360M"
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]))
ToolWhat it does
AutoTokenizerConverts text to token IDs and back
AutoModelForCausalLMLoads the model weights
model.generateWrites a continuation of the prompt
device_map="auto"Spreads the model across available GPUs, and needs accelerate

Example

Run the first script with the prompt "Gravity is". The model carries on the sentence and the script prints the prompt together with its continuation. The text is plain prose, not an answer to a question.

For newcomers and experts

If you are new, this model completes text and does not take instructions. Try one short sentence start on CPU, then change it and compare what the model adds.

If you know the field, the card scores it against Qwen2.5-0.5B and SmolLM-360M with lighteval. It leads on HellaSwag, ARC, PIQA, MMLU cloze, CommonsenseQA and TriviaQA. Qwen2.5-0.5B is ahead on Winogrande and far ahead on GSM8K, at 33.4 against 3.2. An instruct version exists for chat.

  1. Your prompt text
  2. Tokenizer produces token IDs
  3. Model predicts next tokens
  4. Tokens decode to text
  5. Continuation is printed

Good to know

  • Language: English only
  • Size: 362M parameters in Safetensors
  • Family: 135M and 1.7B siblings exist, plus instruct versions
  • Community: other people have made 44 quantized and 139 fine-tuned versions
Zero-shot scores of SmolLM2-360M from the card
HellaSwag54.5 points
ARC average53.0 points
PIQA71.7 points
MMLU cloze35.8 points
CommonsenseQA38.0 points
TriviaQA16.9 points
Winogrande52.5 points
OpenBookQA37.4 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, instruction following or maths, since the card scores 3.2 on GSM8K

README and files

README

SmolLM2-360M

Continues English text from a prompt with a 362M-parameter base language model trained on 4 trillion tokens and light enough for on-device use. For developers who want a small base model to test 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-360M is the middle model of the SmolLM2 family, between the 135M and 1.7B versions. It is the base model, so it carries on the text you give it and does not follow chat instructions. It was trained on 4 trillion tokens drawn from FineWeb-Edu, DCLM, The Stack and extra filtered datasets.

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

Industry | Who uses it | How they use it | Example
Software | App developers | Try on-device text features with a compact model | Testing phrase completion offline
Education | Teachers and students | Learn how causal language models load and generate | A lab exercise on text continuation
Research | ML researchers | Fine-tune a small base model for a narrow task | Training it on a company's own documents
Benchmarking | Evaluators | Compare small models on common zero-shot tests | Checking scores against Qwen2.5-0.5B

Skip it if you need chat behaviour or maths, since the base model scores only 3.2 on GSM8K in the card.

Where to use it:

  • Python scripts with the transformers library
  • 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 continuation | Developers | A finished version of a short prompt
Fine-tuning start | Researchers | A mid-sized small model to train further
Local testing | Engineers | A model that runs on a laptop without a big GPU

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
  • About 724 MB for the BF16 weights, or about 181 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, generate and decode.
pip install transformers
pip install -U huggingface_hub
hf download HuggingFaceTB/SmolLM2-360M

How to use it: Load the tokenizer and model, send the model to your device, encode a short prompt and generate. The card gives one script at full precision and one in bfloat16.

# pip install transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
checkpoint = "HuggingFaceTB/SmolLM2-360M"
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]))
# pip install accelerate
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
checkpoint = "HuggingFaceTB/SmolLM2-360M"
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 | Converts text to token IDs and back
AutoModelForCausalLM | Loads the model weights
model.generate | Writes a continuation of the prompt
device_map="auto" | Spreads the model across available GPUs, and needs accelerate

Example: Run the first script with the prompt "Gravity is". The model carries on the sentence and the script prints the prompt together with its continuation. The text is plain prose, not an answer to a question.

For newcomers and experts: If you are new, this model completes text and does not take instructions. Try one short sentence start on CPU, then change it and compare what the model adds.

If you know the field, the card scores it against Qwen2.5-0.5B and SmolLM-360M with lighteval. It leads on HellaSwag, ARC, PIQA, MMLU cloze, CommonsenseQA and TriviaQA. Qwen2.5-0.5B is ahead on Winogrande and far ahead on GSM8K, at 33.4 against 3.2. An instruct version exists for chat.

Your prompt text
Tokenizer produces token IDs
Model predicts next tokens
Tokens decode to text
Continuation is printed

Good to know:

  • Language: English only
  • Size: 362M parameters in Safetensors
  • Family: 135M and 1.7B siblings exist, plus instruct versions
  • Community: other people have made 44 quantized and 139 fine-tuned versions
Title: Zero-shot scores of SmolLM2-360M from the card
HellaSwag: 54.5 points
ARC average: 53.0 points
PIQA: 71.7 points
MMLU cloze: 35.8 points
CommonsenseQA: 38.0 points
TriviaQA: 16.9 points
Winogrande: 52.5 points
OpenBookQA: 37.4 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, instruction following or maths, since the card scores 3.2 on GSM8K

On Hugging Face, 13 November 2026

  • Task: text generation
  • Library: transformers
  • Parameters: 362M
  • Weights: about 724 MB in BF16; about 181 MB at 4-bit (estimate)
  • Formats: Safetensors
  • Downloads in the last 30 days: 139,095
  • Likes: 146
  • License: apache-2.0
  • Languages: en
  • Quantized versions: 44
  • Fine-tunes: 139
  • Tags: transformers, safetensors, llama, text-generation

Links

Get the model

Download its files with Hugging Face's command line:

pip install -U huggingface_hub
hf download HuggingFaceTB/SmolLM2-360M

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

Files
README.md  6 KB

1 file, 6 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-13

Compare with similar

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

ProductDownloads, last 30 daysLikesParametersLicenseLast change
SmolLM2-360M This page139,095146362Mapache-2.0
SmolLM2-135MShares llama · text-generation · transformers2,596,139269135Mapache-2.0
MiniCPM5-2BShares llama · text-generation · transformers1,039,5181,8502.5Bapache-2.0
TinyLlama-1.1B-Chat-v1.0Shares llama · text-generation · transformers963,0571,9101.1Bapache-2.0
SmolLM2-135M-InstructShares llama · text-generation · transformers841,106474135Mapache-2.0
Hermes 3 Llama-3.1 8BShares llama · text-generation · transformers336,9535508Bllama3
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

upscaler

uwg · Kit

Holds a set of image upscaling models gathered from the OpenModelDB community, for people who want to enlarge low-resolution pictures with AI on their own comp…

New

Pixel Art XL

nerijs · Kit

A pixel art style add-on for Stable Diffusion XL that turns text prompts into pixel-style images, with an optional LCM LoRA for faster runs. For game makers, d…

New

VibeVoice-1.5B

microsoft · Kit

Turns written conversations into spoken audio with up to four speakers and about 90 minutes of speech, an open Microsoft text-to-speech model for research on p…

New

Similar in Developer

See all in Developer

voicetut-egyptian-tashkeel

masterofaudio2077 · Kit

Reads Egyptian Arabic text aloud and follows the short vowel marks you write into it. A fine-tune of VoiceTut-TTS that keeps its 19 built-in voices and voice c…

New

Runs Meta's Llama 3.1 8B Instruct chat model in 4-bit AWQ form, so it fits on a GPU with about 4 GiB of free memory for the weights. For developers who want a…

New

Ru-Jev

besktech · Kit

Scores a Russian-first decision from a context and a list of options, giving a probability for yes/no, choice or rating questions. Runs on a plain CPU, for tea…

New