From: HuggingFaceTB <huggingface.co/HuggingFaceTB>Newsgroups: alt.freeweights.smollmSubject:

SmolLM-360M

Date: 2026-11-14Commit: 59f7ef2Signed: 2DC28CC7B26A283B ✓

Text generation model with 362M parameters. Onnx and safetensors weights, 5.47 GB in all. Published by HuggingFaceTB under Apache-2.0.

362M params5.47GBSmolLM-360Monnx safetensorspermissive
FactsParams362MSize5.47 GBFormatsonnx, safetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get HuggingFaceTB/SmolLM-360M
# manifest sha256 06353e7dddcd… · 5.47 GB · 17 files
$ fw verify ./SmolLM-360M HuggingFaceTB/SmolLM-360M
From sourceHosted (signed)HuggingFaceTB/SmolLM-360MLast check: 2026-11-14 21:11 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Overview

Size
5.47 GB
Weights
1.45 GB (safetensors)
Parameters
362M
Formats
onnx, safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
17, each with a sha256
Publisher
HuggingFaceTB
Added
2026-11-14
Section
alt.freeweights.smollm
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-14 21:11 UTCpassed

Model card

From the publisher at commit 59f7ef2. Shown as plain text with links; images open at the publisher.

SmolLM#

Image: SmolLM

Table of Contents#

  1. Model Summary
  2. Limitations
  3. Training
  4. License
  5. Citation

Model Summary#

SmolLM is a series of state-of-the-art small language models available in three sizes: 135M, 360M, and 1.7B parameters. These models are built on Cosmo-Corpus, a meticulously curated high-quality training dataset. Cosmo-Corpus includes Cosmopedia v2 (28B tokens of synthetic textbooks and stories generated by Mixtral), Python-Edu (4B tokens of educational Python samples from The Stack), and FineWeb-Edu (220B tokens of deduplicated educational web samples from FineWeb). SmolLM models have shown promising results when compared to other models in their size categories across various benchmarks testing common sense reasoning and world knowledge. For detailed information on training, benchmarks and performance, please refer to our full blog post.

This is the SmolLM-360M

Generation#
pip install transformers
Running the model on CPU/GPU/multi GPU#
  • Using full precision
# pip install transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
checkpoint = "HuggingFaceTB/SmolLM-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("def print_hello_world():", return_tensors="pt").to(device)
outputs = model.generate(inputs)
print(tokenizer.decode(outputs[0]))

* _Using `torch.bfloat16`_

pip install accelerate#

import torch from transformers import AutoTokenizer, AutoModelForCausalLM checkpoint = "HuggingFaceTB/SmolLM-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("def print_hello_world():", return_tensors="pt").to("cuda") outputs = model.generate(inputs) print(tokenizer.decode(outputs[0]))

print(f"Memory footprint: {model.get_memory_footprint() / 1e6:.2f} MB")

Memory footprint: 723.56 MB


#### Quantized Versions through `bitsandbytes`
* _Using 8-bit precision (int8)_

pip install bitsandbytes accelerate#

from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig

to use 4bit use load_in_4bit=True instead#

quantization_config = BitsAndBytesConfig(load_in_8bit=True) checkpoint = "HuggingFaceTB/SmolLM-360M" tokenizer = AutoTokenizer.from_pretrained(checkpoint) model = AutoModelForCausalLM.from_pretrained(checkpoint, quantization_config=quantization_config) inputs = tokenizer.encode("def print_hello_world():", return_tensors="pt").to("cuda") outputs = model.generate(inputs) print(tokenizer.decode(outputs[0]))

print(f"Memory footprint: {model.get_memory_footprint() / 1e6:.2f} MB")

load_in_8bit#

Memory footprint: 409.07 MB

load_in_4bit#

print(f"Memory footprint: {model.get_memory_footprint() / 1e6:.2f} MB")

Memory footprint: 251.79 MB


# Limitations

While SmolLM models have been trained on a diverse dataset including educational content and synthetic texts, they have limitations. The 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. For a more comprehensive discussion of the models' capabilities and limitations, please refer to our full [blog post](https://huggingface.co/blog/smollm)..

This repository contains a converted version of our latest trained model. We've noticed a small performance difference between this converted checkpoint (transformers) and the original (nanotron). We're currently working to resolve this issue.
# Training

## Model

