alt.freeweights.smollm / SmolLM-135M-bnb-4bit
From: unsloth <huggingface.co/unsloth>Newsgroups: alt.freeweights.smollmSubject:

SmolLM-135M-bnb-4bit

Date: 2026-11-15Commit: 0d9103cSigned: 2DC28CC7B26A283B ✓

Text generation model with 138M parameters. Safetensors weights, 115 MB in all. Published by unsloth under Apache-2.0.

138M params115MBSmolLM-135M-bnb-4bitsafetensorspermissive
FactsParams138MSize115 MBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get unsloth/SmolLM-135M-bnb-4bit
# manifest sha256 083d91804810… · 115 MB · 10 files
$ fw verify ./SmolLM-135M-bnb-4bit unsloth/SmolLM-135M-bnb-4bit
From sourceHosted (signed)unsloth/SmolLM-135M-bnb-4bitLast check: 2026-11-15 05:04 UTC

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

Quantized of SmolLM-135M.

Runs withAIBrixBentoMLCTranslate2ExLlamaV2ExLlamaV3exofastllmFlashInfergpu-unlockKTransformersLitServeLMCacheLMDeployLocalAImistral.rsMLC LLMMooncakeSGLangText Generation WebUItinygradTransformersTriton Inference ServervLLMXinferenceFine-tune withAccelerateAlignment HandbookAxolotlColossal-AIDeepSpeedEasyR1FlashAttentionH2O LLM StudioJAXKerasLiger KernelLitGPTLLaMA-FactoryMegatron-LMms-swiftnanotronOLMo-coreOpenRLHFOumiPEFTPyTorch Lightningsd-scriptsSimpleTunerTorchTitantorchtuneTransformer EngineTRLUnslothverlConvert withAQLMAutoRoundCore ML ToolsExecuTorchGPTQModelLLM CompressormergekitNeural CompressorOliveONNXOptimum QuantoOptimumsafetensorsTensorRT Model OptimizertorchaoEvaluate withAutoevalsDeepEvalEvaluateHELMLightEvallm-evaluation-harnessOpenCompassOpikRagassimple-evalsSWE-benchTruLensWeaveScan withAgentDojoAI Fairness 360DeepTeamDetoxifyFairlearngarakGiskardGuardrailsMCP ScannerModelScanNeMo GuardrailspicklescanpromptfooWorks withAgent Development KitAG2Google AI Edge GalleryAiderany-llmAnythingLLMBAMLbrowser-useCAMELHugging Face Chat UIChatboxCherry StudioClineCodex CLICogneeCrewAIDeerFlowDSPyEnchantedGemini CLIGitHub MCP ServergooseGPT ResearcherGradioGraphitiGuidanceHollamaInstructorKilo CodeLangflowLangGraphLiteLLMLlamaIndexLLMLocalAGILoLLMs WebUIMCP Python SDKMem0MetaGPTNextChatOllama JavaScriptOllama PythonOpenAI Agents SDKopencodeOpenHandsotermOutlinesPage AssistPlaywright MCPPortkey AI GatewayPrivateGPTQwen CodeRWKV RunnerSemantic KernelsmolagentsStrands AgentsVaneXGrammar

Overview

Size
115 MB
Weights
112 MB (safetensors)
Parameters
138M
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
10, each with a sha256
Publisher
unsloth
Added
2026-11-15
Section
alt.freeweights.smollm
Lineage

Original release from the publisher.

Base model: HuggingFaceTB/SmolLM-135M

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:04 UTCpassed

Model card

From the publisher at commit 0d9103c. Shown as plain text with links; images open at the publisher.

Finetune Llama 3.1, Gemma 2, Mistral 2-5x faster with 70% less memory via Unsloth!#

We have a free Google Colab Tesla T4 notebook for Llama 3.1 (8B) here - also works for SmolLM!: https://colab.research.google.com/drive/1Ys44kVvmeZtnICzWz0xgpRnrIOjZAuxp?usp=sharing

