Instructions to use SadikNawazAI/SmolLM-135M-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use SadikNawazAI/SmolLM-135M-Instruct-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf SadikNawazAI/SmolLM-135M-Instruct-GGUF:Q4_0 # Run inference directly in the terminal: llama cli -hf SadikNawazAI/SmolLM-135M-Instruct-GGUF:Q4_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf SadikNawazAI/SmolLM-135M-Instruct-GGUF:Q4_0 # Run inference directly in the terminal: llama cli -hf SadikNawazAI/SmolLM-135M-Instruct-GGUF:Q4_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf SadikNawazAI/SmolLM-135M-Instruct-GGUF:Q4_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf SadikNawazAI/SmolLM-135M-Instruct-GGUF:Q4_0
Use Docker
docker model run hf.co/SadikNawazAI/SmolLM-135M-Instruct-GGUF:Q4_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use SadikNawazAI/SmolLM-135M-Instruct-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SadikNawazAI/SmolLM-135M-Instruct-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SadikNawazAI/SmolLM-135M-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SadikNawazAI/SmolLM-135M-Instruct-GGUF:Q4_0
- Ollama
How to use SadikNawazAI/SmolLM-135M-Instruct-GGUF with Ollama:
ollama run hf.co/SadikNawazAI/SmolLM-135M-Instruct-GGUF:Q4_0
- Unsloth Desktop
- Docker Model Runner
How to use SadikNawazAI/SmolLM-135M-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/SadikNawazAI/SmolLM-135M-Instruct-GGUF:Q4_0
- Lemonade
How to use SadikNawazAI/SmolLM-135M-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull SadikNawazAI/SmolLM-135M-Instruct-GGUF:Q4_0
Run and chat with the model
lemonade run user.SmolLM-135M-Instruct-GGUF-Q4_0
List all available models
lemonade list
- Atomic Chat
SmolLM-135M-Instruct β Q4_0 GGUF
GGUF conversion of HuggingFaceTB/SmolLM-135M-Instruct, a 135M-parameter instruction-tuned model from Hugging Face's SmolLM series.
At ~87 MiB this is about as small as a working chat model gets: it loads in under a second, runs inside a browser tab, and needs almost no RAM. Perfect for smoke tests, demos, edge devices, and teaching how inference works β not for production answers.
Files
| File | Quant | Size | Bits/weight |
|---|---|---|---|
SmolLM-135M-Instruct-Q4_0.gguf |
Q4_0 | 91,727,296 B (87.5 MiB) | ~4.5 |
- SHA-256:
eb2c714d40d4b35ba4b8ee98475a06d51d8080a17d2d2a75a23665985c739b94 - Architecture: Llama (
llama) - Parameters: ~135M (30 layers, hidden 576, 9 heads / 3 KV heads, FFN 1536, head dim 64)
- Context length: 2,048 tokens
- Vocabulary: 49,152 (GPT-2 BPE)
- Chat template: ChatML (
<|im_start|>/<|im_end|>) β embedded in the GGUF - GGUF version: 3
Usage
llama.cpp
llama-cli -m SmolLM-135M-Instruct-Q4_0.gguf --ctx-size 2048 -cnv
Ollama
ollama run hf.co/SadikNawazAI/SmolLM-135M-Instruct-GGUF:Q4_0
Python (llama-cpp-python)
from llama_cpp import Llama
llm = Llama.from_pretrained(
repo_id="SadikNawazAI/SmolLM-135M-Instruct-GGUF",
filename="SmolLM-135M-Instruct-Q4_0.gguf",
n_ctx=2048,
)
out = llm.create_chat_completion(
messages=[{"role": "user", "content": "What is the capital of France?"}],
max_tokens=64,
temperature=0.6,
)
print(out["choices"][0]["message"]["content"])
Recommended sampling
temperature 0.6β0.8, top_p 0.9, repeat_penalty 1.1. Keep prompts short β the model was trained
on short single-turn and multi-turn English conversations and degrades quickly with long context.
Provenance
| Step | Source |
|---|---|
| Base model | HuggingFaceTB/SmolLM-135M-Instruct (Apache-2.0) |
| GGUF build | Ollama library conversion (smollm:135m), extracted from the local Ollama blob store |
| Mirror | SadikNawazAI/SmolLM-135M-Instruct-GGUF |
This is Ollama's own GGUF build, taken directly from the smollm:135m manifest
(application/vnd.ollama.image.model layer). Other Q4_0 conversions of the same model exist and
differ by a few hundred bytes; this one is not a byte-identical copy of them.
License
Apache License 2.0 β see LICENSE. Model weights Β© Hugging Face (SmolLM team).
Limitations
- 135M parameters: very limited knowledge, frequent hallucinations, weak arithmetic.
- English only, short context (2k), no tool calling.
- Best treated as a toy / test model rather than an assistant you rely on.
- For a usable small chat model at a similar size, prefer Qwen2.5-0.5B-Instruct (0.37 GiB).
- Downloads last month
- 78
4-bit
Model tree for SadikNawazAI/SmolLM-135M-Instruct-GGUF
Base model
HuggingFaceTB/SmolLM-135M