alt.freeweights.smollm / SmolLM2-360M-ONNX
From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.smollmSubject:

SmolLM2-360M-ONNX

Date: 2026-11-15Commit: 539c108Signed: 2DC28CC7B26A283B ✓

Text generation model. Onnx weights, 4.29 GB in all. Published by onnx-community under Apache-2.0.

smollm4.29GBSmolLM2-360M-ONNXonnxpermissive
FactsParamsnot statedSize4.29 GBFormatsonnxTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get onnx-community/SmolLM2-360M-ONNX
# manifest sha256 db64a0c7a2d9… · 4.29 GB · 18 files
$ fw verify ./SmolLM2-360M-ONNX onnx-community/SmolLM2-360M-ONNX
From sourceHosted (signed)onnx-community/SmolLM2-360M-ONNXLast check: 2026-11-15 05:08 UTC

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

Quantized of SmolLM2-360M.

Works with

Runs with

Ranked by fit to this model (onnx), then by GitHub stars.

Convert with

Overview

Size
4.29 GB
Weights
272 MB (smallest of 8 ONNX variants)
Parameters
not stated
Formats
onnx
Task
text generation
License
Apache-2.0 (permissive)
Files
18, each with a sha256
Publisher
onnx-community
Added
2026-11-15
Section
alt.freeweights.smollm
Lineage

Original release from the publisher.

Base model: HuggingFaceTB/SmolLM2-360M

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-15 05:08 UTCpassed

Model card

From the publisher at commit 539c108. Shown as plain text with links; images open at the publisher.

SmolLM2-360M (ONNX)#

This is an ONNX version of HuggingFaceTB/SmolLM2-360M. It was automatically converted and uploaded using this Hugging Face Space.

Usage with Transformers.js#

See the pipeline documentation for text-generation: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.TextGenerationPipeline


SmolLM2#

Image: image/png

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 360M model was trained on 4 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 thanks to datasets developed by Argilla such as Synth-APIGen-v0.1.

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#
pip install transformers
Running the model on CPU/GPU/multi GPU#
  • Using full precision
# 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]))
  • Using torch.bfloat16
# 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]))
>>> print(f"Memory footprint: {model.get_memory_footprint() / 1e6:.2f} MB")
Memory footprint: 723.56 MB

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#

MetricsSmolLM2-360MQwen2.5-0.5BSmolLM-360M
HellaSwag54.551.251.8
ARC (Average)53.045.450.1
PIQA71.769.971.6
MMLU (cloze)35.833.734.4
CommonsenseQA38.031.635.3
TriviaQA16.94.39.1
Winogrande52.554.152.8
OpenBookQA37.437.437.2
GSM8K (5-shot)3.233.41.6

Instruction Model#

MetricSmolLM2-360M-InstructQwen2.5-0.5B-InstructSmolLM-360M-Instruct
IFEval (Average prompt/inst)41.031.619.8
MT-Bench3.664.163.37
HellaSwag52.148.047.9
ARC (Average)43.737.338.8
PIQA70.867.269.4
MMLU (cloze)32.831.730.6
BBH (3-shot)27.330.724.4
GSM8K (5-shot)7.4326.81.36

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: 4T
  • Precision: bfloat16
Hardware#
  • GPUs: 128 H100
Software#

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

18 files · 4.29 GBWeights 272 MB (smallest of 8 ONNX variants). Sizes and sha256 from the signed manifest.
Hide all 18 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md7.16 KB5a3b00481c50a2e5738d0092bd81a1fa5728b1a546dde68576478a4b83d9e186
config.json816 Bfd4f239695b96cd99128f7e5c7fbffc3178b4544ee9e293d537eeaecbe611c59
generation_config.json111 Baddd4686d6897e83795efec6d00f3a676d666dc62c7379165ebeb159350f39c0
merges.txt466 KB0b54e8aa4e53d5383e2e4bc635a56b43f9647f7b13832d5d9ecd8f82dac4f510
onnx/model.onnx1.45 GB09c211719c8c8c752b3aec0afc53bcb0f95402e575b2526b7a58f52da6bad620
onnx/model_bnb4.onnx367 MB41a5fbdcec65010b22f743fe5ac5aa21913e0e589348de4b6b9de11dd1484632
onnx/model_fp16.onnx725 MB9886fffb7df611903d8bb630ecfa1741a0871a3f50aee6d49bfa20ac2d3a2846
onnx/model_int8.onnx363 MBbc1c046af0e3b48fb54398d49a671586ec15e21b809b98d4394370a3653664f2
onnx/model_q4.onnx386 MB86d92ade1c30419ed0c081a674bb969eef81bc70725906cabc9eb1148f968ac2
onnx/model_q4f16.onnx272 MBed196149bd9f24de0aa78f2ce8c6fa1167f71de9857173d1a231a4cbc01fb1c0
onnx/model_quantized.onnx363 MBbc1c046af0e3b48fb54398d49a671586ec15e21b809b98d4394370a3653664f2
onnx/model_uint8.onnx363 MBaae78510f3d32327eeedf4a68f9e5d38b218beda147b67a5f8d5ae20ff2584a8
quantize_config.json312 B70f61db8708568fa3ee6e66ecbcfdb8a89b9069feadff679dea00b097e521c98
special_tokens_map.json831 Be786b595b9a23148bf1630df78d9037a048ea671e48bfd3549a1e3c233742bb3
tokenizer.json3.52 MB7d27c493c729a66ecefc837280b05d948b1ed50d130eebdbf911b1b36cf38ed7
tokenizer_config.json3.69 KBdc56f9ca2dd808c574d331a145e4e78b911eb1b53e2f7d95be284f2107ab8f70
vocab.json801 KB82b84012e3add4d01d12ba14442026e49b8cbbaead1f79ecf3d919784f82dc79
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
539c1088be pinned now2026-11-15 05:08 UTC18 files · 4.29 GB

Use it

$ fw get onnx-community/SmolLM2-360M-ONNX
# manifest sha256 db64a0c7a2d9… · 4.29 GB · 18 files
$ fw verify ./SmolLM2-360M-ONNX onnx-community/SmolLM2-360M-ONNX
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/onnx-community/SmolLM2-360M-ONNX.json --dir ./SmolLM2-360M-ONNX $ python3 fw.py verify ./SmolLM2-360M-ONNX ./onnx-community__SmolLM2-360M-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/SmolLM2-360M-ONNX --revision 539c1088be2dcd673c39059d25a6bc4aec625504 --local-dir ./SmolLM2-360M-ONNX

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-15
Text in
README.md
Text sha256
5a3b00481c50a2e5738d0092bd81a1fa5728b1a546dde68576478a4b83d9e186
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: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.smollmSubject: SmolLM2-360M-ONNXDate: 2026-11-15Commit: 539c108Signed: 2DC28CC7B26A283B ✓
Upstream
onnx-community/SmolLM2-360M-ONNX
Pinned commit
539c1088be2dcd673c39059d25a6bc4aec625504
Manifest
SmolLM2-360M-ONNX.json · .minisig
Manifest sha256
db64a0c7a2d982e44fbfa7c92ded258f48467d50348845e2b1e1b4a98ecdf68d
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:08 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/onnx-community/SmolLM2-360M-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/SmolLM2-360M-ONNX.json.minisig $ minisign -Vm SmolLM2-360M-ONNX.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-360M · this model is a quantization of it

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

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/SmolLM2-360M-ONNX
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. SmolLM2-360M-ONNX.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