https://discord.gg/unsloth https://github.com/unslothai/unsloth

✨ Finetune for Free#

All notebooks are beginner friendly! Add your dataset, click "Run All", and you'll get a 2x faster finetuned model which can be exported to GGUF, vLLM or uploaded to Hugging Face.

Unsloth supportsFree NotebooksPerformanceMemory use
Llama-3.1 8b▶️ Start on Colab2.4x faster58% less
Phi-3.5 (mini)▶️ Start on Colab2x faster50% less
Gemma-2 9b▶️ Start on Colab2.4x faster58% less
Mistral 7b▶️ Start on Colab2.2x faster62% less
TinyLlama▶️ Start on Colab3.9x faster74% less
DPO - Zephyr▶️ Start on Colab1.9x faster19% less

SmolLM-1.7B-Instruct#

Image: SmolLM

Model Summary#

SmolLM is a series of small language models available in three sizes: 135M, 360M, and 1.7B parameters.

These models are pre-trained on SmolLM-Corpus, a curated collection of high-quality educational and synthetic data designed for training LLMs. For further details, we refer to our blogpost.

To build SmolLM-Instruct, we finetuned the base models on publicly available datasets.

Changelog#

|Release|Description|

|-|-|

|v0.1| Initial release of SmolLM-Instruct. We finetune on the permissive subset of the WebInstructSub dataset, combined with StarCoder2-Self-OSS-Instruct. Then, we perform DPO (Direct Preference Optimization) for one epoch on HelpSteer for the 135M and 1.7B models, and argilla/dpo-mix-7k for the 360M model.|

|v0.2| We changed the finetuning mix to datasets more suitable for smol models. We train on a new dataset of 2k simple everyday conversations we generated by llama3.1-70B everyday-conversations-llama3.1-2k, Magpie-Pro-300K-Filtered, StarCoder2-Self-OSS-Instruct, and a small subset of OpenHermes-2.5|

v0.2 models are better at staying on topic and responding appropriately to standard prompts, such as greetings and questions about their role as AI assistants. SmolLM-360M-Instruct (v0.2) has a 63.3% win rate over SmolLM-360M-Instruct (v0.1) on AlpacaEval. You can find the details here.

You can load v0.1 checkpoint by specifying revision="v0.1" in the transformers code:

model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/SmolLM-1.7B-Instruct", revision="v0.1")

Usage#

Local Applications#

⚡ For local applications, you can find optimized implementations of the model in MLC, GGUF and Transformers.js formats, in addition to fast in-browser demos in this collection: https://huggingface.co/collections/HuggingFaceTB/local-smollms-66c0f3b2a15b4eed7fb198d0

We noticed that 4bit quantization degrades the quality of the 135M and 360M, so we use q016 for MLC and ONNX/Transformers.js checkpoints for the WebGPU demos. We also suggest using temperature 0.2 and top-p 0.9.

Transformers#
pip install transformers
# pip install transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
checkpoint = "HuggingFaceTB/SmolLM-1.7B-Instruct"

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)
print(input_text)
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]))
Chat in TRL#

You can also use the TRL CLI to chat with the model from the terminal:

pip install trl
trl chat --model_name_or_path HuggingFaceTB/SmolLM-1.7B-Instruct --device cpu

Limitations#

Additionally, the generated content may not always be factually accurate, logically consistent, or free from biases present in the training data, we invite users to leverage them as assistive tools rather than definitive sources of information. We find that they can handle general knowledge questions, creative writing and basic Python programming. But they are English only and may have difficulty with arithmetics, editing tasks and complex reasoning. For more details about the models' capabilities, please refer to our blog post.

Training parameters#

We train the models using the alignment-handbook with the datasets mentioned in the changelog, using these parameters v0.2 (most of them are from Zephyr Gemma recipe):

  • 1 epoch
  • lr 1e-3
  • cosine schedule
  • warmup ratio 0.1
  • global batch size 262k tokens

