Model Selection & Compression

Understanding Model Tiers and Quantization

Choosing the right local model is a balance between parameter count, quantization precision, and context window size. Larger is not always better if the model spills out of fast memory.

Interactive Tier Matrix

Filter the table below by workload category to see recommended parameter classes, quantization formats, and minimum memory targets.

Tier & Parameter Size Recommended Precision Memory Footprint (with 8k Context) Primary Strengths Best Hardware Target
1.5B – 3B Dense
Ultra-Light
Q4_K_M / Q6_K 1.8 GB – 3.2 GB Instant code line completion, grammar fixes, classification, mobile & NPU execution 8 GB laptops, tablets, NPU coprocessors
7B – 9B Dense
Daily Driver
Q4_K_M / Q5_K_M 5.5 GB – 7.5 GB General Q&A, drafting, shell command generation, local document summarization 16 GB unified memory laptops or 8 GB GPUs
12B – 14B Dense
Daily Driver
Q4_K_M 8.5 GB – 10.5 GB Multi-file code refactoring, structured JSON extraction, reliable instruction following 24 GB unified memory or 12 GB discrete VRAM
24B – 32B Dense
Workstation
Q4_K_M / IQ4_XS 16 GB – 21 GB Complex debugging, architectural planning, nuanced technical writing 32 GB–48 GB unified RAM or 24 GB GPUs
30B – 70B MoE (3B–8B Active)
Workstation
Q4_K_M 19 GB – 42 GB High knowledge breadth with fast token generation because only active experts compute 48 GB–64 GB unified memory workstations

How Quantization Works

Training stores each neural network weight as a 16-bit floating-point number (FP16). Quantization groups weights into small blocks and maps them to 4-bit, 5-bit, or 6-bit integers with shared scaling factors.

Rule of thumb: 4-bit K-quantization (Q4_K_M) preserves roughly 98–99% of benchmark accuracy on models 8B and larger while cutting memory usage by nearly three-quarters.

The Hidden Cost of Long Context

Every token in your active prompt or retrieved document occupies space in the KV (Key-Value) cache. Expanding context from 4,096 tokens to 32,768 tokens can add 2 GB to 6 GB of extra RAM usage.

Rule of thumb: Keep default context windows at 8k–16k tokens for daily chat, and enable KV cache quantization (q8_0) when analyzing large codebases.