Best Small Language Models 2026: Top SLMs Ranked (1B-14B)
Want to go deeper than this article?
Free account unlocks the first chapter of all 25 courses — RAG, agents, MCP, voice AI, MLOps, real GitHub repos.
Go from reading about AI to building with AI 20 structured courses. Hands-on projects. Runs on your machine. Start free.
Best Small Language Models 2026: Top 3 Picks
Short answer: Phi-4 (14B) is the overall best SLM — 84.8% MMLU, beating GPT-4o on math, and it fits on a 12GB GPU. For 8GB hardware, Phi-4-mini (3.8B) is the best small reasoner (~3GB VRAM at Q4), and Gemma 3 4B is the best pick if you need multimodal/vision or 140+ languages. All three run free in Ollama. New this year: Google's Gemma 4 E2B/E4B edge models (April 2026) and the multimodal Qwen 3.5 4B/9B, both ranked below. Full ranked table below.
| Model | Params | MMLU | VRAM (Q4) |
|---|---|---|---|
| Phi-4 | 14B | 84.8% | ~10GB |
| Phi-4-mini | 3.8B | 67.3% | ~3GB |
| Llama 3.2 | 3B | 63.4% | ~2GB |
| Gemma 3 | 4B | 59.6% | ~3GB |
| Qwen 3 | 4B | ~70%* | ~3GB |
Reading articles is good. Building is better.
Free account = 20+ free chapters across 25 courses, with a per-chapter AI tutor. No card. Cancel anytime if you ever upgrade.
What Are Small Language Models?
Small Language Models (SLMs) are AI models under ~10 billion parameters designed to run efficiently on consumer hardware. Unlike massive LLMs requiring datacenter GPUs, SLMs run on:
- Laptops with 8GB VRAM
- Mobile phones (Pixel 9, iPhone)
- Edge devices and IoT
- Browsers via WebLLM
Why SLMs Matter in 2026
| Advantage | Impact |
|---|---|
| 10-30x cheaper | $150-800/month vs $15K-75K |
| Sub-100ms latency | Real-time applications |
| 100% private | Data never leaves device |
| Edge-ready | 2.5B devices by 2027 |
| Quality parity | Qwen3-4B rivals Qwen2.5-72B |
Gartner predicts organizations will use task-specific SLMs 3x more than general LLMs by 2027.
Top SLMs in 2026
Phi-4 Family (Microsoft)
Microsoft's Phi-4 proves that data quality beats raw scale.
Phi-4 (14B) - Best Reasoning
| Spec | Value |
|---|---|
| Parameters | 14B |
| Context | 16K tokens |
| Training | 9.8T tokens |
| MMLU | 84.8% |
| HumanEval | 82.6% |
Beats GPT-4o on MATH and GPQA (graduate-level science).
Phi-4-mini (3.8B) - Best Small Reasoner
| Spec | Value |
|---|---|
| Parameters | 3.8B |
| Context | 128K tokens |
| Languages | 23 |
| MMLU | 67.3% |
| HumanEval | 74.4% |
Outperforms Llama 3.2 3B (61.8% MMLU) across all benchmarks. Full setup and benchmarks in our Phi-4 Mini deep dive.
# Run with Ollama
ollama pull phi4-mini # Phi-4-mini 3.8B (~2.2GB)
ollama run phi4-mini
ollama pull phi4 # Phi-4 14B (~9GB, needs 12GB VRAM)
Gemma 4 E2B and E4B (Google)
The biggest small-model news of 2026 so far. Google shipped Gemma 4 in April 2026 under Apache 2.0, and the two "effective parameter" variants are built specifically for phones, Raspberry Pi, and 8GB machines, with native function calling and structured JSON output.
| Spec | E2B | E4B |
|---|---|---|
| Effective params | ~2.3B | ~4.5B |
| Ollama download | 7.2GB | 9.6GB |
| Runs on | Phones, Raspberry Pi | 8GB+ laptops and desktops |
| License | Apache 2.0 | Apache 2.0 |
The Ollama default tags ship a higher-precision quant, hence the larger downloads; at 4-bit the E2B runs in roughly 5GB of RAM. The bare gemma4 tag defaults to the E4B.
ollama pull gemma4:e2b # edge / Raspberry Pi class
ollama pull gemma4:e4b # best small balance (default)
The full family goes up to a 26B MoE and a 31B dense model, plus a 12B Unified that takes text, audio, and image input. Breakdown by hardware tier in our Gemma 4 guide, setup walkthrough in the Gemma local setup guide.
Gemma 3 Family (Google)
Google's proven small models with multimodal support. Still worth pulling, though the Gemma 4 E-series above supersedes them at the small end for new setups.
| Variant | MMLU | MATH | HumanEval | Context |
|---|---|---|---|---|
| Gemma 3 27B | - | - | - | 128K |
| Gemma 3 4B | 59.6% | 24.2% | 36.0% | 128K |
| Gemma 3 1B | - | 48.0% | - | 128K |
| Gemma 3 270M | - | - | - | - |
Key features:
- 140+ languages supported
- 128K context window across all sizes
- Multimodal vision support
- Most power-efficient: 270M uses 0.75% battery for 25 conversations
ollama pull gemma3:4b
ollama run gemma3:4b
Qwen 3 and Qwen 3.5 (Alibaba)
Alibaba's small models rival models 10-18x larger.
| Model | Matches | Improvement |
|---|---|---|
| Qwen3-1.7B | Qwen2.5-3B | 1.8x smaller |
| Qwen3-4B | Qwen2.5-7B | 1.75x smaller |
| Qwen3-4B | Qwen2.5-72B* | 18x smaller |
*On specific domain tasks via strong-to-weak distillation
Unique features:
- 119 languages (36T training tokens)
- Dual-mode: Thinking (complex) + Non-thinking (fast)
- MoE variant: Qwen3-30B-A3B activates only 3B parameters
ollama pull qwen3:4b
ollama run qwen3:4b
New since spring 2026: Qwen 3.5. The refresh brings multimodal small models: Qwen3.5-4B (3.4GB download, text + image input, 256K context) and Qwen3.5-9B (6.6GB, same capabilities). Both are on Ollama and are the picks over Qwen 3's 4B/8B for a fresh install.
ollama pull qwen3.5:4b # multimodal, 256K context
ollama pull qwen3.5:9b # newest sub-10B Qwen
Outgrowing SLMs? The step-up is Qwen3.6-27B (April 2026): a dense 27B that beats Alibaba's own 397B MoE on agentic coding and fits a 24GB card at Q4 (~17GB). Not an SLM, but the natural upgrade from this list. And if you are choosing a Qwen for an 8GB card specifically, see best Qwen model for 8GB VRAM.
Llama 3.2 (Meta)
Meta's edge-optimized models.
| Spec | 1B | 3B |
|---|---|---|
| MMLU | - | 63.4% |
| Context | 128K | 128K |
| Tool Use (BFCL V2) | 25.7% | 67.0% |
| Speed (Q4) | 60+ tok/s | 40-60 tok/s |
Best for: Tool calling, structured outputs, mobile deployment.
ollama pull llama3.2:3b
ollama run llama3.2:3b
SmolLM Family (Hugging Face)
Fully open models with training details published.
| Model | Parameters | Training | Highlight |
|---|---|---|---|
| SmolLM2-135M | 135M | 2T tokens | Tiny, fast |
| SmolLM2-1.7B | 1.7B | 11T tokens | Beats Llama 1B |
| SmolLM3 | 3B | 11.2T tokens | Beats Llama 3.2 3B |
SmolLM3 features:
- 128K context with YARN extrapolation
- Fully open: Weights + training + data mixture
- Three-stage curriculum: web → code → math/reasoning
Mistral 7B and Ministral 3 (Mistral)
Mistral 7B is the model that made small models credible back in 2023, and it still runs fine (~4.1GB download, 32K context). It is no longer the pick at this size, though: Qwen 3.5 and the Gemma 4 E-series give you newer training data, longer context, and multimodal input at similar or smaller footprints.
Mistral's current small line is Ministral 3: the 3B (3.0GB download) and 8B (6.0GB) both take text + image input with a 256K context window, and they are notably strong in European languages. Deep dives: Ministral 3B and Ministral 8B.
ollama pull mistral # the classic 7B baseline
ollama pull ministral-3:3b # Mistral's current edge model
Best Small Ollama Models
If you just want the pull commands: phi4-mini for reasoning, qwen3.5:4b for multimodal work, gemma4:e4b for edge devices, and llama3.2:3b when speed matters most. Here are the ten small models worth pulling in 2026, ranked:
| # | Model | Params | Download | Pull command | Why this one |
|---|---|---|---|---|---|
| 1 | Phi-4-mini | 3.8B | ~2.2GB | ollama pull phi4-mini | Best reasoning and math per GB |
| 2 | Qwen 3.5 4B | 4B | 3.4GB | ollama pull qwen3.5:4b | Text + image input, 256K context |
| 3 | Gemma 4 E4B | ~4.5B eff. | 9.6GB | ollama pull gemma4:e4b | Newest Google edge model, native function calling |
| 4 | Qwen 3.5 9B | 9B | 6.6GB | ollama pull qwen3.5:9b | Newest sub-10B Qwen, multimodal |
| 5 | Llama 3.2 3B | 3B | ~2.2GB | ollama pull llama3.2:3b | Fast, best tool-use at 3B (67% BFCL V2) |
| 6 | Gemma 3 4B | 4B | ~3GB | ollama pull gemma3:4b | 140+ languages, proven multimodal |
| 7 | Ministral 3 3B | 3B | 3.0GB | ollama pull ministral-3:3b | Vision + 256K context, European languages |
| 8 | Gemma 4 E2B | ~2.3B eff. | 7.2GB | ollama pull gemma4:e2b | Raspberry Pi and phone class |
| 9 | Llama 3.2 1B | 1B | ~1.3GB | ollama pull llama3.2:1b | Routing, autocomplete, mobile |
| 10 | Phi-4 | 14B | ~9GB | ollama pull phi4 | Best quality on this page; needs 12GB VRAM |
Downloads are the Ollama default tags (mostly Q4; the Gemma 4 defaults ship higher precision, so their 4-bit footprints are smaller than the download suggests). Everything except Phi-4 runs on an 8GB machine. For rankings with measured tok/s per tier, see best Ollama models for 8GB VRAM.
Reading articles is good. Building is better.
Free account = 20+ free chapters across 25 courses, with a per-chapter AI tutor. No card. Cancel anytime if you ever upgrade.
Best SLMs by Size
Quick picks by parameter class: 1B: Llama 3.2 1B. 4B: Phi-4-mini. 7-9B: Qwen 3.5 9B. 14B: Phi-4. Details and runners-up:
Best 1B model
Llama 3.2 1B (ollama pull llama3.2:1b). It fits in about 1GB at Q4 and handles routing, classification, and autocomplete well. Runner-up: SmolLM2 1.7B if you want a fully open training recipe.
Best 4B model
Phi-4-mini (ollama pull phi4-mini) for text: its reasoning and math sit well above its weight class (74.4% HumanEval). Take Qwen 3.5 4B instead if you need image input or the 256K context, and Gemma 4 E4B for edge deployments that need function calling.
Best 7-9B model
Qwen 3.5 9B (ollama pull qwen3.5:9b), the newest sub-10B model, with multimodal input included. Llama 3.1 8B remains the safe all-rounder with the biggest fine-tune ecosystem. Full tier comparison: best LLM for 8GB VRAM.
Best 14B model
Phi-4 (ollama pull phi4). Its 84.8% MMLU is still the standout score in the 14B class, and it fits a 12GB card at Q4 (~9GB). Runner-up: Qwen 3 14B for much longer context (128K vs Phi-4's 16K). Beyond 14B you are out of SLM territory; the step-up is Qwen3.6-27B on a 24GB card.
Benchmark Comparison
Comprehensive SLM Benchmarks
| Model | Params | MMLU | HumanEval | Context | VRAM (Q4) |
|---|---|---|---|---|---|
| Phi-4 | 14B | 84.8% | 82.6% | 16K | ~10GB |
| Phi-4-mini | 3.8B | 67.3% | 74.4% | 128K | ~3GB |
| Llama 3.2 | 3B | 63.4% | - | 128K | ~2GB |
| Mistral | 7B | 60.1% | 30.5% | 32K | ~5GB |
| Gemma 3 | 4B | 59.6% | 36.0% | 128K | ~3GB |
| Qwen 3 | 4B | ~70%* | - | - | ~3GB |
| SmolLM3 | 3B | - | - | 128K | ~2GB |
We only list scores we can source. The newest models (Gemma 4 E-series, Qwen 3.5, Ministral 3) do not yet have like-for-like MMLU/HumanEval numbers published, so they appear in the rankings above without benchmark rows rather than with invented ones.
What Benchmarks Mean
| Benchmark | Tests | Good Score |
|---|---|---|
| MMLU | General knowledge (57 subjects) | 70%+ |
| HumanEval | Python code generation | 50%+ |
| GSM8K | Grade-school math | 80%+ |
| MATH | Competition-level math | 40%+ |
| HellaSwag | Common-sense reasoning | 80%+ |
Hardware Requirements
VRAM by Model Size
| Size | FP16 | Q4 Quantized | Recommended GPU |
|---|---|---|---|
| 1-2B | 2-4GB | 1-2GB | Any 4GB+ GPU |
| 3-4B | 6-8GB | 2-4GB | RTX 3060 |
| 7B | 14-16GB | 3.5-5GB | RTX 3060 12GB |
| 13-14B | 26-28GB | 8-10GB | RTX 4090 |
CPU-Only Performance
| Configuration | Speed | Viability |
|---|---|---|
| Modern CPU + DDR5 | 2-5 tok/s | Batch processing |
| With Q4 quantization | 3-6 tok/s | Non-interactive |
| AWS Graviton4 | Competitive | $0.0008/1K tokens |
Recommendation: 3-7B models with Q4 quantization for CPU-only.
Apple Silicon Performance
| Chip | Memory | Best Model | Speed |
|---|---|---|---|
| M1 8GB | 8GB | 3B-7B | Baseline |
| M2 Max | 32-64GB | 14B-32B | 4.7x faster |
| M4 Max | 128GB | 70B+ | 525 tok/s |
MLX achieves 20-50% faster inference than llama.cpp on Apple Silicon.
GPU Recommendations (2026)
| Budget | GPU | VRAM | Best For |
|---|---|---|---|
| $249 | Intel Arc B580 | 12GB | Prototyping |
| $300-400 | RTX 3060 12GB | 12GB | 7B models |
| $550-600 | RTX 4070 | 12GB | 7B at higher precision |
| $2000+ | RTX 5090 | 32GB | 30B unquantized |
Running SLMs Locally
Ollama (Easiest)
# Install
curl -fsSL https://ollama.com/install.sh | sh
# Pull models
ollama pull phi4-mini # Phi-4-mini 3.8B
ollama pull phi4 # Phi-4 14B (needs 12GB VRAM)
ollama pull gemma4:e4b # Gemma 4 E4B
ollama pull qwen3.5:4b # Qwen 3.5 4B (multimodal)
ollama pull gemma3:4b # Gemma 3 4B
ollama pull llama3.2:3b # Llama 3.2 3B
# Run
ollama run phi4-mini
llama.cpp (Optimized)
# Clone and build
git clone https://github.com/ggml-org/llama.cpp
cd llama.cpp && make -j
# Quantize (recommended: Q5_K_M)
./llama-quantize model.gguf model-q5.gguf Q5_K_M
# Run
./llama-cli -m model-q5.gguf -p "Hello"
MLX (Apple Silicon)
from mlx_lm import load, generate
model, tokenizer = load("mlx-community/Phi-4-mini-4bit")
response = generate(model, tokenizer,
prompt="Explain quantum computing",
max_tokens=200)
print(response)
WebLLM (Browser)
import { CreateMLCEngine } from "@mlc-ai/web-llm";
const engine = await CreateMLCEngine(
"Llama-3.2-3B-Instruct-q4f16_1-MLC"
);
const response = await engine.chat.completions.create({
messages: [{ role: "user", content: "Hello!" }]
});
console.log(response.choices[0].message.content);
No server required—runs entirely in browser with WebGPU.
Quantization Guide
Recommended Levels
| Level | Quality | Size Reduction | Use Case |
|---|---|---|---|
| Q8 | Minimal loss | 2x | Quality-critical |
| Q5_K_M | Low loss | 3x | Best balance |
| Q4_K_M | Low-moderate | 4x | Limited VRAM |
| Q3_K_M | Moderate | 5x | Memory-critical |
| Q2_K | Noticeable | 8x | Last resort |
Quantization Example
# With importance matrix (better quality)
./llama-imatrix -m model.gguf \
-f calibration_data.txt \
-o imatrix.dat
./llama-quantize --imatrix imatrix.dat \
model.gguf model-q4.gguf Q4_K_M
SLM vs LLM: When to Use Each
Decision Matrix
| Factor | SLM | LLM |
|---|---|---|
| Latency | Real-time (<100ms) | Can wait |
| Privacy | Critical | Cloud OK |
| Budget | Limited | Flexible |
| Task scope | Narrow/defined | Broad/varied |
| Deployment | Edge/mobile | Cloud |
Cost Comparison
| Scenario | SLM Cost | LLM Cost | Savings |
|---|---|---|---|
| 1M conversations/month | $150-800 | $15K-75K | 95-99% |
| Single inference | ~$0.0001 | ~$0.01 | 100x |
| Hospital (hybrid) | $2K/mo | $40K/mo | 95% |
Hybrid Architecture (Best Practice)
User Query → Router
├── Simple/Domain (95%) → SLM (local)
└── Complex/General (5%) → LLM (cloud)
This achieves LLM-quality results at SLM costs.
Best Use Cases
Edge Deployment
- Retail kiosks: Instant customer assistance
- Manufacturing: Real-time quality control
- Autonomous vehicles: Split-second decisions
Mobile Apps
- On-device assistants: Privacy-first AI
- Offline translation: No connectivity needed
- Smart compose: Real-time suggestions
IoT Devices
- Smart home: "Movie night" automation
- Wearables: Health anomaly detection
- Environmental sensors: Local analysis
Real-Time Applications
- Traffic optimization: Edge-deployed signal control
- Customer service: Sub-100ms chatbots
- Live transcription: On-device processing
Key Takeaways
- SLMs are production-ready—Qwen3-4B rivals 72B models on domain tasks
- Phi-4 leads benchmarks with 84.8% MMLU at just 14B parameters
- 3-4B models fit on any 8GB GPU with Q4 quantization
- 95-99% cost savings vs LLM-only deployments
- Hybrid routing sends 95% of queries to SLMs, 5% to LLMs
- WebLLM enables browser AI with 80% of native performance
- MLX is 20-50% faster than llama.cpp on Apple Silicon
Next Steps
- Set up Ollama for local model management
- See the full Ollama model rankings beyond the small end
- Running on 8GB of RAM? Every model that actually fits
- Check VRAM requirements for your hardware
- Learn LoRA fine-tuning for domain adaptation
- Explore quantization in depth
Small Language Models have matured from research curiosities to production-ready tools powering billions of edge devices. Whether you're building a mobile app with Gemma 3, a coding assistant with Phi-4-mini, or a multilingual service with Qwen 3, SLMs deliver the quality you need at a fraction of the cost. The future isn't bigger models—it's smarter, smaller ones running everywhere.
Go from reading about AI to building with AI
20 structured courses. Hands-on projects. Runs on your machine. Start free.
Liked this? 20 full AI courses are waiting.
From fundamentals to RAG, agents, MCP servers, voice AI, and production deployment with real GitHub repos. First chapter free, every course.
Build Real AI on Your Machine
RAG, agents, NLP, vision, and MLOps - chapters across 25 courses that take you from reading about AI to building AI.
Want structured AI education?
25 courses, 519+ chapters, from $9. Understand AI, don't just use it.
Continue Your Local AI Journey
Comments (0)
No comments yet. Be the first to share your thoughts!