★ Reading this for free? Get 20 structured AI courses + per-chapter AI tutor — the first chapter of every course free, no card.Start free in 30 seconds
AI Models

Best Small Language Models 2026: Top SLMs Ranked (1B-14B)

March 17, 2026
20 min read
Local AI Master Research Team

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.

📚AI Learning Path

Go from reading about AI to building with AI 20 structured courses. Hands-on projects. Runs on your machine. Start free.

Start free
Or own it for life — Lifetime $149, pay once

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.

ModelParamsMMLUVRAM (Q4)
Phi-414B84.8%~10GB
Phi-4-mini3.8B67.3%~3GB
Llama 3.23B63.4%~2GB
Gemma 34B59.6%~3GB
Qwen 34B~70%*~3GB
*Qwen 3 scores vary by mode. All models fit on 8GB GPUs with Q4 quantization. Updated August 2026: added Gemma 4, Qwen 3.5, Ministral 3, and corrected the Ollama pull commands.

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

AdvantageImpact
10-30x cheaper$150-800/month vs $15K-75K
Sub-100ms latencyReal-time applications
100% privateData never leaves device
Edge-ready2.5B devices by 2027
Quality parityQwen3-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

SpecValue
Parameters14B
Context16K tokens
Training9.8T tokens
MMLU84.8%
HumanEval82.6%

Beats GPT-4o on MATH and GPQA (graduate-level science).

Phi-4-mini (3.8B) - Best Small Reasoner

SpecValue
Parameters3.8B
Context128K tokens
Languages23
MMLU67.3%
HumanEval74.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.

SpecE2BE4B
Effective params~2.3B~4.5B
Ollama download7.2GB9.6GB
Runs onPhones, Raspberry Pi8GB+ laptops and desktops
LicenseApache 2.0Apache 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.

VariantMMLUMATHHumanEvalContext
Gemma 3 27B---128K
Gemma 3 4B59.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.

ModelMatchesImprovement
Qwen3-1.7BQwen2.5-3B1.8x smaller
Qwen3-4BQwen2.5-7B1.75x smaller
Qwen3-4BQwen2.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.

Spec1B3B
MMLU-63.4%
Context128K128K
Tool Use (BFCL V2)25.7%67.0%
Speed (Q4)60+ tok/s40-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.

ModelParametersTrainingHighlight
SmolLM2-135M135M2T tokensTiny, fast
SmolLM2-1.7B1.7B11T tokensBeats Llama 1B
SmolLM33B11.2T tokensBeats 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:

#ModelParamsDownloadPull commandWhy this one
1Phi-4-mini3.8B~2.2GBollama pull phi4-miniBest reasoning and math per GB
2Qwen 3.5 4B4B3.4GBollama pull qwen3.5:4bText + image input, 256K context
3Gemma 4 E4B~4.5B eff.9.6GBollama pull gemma4:e4bNewest Google edge model, native function calling
4Qwen 3.5 9B9B6.6GBollama pull qwen3.5:9bNewest sub-10B Qwen, multimodal
5Llama 3.2 3B3B~2.2GBollama pull llama3.2:3bFast, best tool-use at 3B (67% BFCL V2)
6Gemma 3 4B4B~3GBollama pull gemma3:4b140+ languages, proven multimodal
7Ministral 3 3B3B3.0GBollama pull ministral-3:3bVision + 256K context, European languages
8Gemma 4 E2B~2.3B eff.7.2GBollama pull gemma4:e2bRaspberry Pi and phone class
9Llama 3.2 1B1B~1.3GBollama pull llama3.2:1bRouting, autocomplete, mobile
10Phi-414B~9GBollama pull phi4Best 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

ModelParamsMMLUHumanEvalContextVRAM (Q4)
Phi-414B84.8%82.6%16K~10GB
Phi-4-mini3.8B67.3%74.4%128K~3GB
Llama 3.23B63.4%-128K~2GB
Mistral7B60.1%30.5%32K~5GB
Gemma 34B59.6%36.0%128K~3GB
Qwen 34B~70%*--~3GB
SmolLM33B--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

BenchmarkTestsGood Score
MMLUGeneral knowledge (57 subjects)70%+
HumanEvalPython code generation50%+
GSM8KGrade-school math80%+
MATHCompetition-level math40%+
HellaSwagCommon-sense reasoning80%+

