alt.freeweights.smollm / SmolLM2-1.7B-Instruct-16k
From: HuggingFaceTB <huggingface.co/HuggingFaceTB>Newsgroups: alt.freeweights.smollmSubject:

SmolLM2-1.7B-Instruct-16k

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

Text generation model with 1.7B parameters. Safetensors weights, 3.43 GB in all. Published by HuggingFaceTB under Apache-2.0.

1.7B params3.43GBSmolLM2-1.7B-Instruct-16ksafetensorspermissive
FactsParams1.7BSize3.43 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get HuggingFaceTB/SmolLM2-1.7B-Instruct-16k
# manifest sha256 f14bbed7dbcc… · 3.43 GB · 14 files
$ fw verify ./SmolLM2-1.7B-Instruct-16k HuggingFaceTB/SmolLM2-1.7B-Instruct-16k
From sourceHosted (signed)HuggingFaceTB/SmolLM2-1.7B-Instruct-16kLast check: 2026-11-14 21:11 UTC

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

Fine-tune of SmolLM2-1.7B-Instruct-16k.

Works with

Overview

Size
3.43 GB
Weights
3.42 GB (safetensors)
Parameters
1.7B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
14, each with a sha256
Publisher
HuggingFaceTB
Added
2026-11-14
Section
alt.freeweights.smollm
Lineage

Original release from the publisher.

Base model: HuggingFaceTB/SmolLM2-1.7B-Instruct-16k

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 e617673. Shown as plain text with links; images open at the publisher.

SmolLM2-1.7B-Instruct-16k#

This is a 16k context version of SmolLM2-1.7B-Instruct, which originnaly only supported 8k context. We finetune the model on 15k samples consisting of a subset of SmolTalk, LongAlign and SeaLong datasets and increase RoPE from 100k to 500k. This improves the evaluation on HELMET on 8k and 16k context with a small degradation on short context

MetricSmolLM2-1.7B-InstructSmolLM2-1.7B-Instruct-16k
Avg HELMET 8k35.8737.24
Avg HELMET 16k/32.40
Avg Short35.7132.06
GSM8K (5-shot)48.1444.27
MATH20.1218.22
ARC (Average)47.5551.52
IFEval (Average)47.540.29

We report the average on HELMET's: RAG, ICL, Re-rank and LongQA tasks.

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.02737v1

The 1.7B variant demonstrates significant advances over its predecessor SmolLM1-1.7B, particularly in instruction following, knowledge, reasoning, and mathematics. It was trained on 11 trillion tokens using a diverse dataset combination: FineWeb-Edu, DCLM, The Stack, along with new mathematics and coding datasets that 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 thanks to datasets developed by Argilla such as Synth-APIGen-v0.1. You can find the SFT dataset here: https://huggingface.co/datasets/HuggingFaceTB/smoltalk.

For more details refer to: https://github.com/huggingface/smollm. You will find pre-training, post-training, evaluation and local inference code.

How to use#
Transformers#
pip install transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
checkpoint = "HuggingFaceTB/SmolLM2-1.7B-Instruct-16k"

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)

messages = [{"role": "user", "content": "What is the capital of France."}]
input_text=tokenizer.apply_chat_template(messages, tokenize=False)
inputs = tokenizer.encode(input_text, return_tensors="pt").to(device)
outputs = model.generate(inputs, max_new_tokens=50, temperature=0.2, top_p=0.9, do_sample=True)
print(tokenizer.decode(outputs[0]))

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.

License#

Apache 2.0

Citation#

@misc{allal2025smollm2smolgoesbig,
      title={SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Model}, 
      author={Loubna Ben Allal and Anton Lozhkov and Elie Bakouch and Gabriel Martín Blázquez and Guilherme Penedo and Lewis Tunstall and Andrés Marafioti and Hynek Kydlíček and Agustín Piqueres Lajarín and Vaibhav Srivastav and Joshua Lochner and Caleb Fahlgren and Xuan-Son Nguyen and Clémentine Fourrier and Ben Burtenshaw and Hugo Larcher and Haojun Zhao and Cyril Zakka and Mathieu Morlon and Colin Raffel and Leandro von Werra and Thomas Wolf},
      year={2025},
      eprint={2502.02737},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2502.02737}, 
}

Files

14 files · 3.43 GBWeights 3.42 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 14 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md5.04 KBd5d7f4e09579d5c78c933c39d862d640158de642cbd50902287e5ec12f4d459e
all_results.json218 B52b1cebb53a31f684dc1e4fd6b62a4836548860a5b216437c98a5b99a714e695
config.json882 B75aaa7c7eeb3b2396bd8ea687f95d74dbe27bfd512c0216fa5433d9dd2e8c5d7
generation_config.json132 B5824b9826bb2e3c5bb1958fec063a8f946cb4853fad887cc765b4a708132c80b
merges.txt466 KB0b54e8aa4e53d5383e2e4bc635a56b43f9647f7b13832d5d9ecd8f82dac4f510
model.safetensors3.42 GB17b31f0cd32d70f0c46092b41d044d46991a901438af30fa10036387b154509e
special_tokens_map.json655 B2b7379f3ae813529281a5c602bc5a11c1d4e0a99107aaa597fe936c1e813ca52
tokenizer.json3.52 MB7d27c493c729a66ecefc837280b05d948b1ed50d130eebdbf911b1b36cf38ed7
tokenizer_config.json3.62 KB86c6c7c92e1f2b877631131dabf3b6899a442e882906038249975bfbde43a1cc
train_results.json218 B52b1cebb53a31f684dc1e4fd6b62a4836548860a5b216437c98a5b99a714e695
trainer_state.json9.43 KBcd7d549f2a697cd094a15315af9f56ec125074d4c4b189e550293eaaca4ecb88
training_args.bin7.29 KBbf1cc166749728cf7e68ae971019ba8107377034f0a50c697f402de8298515f0
vocab.json801 KB82b84012e3add4d01d12ba14442026e49b8cbbaead1f79ecf3d919784f82dc79
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
e6176739e9 pinned now manifest updated, same commit2026-11-14 21:11 UTC14 files · 3.43 GB
e6176739e92026-11-14 21:11 UTC14 files · 3.43 GB

Use it

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

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
d5d7f4e09579d5c78c933c39d862d640158de642cbd50902287e5ec12f4d459e
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: SmolLM2-1.7B-Instruct-16kDate: 2026-11-14Commit: e617673Signed: 2DC28CC7B26A283B ✓
Upstream
HuggingFaceTB/SmolLM2-1.7B-Instruct-16k
Pinned commit
e6176739e9ab04f510137531200981d8401263f9
Manifest
SmolLM2-1.7B-Instruct-16k.json · .minisig
Manifest sha256
f14bbed7dbcc6b35f70520f8d7d6bb7ac0e809f6933ab1cd11addfe1dde2306b
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/SmolLM2-1.7B-Instruct-16k.json $ curl -O https://freeweights.allternit.com/manifests/HuggingFaceTB/SmolLM2-1.7B-Instruct-16k.json.minisig $ minisign -Vm SmolLM2-1.7B-Instruct-16k.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

Parent

HuggingFaceTB/SmolLM2-1.7B-Instruct-16k · this model is a finetune of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download HuggingFaceTB/SmolLM2-1.7B-Instruct-16k
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. SmolLM2-1.7B-Instruct-16k.json. Provenance. Takedown history: none.
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