You can find the training recipe here: https://github.com/huggingface/alignment-handbook/tree/smollm/recipes/smollm

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

10 files · 115 MBWeights 112 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 10 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md8.31 KBae66df2258c316c8fcd37b7cf623618adc7bb0582fa9963c41f4693921159966
config.json1.18 KBbdf2d816c963c5e50ce16943c61e7191cfceefccd1b234963a7833ce7468965b
generation_config.json111 Be4a8bc688f4adf91d345546aa0773f8ca0b59481c76926a6f3bb27d5b95f0540
merges.txt466 KB0b54e8aa4e53d5383e2e4bc635a56b43f9647f7b13832d5d9ecd8f82dac4f510
model.safetensors112 MB4309b043847d2e05045a8d432a2db8bb1bba9e5dca4b125feaa9d1c3760ab701
special_tokens_map.json978 B8f7b2d09817862e171215e50d1643c2197c148a2cb50efe5f61348d724eb2642
tokenizer.json2.10 MB9ca9acddb6525a194ec8ac7a87f24fbba7232a9a15ffa1af0c1224fcd888e47c
tokenizer_config.json3.74 KB07a8d6d3c90dbf04f43e1245dbafacc63b1dafc739dc7a5768dd14643bd05f91
vocab.json801 KB82b84012e3add4d01d12ba14442026e49b8cbbaead1f79ecf3d919784f82dc79
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
0d9103c2a0 pinned now2026-11-15 05:04 UTC10 files · 115 MB

Use it

$ fw get unsloth/SmolLM-135M-bnb-4bit
# manifest sha256 083d91804810… · 115 MB · 10 files
$ fw verify ./SmolLM-135M-bnb-4bit unsloth/SmolLM-135M-bnb-4bit
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/unsloth/SmolLM-135M-bnb-4bit.json --dir ./SmolLM-135M-bnb-4bit $ python3 fw.py verify ./SmolLM-135M-bnb-4bit ./unsloth__SmolLM-135M-bnb-4bit.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download unsloth/SmolLM-135M-bnb-4bit --revision 0d9103c2a099bd4d9774f5f854fe3b1c175e970a --local-dir ./SmolLM-135M-bnb-4bit
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("unsloth/SmolLM-135M-bnb-4bit", revision="0d9103c2a099bd4d9774f5f854fe3b1c175e970a") model = AutoModelForCausalLM.from_pretrained("unsloth/SmolLM-135M-bnb-4bit", revision="0d9103c2a099bd4d9774f5f854fe3b1c175e970a", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve unsloth/SmolLM-135M-bnb-4bit --revision 0d9103c2a099bd4d9774f5f854fe3b1c175e970a

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
ae66df2258c316c8fcd37b7cf623618adc7bb0582fa9963c41f4693921159966
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: unsloth <huggingface.co/unsloth>Newsgroups: alt.freeweights.smollmSubject: SmolLM-135M-bnb-4bitDate: 2026-11-15Commit: 0d9103cSigned: 2DC28CC7B26A283B ✓
Upstream
unsloth/SmolLM-135M-bnb-4bit
Pinned commit
0d9103c2a099bd4d9774f5f854fe3b1c175e970a
Manifest
SmolLM-135M-bnb-4bit.json · .minisig
Manifest sha256
083d91804810e2b3febbb965f5303b58d71ff8dc4bbe0fb02f0c9a3da8cbd7e9
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:04 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/unsloth/SmolLM-135M-bnb-4bit.json $ curl -O https://freeweights.allternit.com/manifests/unsloth/SmolLM-135M-bnb-4bit.json.minisig $ minisign -Vm SmolLM-135M-bnb-4bit.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/SmolLM-135M · 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 unsloth/SmolLM-135M-bnb-4bit
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. SmolLM-135M-bnb-4bit.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: mlx-community <huggingface.co/mlx-community>Subject: SmolLM-135M-Instruct-4bit