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

SmolLM-1.7B

Date: 2026-11-14Commit: d7449ffSigned: 2DC28CC7B26A283B ✓

Text generation model with 1.7B parameters. Onnx and safetensors weights, 25.0 GB in all. Published by HuggingFaceTB under Apache-2.0.

1.7B params25.0GBSmolLM-1.7Bonnx safetensorspermissive
FactsParams1.7BSize25.0 GBFormatsonnx, safetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get HuggingFaceTB/SmolLM-1.7B
# manifest sha256 7fc0c99e9c43… · 25.0 GB · 21 files
$ fw verify ./SmolLM-1.7B HuggingFaceTB/SmolLM-1.7B
From sourceHosted (signed)HuggingFaceTB/SmolLM-1.7BLast 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
25.0 GB
Weights
6.85 GB (safetensors)
Parameters
1.7B
Formats
onnx, safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
21, 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 d7449ff. 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 SmolLM-1.7B

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-1.7B"
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-1.7B"
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: 3422.76 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-1.7B"
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: 1812.14 MB
# load_in_4bit
>>> print(f"Memory footprint: {model.get_memory_footprint() / 1e6:.2f} MB")
Memory footprint: 1006.84 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.

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.
  • Pretraining steps: 500k
  • Pretraining tokens: 1T
  • Precision: bfloat16

Hardware#

  • GPUs: 64 H100

Software#

License#

Apache 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

21 files · 25.0 GBWeights 6.85 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 21 files with their sha256
FileSizesha256
.gitattributes1.64 KB11766e5171641f6c68b9f14099fdb4e7b3d610f0a69451893e356c8334812257
README.md5.22 KBbf082678873aaea56fa343b3d2c9980e7ada0f0f169a208055976e04a658e312
config.json698 B4939e564b1c7f19d4054dee9c026347f8519b491d7957dba2ad155888b99f584
generation_config.json111 Bf0dad64c1b1cfd6fb54cc1eec23821a70a8bb67dcb023aa13b408652305e18f9
merges.txt466 KB0b54e8aa4e53d5383e2e4bc635a56b43f9647f7b13832d5d9ecd8f82dac4f510
model-00001-of-00002.safetensors5.00 GBe1ef4c6932383bd292ceead0ef7c0a02d80fc6cf8789dead997cdd4a24b82a9b
model-00002-of-00002.safetensors1.85 GB06405597b1023a8d70ed869e54a78c61fa8422b9eb52776bba63d7e5b2b56696
model.safetensors.index.json17.9 KBb292acb1a63a864b516cbb2367482b7cb036229a928f01b3d6d332d7dce84122
onnx/model.onnx564 KB2d62711ef7939d1fdf6d788c236cd4a6a941df405e539cb6d08401220bd57833
onnx/model.onnx_data6.85 GB4a32d2ff62dbd35773e7d813352f8239c308db228c8a607681ba9af784580680
onnx/model_bnb4.onnx1.31 GB324d439da0868aed771df9178b3dc71da5f551385255641577e4d900be79a89e
onnx/model_fp16.onnx806 MBd8f367467c7d3b70ff5e36c0f16bf04b4f77acecfa572065029ee913db7788de
onnx/model_fp16.onnx_data2.62 GB59c83f2e6b62fc6256268bc03e1098aefedd3222468a150d307805b002781e88
onnx/model_int8.onnx1.71 GBcc423bc2c6f6ba94c8cd244243a1046f7b16e88b9abcb08dfea79e497db94c31
onnx/model_q4.onnx1.41 GB54f8d6bf68dd8176a07aac1607d4cc11a34bc5b00aae07e1c8df5b46941aa170
onnx/model_quantized.onnx1.71 GBcc423bc2c6f6ba94c8cd244243a1046f7b16e88b9abcb08dfea79e497db94c31
onnx/model_uint8.onnx1.71 GBd5c61a9aa1128840ee3bb81f3547cdca6535a5af1193ecc7468e1876ededaae5
special_tokens_map.json831 Be786b595b9a23148bf1630df78d9037a048ea671e48bfd3549a1e3c233742bb3
tokenizer.json2.10 MB6ae489e54654605c859dec0fe2ba636baf64399dffe01ec44b3311778b269857
tokenizer_config.json3.66 KB2d9292f87357fec4a28f4e170533dfc712bfd1d16870f3d3d9afe0419859842a
vocab.json801 KB82b84012e3add4d01d12ba14442026e49b8cbbaead1f79ecf3d919784f82dc79
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
d7449ff724 pinned now manifest updated, same commit2026-11-14 21:11 UTC21 files · 25.0 GB
d7449ff7242026-11-14 21:11 UTC21 files · 25.0 GB

Use it

$ fw get HuggingFaceTB/SmolLM-1.7B
# manifest sha256 7fc0c99e9c43… · 25.0 GB · 21 files
$ fw verify ./SmolLM-1.7B HuggingFaceTB/SmolLM-1.7B
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/HuggingFaceTB/SmolLM-1.7B.json --dir ./SmolLM-1.7B $ python3 fw.py verify ./SmolLM-1.7B ./HuggingFaceTB__SmolLM-1.7B.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download HuggingFaceTB/SmolLM-1.7B --revision d7449ff7241c863f3e8accc475155f0f97afa011 --local-dir ./SmolLM-1.7B
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-1.7B", revision="d7449ff7241c863f3e8accc475155f0f97afa011") model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/SmolLM-1.7B", revision="d7449ff7241c863f3e8accc475155f0f97afa011", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve HuggingFaceTB/SmolLM-1.7B --revision d7449ff7241c863f3e8accc475155f0f97afa011

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
bf082678873aaea56fa343b3d2c9980e7ada0f0f169a208055976e04a658e312
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-1.7BDate: 2026-11-14Commit: d7449ffSigned: 2DC28CC7B26A283B ✓
Upstream
HuggingFaceTB/SmolLM-1.7B
Pinned commit
d7449ff7241c863f3e8accc475155f0f97afa011
Manifest
SmolLM-1.7B.json · .minisig
Manifest sha256
7fc0c99e9c43e8f45f43b006beba497ff1188d45d5db1e392e1f1e5433b2c212
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-1.7B.json $ curl -O https://freeweights.allternit.com/manifests/HuggingFaceTB/SmolLM-1.7B.json.minisig $ minisign -Vm SmolLM-1.7B.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

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

Quantizations
2
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download HuggingFaceTB/SmolLM-1.7B
Open in Freeweights Studio

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

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

Variants

2 quantized or adapter builds of SmolLM-1.7B. 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