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.
The top 3
- Lowest RAM Footprint: Quantized LLMs Compared: TinyLlama 1.1B (Q2_K) requires approximately 2.98 GB peak RAM, Phi-3 Mini 3.8B (Q4_K_M) uses around 2.3 GB, and a heavily quantized Mistral 7B (Q2_K) can run with about 2.6 GB, making them viable for systems with under 8GB RAM using llama.cpp.
- Fastest Inference: Low-RAM LLMs on Consumer Hardware: On CPU-only 8GB systems, TinyLlama 1.1B (Q4_K_M) can achieve around 14.4 tokens/second, while Phi-3 Mini 3.8B (Q4_K_M) offers 45-60 tokens/second on 8GB systems with Apple Silicon. Mistral 7B, even when aggressively quantized, typically provides lower CPU-only speeds but can reach around 16 tokens/second on M2 MacBook Pro for a 7B model.
- Quality vs. RAM: Best Value for Low-Memory Tasks: Phi-3 Mini 3.8B is often recommended for 8GB systems, offering quality comparable to larger 7B models for general chat, coding, and analysis. TinyLlama 1.1B is highly suitable for very low RAM situations and quick responses, while a heavily quantized Mistral 7B (though requiring careful optimization) provides strong reasoning for its size, making it a good choice if quality is prioritized over raw speed on limited hardware.
Sources
Open the full topic