Llama 3.1 8B (Meta, July 2024) and Qwen3 8B (Alibaba, April 2025) are the two most popular 8B models for local use, and both fit 8 GB cards at Q4.
Qwen3 8B is newer and usually stronger at reasoning, maths and code, and can think step by step. Llama 3.1 8B has a 128K context, steady English chat and the largest set of fine-tunes. Licences differ: Qwen3 is Apache 2.0, Llama uses Meta's community licence.
Last reviewed · How we calculateSpeeds are estimates until benchmarks arrive
Memory at Q4_K_M with an 8K conversation. The highlighted cell is the lighter or longer one.
| Spec | Llama 3.1 8B | Qwen3 8B |
|---|---|---|
| Parameters | 8.03B | 8.19B |
| Type | Dense | Dense |
| Memory at Q4, 8K | 6.5 GB | 6.8 GB |
| Model file at Q4_K_M | 4.9 GB | 5.0 GB |
| Conversation memory per 8K | 1.1 GBLighter | 1.2 GB |
| Native context | 128K tokensLonger | 32K tokens |
| Smallest graphics card | 8 GB | 8 GB |
| Smallest Mac | 16 GB | 16 GB |
| Speed on RTX 4090 24GB | about 135 tok/s | about 132 tok/s |
| Licence | Llama 3.1 Community | Apache 2.0 |
| Ollama tag | llama3.1:8b | qwen3:8b |
Each row is one GPU or Mac. The longer the bar, the faster that model writes. Change the quality and conversation length to see where one stops fitting.
At Q4_K_M with a 8K conversation, Llama 3.1 8B runs fully on 20 of 20 devices and Qwen3 8B on 20. Striped bars run partly from system RAM. All speeds are estimates; add a measured one.
Total for model, an 8K conversation and runtime. Higher quality costs memory on both, but the gap between them grows.
| Quality | Llama 3.1 8B | Qwen3 8B | Difference |
|---|---|---|---|
| Q4_K_M | 6.5 GB | 6.8 GB | 0.2 GB |
| Q5_K_M | 7.4 GB | 7.6 GB | 0.2 GB |
| Q6_K | 8.3 GB | 8.5 GB | 0.3 GB |
| Q8_0 | 10.2 GB | 10.5 GB | 0.3 GB |
| F16 | 17.7 GB | 18.2 GB | 0.5 GB |
Pick it over Qwen3 8B if:
ollama run llama3.1:8b
Pick it over Llama 3.1 8B if:
ollama run qwen3:8b
Llama 3.1 8B needs about 6.5 GB at Q4_K_M with an 8K conversation, against about 6.8 GB for Qwen3 8B. Llama 3.1 8B fits on an 8 GB card; Qwen3 8B needs 8 GB.
They run at about the same speed. On the RTX 4090 24GB both write about 132 to 135 tokens a second, estimated.
On an RTX 4070 12GB, Llama 3.1 8B runs well at about 67 tokens a second, and Qwen3 8B runs well at about 66 tokens a second.
They come from different families, so size alone doesn't settle it. Qwen3 8B is larger; check both model cards and try them on your own prompts.