Least RAM Hungry LLMs on Consumer PCs via llama.cpp

Phi-3 Mini (3.8B parameters), when 4-bit quantized, can run with as little as 2.1GB VRAM or ~3GB system RAM. Mistral 7B (7.3B parameters) in Q4_K_M requires approximately 4.0-4.3 GB VRAM or ~4GB RAM. Llama 3 8B (8B parameters) in 4-bit quantization typically needs around 5-6 GB of VRAM or system RAM.

The top 3

  1. Top 3 LLMs for Under 8GB RAM with llama.cpp: Mistral 7B, Llama 3.1 8B, and Qwen3-4B are standout choices for consumer PCs with limited RAM when run via llama.cpp. Mistral 7B and Llama 3.1 8B, particularly when 4-bit quantized, can offer performance comparable to GPT-3.5 or even GPT-4 class reasoning for their size, operating comfortably on as little as 4-8GB of RAM.
  2. Quantization Levels: How llama.cpp Slashes RAM Needs: llama.cpp leverages quantization, reducing model precision from 16-bit floats to lower bits (e.g., 4-bit, 2-bit), drastically cutting RAM usage. For instance, 4-bit quantization can shrink a 7B parameter model's memory footprint by 70-75%, allowing it to run on roughly 4-5GB RAM instead of 14GB. The 'k-quants' system (like Q4_K_M) is particularly effective, balancing quality and memory reduction.
  3. Speed Benchmarks: LLM Inference on Consumer CPUs & iGPUs: Typical token generation rates for quantized LLMs via llama.cpp range from ~2 tokens/s on older CPUs with 8GB RAM, to ~10-45 tokens/s on modern laptop CPUs (e.g., Intel Core i7-13700H) or iGPUs (e.g., AMD Radeon RX Vega 7), varying greatly by model size and specific hardware.

Sources

Open the full topic