- **Architecture:** For architecture detail, see the [blog post](https://huggingface.co/blog/smollm).
- **Pretraining steps:** 600k
- **Pretraining tokens:** 600B
- **Precision:** bfloat16
- **Tokenizer:** [HuggingFaceTB/cosmo2-tokenizer](https://huggingface.co/HuggingFaceTB/cosmo2-tokenizer)


## Hardware

- **GPUs:** 64 H100

## Software

- **Training Framework:** [Nanotron](https://github.com/huggingface/nanotron/tree/main)

# License

[Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)

# Citation

@misc{allal2024SmolLM, title={SmolLM - blazingly fast and remarkably powerful}, author={Loubna Ben Allal and Anton Lozhkov and Elie Bakouch and Leandro von Werra and Thomas Wolf}, year={2024}, }

Files

17 files · 5.47 GBWeights 1.45 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 17 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md5.33 KB1f03176eae955857422df45d8a010a1f6dea5bee20c0ce9e6a87cb77281b0e2c
config.json725 Bfe61811079ce3d217e9ffda059c4880f26290e6ec428bb1b4454b7a60e0a231e
generation_config.json111 Bd0df27778d7caa8acc0c2d8eb5cfc11135da6226dbae8c12cc85d0ce6067faaa
merges.txt466 KB0b54e8aa4e53d5383e2e4bc635a56b43f9647f7b13832d5d9ecd8f82dac4f510
model.safetensors1.45 GBe91f05d8506ee5efbd8c0fbfc1799c49af2b2f2cce824bc2d801d5af2a716cc2
onnx/model.onnx1.45 GBf6f1f35ffad3f46f1bc643f428d9406c940b6f0228e5161b096eabd486ebd6f1
onnx/model_bnb4.onnx367 MBd3fe6f80fdd69e731caff803c9b5e5b7481b87002d52ce0fe72ba8c7d1196389
onnx/model_fp16.onnx725 MB1ed8065d648e798752e6a3fb4fb3cea97b3bddee17462e1c8c2456c74d678cb6
onnx/model_int8.onnx363 MB0441b9ae5482fdd0f1998763a28fa24f3946dfca37ef5db2e47a7a16955e508c
onnx/model_q4.onnx387 MB5a01e9e92df5c2d1e8ae297bdbcc0a648ca69774b8fa2f5ec8d7cb8c805a08ba
onnx/model_quantized.onnx363 MB0441b9ae5482fdd0f1998763a28fa24f3946dfca37ef5db2e47a7a16955e508c
onnx/model_uint8.onnx363 MB1093c22f701af8728c46bc83a660cd234edcc23c28edd329a00b63efffde12a4
special_tokens_map.json831 Be786b595b9a23148bf1630df78d9037a048ea671e48bfd3549a1e3c233742bb3
tokenizer.json2.10 MB9ca9acddb6525a194ec8ac7a87f24fbba7232a9a15ffa1af0c1224fcd888e47c
tokenizer_config.json3.69 KB238ad6b60d48e471624ea70bc79e92f2611844d5016471fee8c167854bcb98e8
vocab.json801 KB82b84012e3add4d01d12ba14442026e49b8cbbaead1f79ecf3d919784f82dc79
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
59f7ef243e pinned now manifest updated, same commit2026-11-14 21:11 UTC17 files · 5.47 GB
59f7ef243e2026-11-14 21:11 UTC17 files · 5.47 GB

Use it

$ fw get HuggingFaceTB/SmolLM-360M
# manifest sha256 06353e7dddcd… · 5.47 GB · 17 files
$ fw verify ./SmolLM-360M HuggingFaceTB/SmolLM-360M
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/HuggingFaceTB/SmolLM-360M.json --dir ./SmolLM-360M $ python3 fw.py verify ./SmolLM-360M ./HuggingFaceTB__SmolLM-360M.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download HuggingFaceTB/SmolLM-360M --revision 59f7ef243ee09a72cbc14cb054393a3e3b771d41 --local-dir ./SmolLM-360M
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("HuggingFaceTB/SmolLM-360M", revision="59f7ef243ee09a72cbc14cb054393a3e3b771d41") model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/SmolLM-360M", revision="59f7ef243ee09a72cbc14cb054393a3e3b771d41", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve HuggingFaceTB/SmolLM-360M --revision 59f7ef243ee09a72cbc14cb054393a3e3b771d41

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-14
Text in
README.md
Text sha256
1f03176eae955857422df45d8a010a1f6dea5bee20c0ce9e6a87cb77281b0e2c
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: HuggingFaceTB <huggingface.co/HuggingFaceTB>Newsgroups: alt.freeweights.smollmSubject: SmolLM-360MDate: 2026-11-14Commit: 59f7ef2Signed: 2DC28CC7B26A283B ✓
Upstream
HuggingFaceTB/SmolLM-360M
Pinned commit
59f7ef243ee09a72cbc14cb054393a3e3b771d41
Manifest
SmolLM-360M.json · .minisig
Manifest sha256
06353e7dddcd7933ac4717caeb758e65ba1d4c0245915c71c1bf717c1423e008
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:11 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/HuggingFaceTB/SmolLM-360M.json $ curl -O https://freeweights.allternit.com/manifests/HuggingFaceTB/SmolLM-360M.json.minisig $ minisign -Vm SmolLM-360M.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

4 models in the catalog name this one as their parent.

Fine-tunes
1
Quantizations
3
Fine-tunes 1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download HuggingFaceTB/SmolLM-360M
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. SmolLM-360M.json. Provenance. Takedown history: none.

Variants

3 quantized or adapter builds of SmolLM-360M. Each has its own license check and page.

From: HuggingFaceTB <huggingface.co/HuggingFaceTB>Subject: 135M-lc-100k-rope-12B
From: nisten <huggingface.co/nisten>Subject: Biggie-SmoLlm-0.4B
From: onnx-community <huggingface.co/onnx-community>Subject: Biggie-SmoLlm-0.4B-ONNX
From: unsloth <huggingface.co/unsloth>Subject: SmolLM-1.7B-bnb-4bit
From: unsloth <huggingface.co/unsloth>Subject: SmolLM-1.7B-Instruct
From: unsloth <huggingface.co/unsloth>Subject: SmolLM-135M-bnb-4bit