Hardware Requirements

VRAM by Model Size

SizeFP16Q4 QuantizedRecommended GPU
1-2B2-4GB1-2GBAny 4GB+ GPU
3-4B6-8GB2-4GBRTX 3060
7B14-16GB3.5-5GBRTX 3060 12GB
13-14B26-28GB8-10GBRTX 4090

CPU-Only Performance

ConfigurationSpeedViability
Modern CPU + DDR52-5 tok/sBatch processing
With Q4 quantization3-6 tok/sNon-interactive
AWS Graviton4Competitive$0.0008/1K tokens

Recommendation: 3-7B models with Q4 quantization for CPU-only.

Apple Silicon Performance

ChipMemoryBest ModelSpeed
M1 8GB8GB3B-7BBaseline
M2 Max32-64GB14B-32B4.7x faster
M4 Max128GB70B+525 tok/s

MLX achieves 20-50% faster inference than llama.cpp on Apple Silicon.

GPU Recommendations (2026)

BudgetGPUVRAMBest For
$249Intel Arc B58012GBPrototyping
$300-400RTX 3060 12GB12GB7B models
$550-600RTX 407012GB7B at higher precision
$2000+RTX 509032GB30B 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

LevelQualitySize ReductionUse Case
Q8Minimal loss2xQuality-critical
Q5_K_MLow loss3xBest balance
Q4_K_MLow-moderate4xLimited VRAM
Q3_K_MModerate5xMemory-critical
Q2_KNoticeable8xLast 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

FactorSLMLLM
LatencyReal-time (<100ms)Can wait
PrivacyCriticalCloud OK
BudgetLimitedFlexible
Task scopeNarrow/definedBroad/varied
DeploymentEdge/mobileCloud

Cost Comparison

ScenarioSLM CostLLM CostSavings
1M conversations/month$150-800$15K-75K95-99%
Single inference~$0.0001~$0.01100x
Hospital (hybrid)$2K/mo$40K/mo95%

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

  1. SLMs are production-ready—Qwen3-4B rivals 72B models on domain tasks
  2. Phi-4 leads benchmarks with 84.8% MMLU at just 14B parameters
  3. 3-4B models fit on any 8GB GPU with Q4 quantization
  4. 95-99% cost savings vs LLM-only deployments
  5. Hybrid routing sends 95% of queries to SLMs, 5% to LLMs
  6. WebLLM enables browser AI with 80% of native performance
  7. MLX is 20-50% faster than llama.cpp on Apple Silicon

Next Steps

  1. Set up Ollama for local model management
  2. See the full Ollama model rankings beyond the small end
  3. Running on 8GB of RAM? Every model that actually fits
  4. Check VRAM requirements for your hardware
  5. Learn LoRA fine-tuning for domain adaptation
  6. 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.

🎯
AI Learning Path

Go from reading about AI to building with AI

20 structured courses. Hands-on projects. Runs on your machine. Start free.

Or own it for life — Lifetime $149 $599, pay once

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.

Reading now
Join the discussion

Local AI Master Research Team

Creator of Local AI Master. I've built datasets with over 77,000 examples and trained AI models from scratch. Now I help people achieve AI independence through local AI mastery.

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.

AI Learning Path

Comments (0)

No comments yet. Be the first to share your thoughts!

📅 Published: March 17, 2026🔄 Last Updated: August 3, 2026✓ Manually Reviewed

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.

Was this helpful?

LM

Written by the Local AI Master Team

The team behind Local AI Master

We build Local AI Master around practical, testable local AI workflows: model selection, hardware planning, RAG systems, agents, and MLOps. The goal is to turn scattered tutorials into a structured learning path you can follow on your own hardware.

✓ Local AI Curriculum✓ Hands-On Projects✓ Open Source Contributor
📚
Free · no account required

Grab the AI Starter Kit — career roadmap, cheat sheet, setup guide

No spam. Unsubscribe with one click.

🎯
AI Learning Path

Go from reading about AI to building with AI

20 structured courses. Hands-on projects. Runs on your machine. Start free.

Or own it for life — Lifetime $149 $599, pay once
Free Tools & Calculators