Llama 3 8B Instruct

Original Llama 3 8B instruction model with an 8K context window.

Meta·8.03B params·32 layers / 8 KV heads·Max 8K ctx·Llama 3 Community
Local Run Command
Q4_K_M minimum memory: 6.5 GB at 8K context.
Artificial Analysis Benchmarkartificialanalysis.ai ↗
Intelligence Index
—

Independent benchmark scores sourced from Artificial Analysis.

OpenRouter API & Cloud GPU
No live OpenRouter route synced.

VRAM by Quantization (8K context)

Q4_K_M (4-bit)4.6 GB
real file size
1.0 GB6.5 GB6.0 GBBest speed-to-quality balance for local inference (~98% quality)
ollama run llama3:8b-text-q4_K_M
Q6_K (6-bit)6.1 GB
real file size
1.0 GB8.2 GB7.7 GBNear-lossless quality with ~35% larger footprint than Q4
ollama run llama3:8b-text-q6_K
Q8_0 (8-bit)8.0 GB
real file size
1.0 GB10.1 GB9.6 GBVirtually indistinguishable from FP16 for coding & reasoning
ollama run llama3:8b-text-q8_0
FP16 / BF16 (16-bit)15.0 GB
real file size
1.0 GB17.4 GB16.9 GBFull native precision; standard for production GPU serving
ollama run llama3:8b-text-fp16

Layer and head counts are read from the published config.json. KV cache is exact for this architecture.

Run Llama 3 8B Instruct with Ollama, LM Studio, llama.cpp, MLX or vLLM

Command
Ollama
Q4_K_M
llama3:8b-text-q4_K_M
4.6 GB
real file size
LM Studio
Q4_K_M
lmstudio-community/Meta-Llama-3-8B-Instruct-GGUF
4.6 GB
real file size
llama.cpp
Q4_K_M
lmstudio-community/Meta-Llama-3-8B-Instruct-GGUF
4.6 GB
real file size
MLX
4-bit
mlx-community/Meta-Llama-3-8B-Instruct-4bit
4.9 GB
real file size
vLLM
INT4
RedHatAI/Meta-Llama-3-8B-Instruct-quantized.w4a16
5.3 GB
real file size

Each runtime loads its own build of the model, so download sizes differ. Sizes marked as real are file sizes read from the Ollama registry or Hugging Face.

Hardware Compatibility Matrix (Q4_K_M · 8K context)

Details
11.5 GBFits comfortably9.6–13.0 tok/s—Llama 3 8B Instruct on M1 16GB →
48.0 GBFits comfortably32–37 tok/s—Llama 3 8B Instruct on M1 Max 64GB →
98.0 GBFits comfortably61–82 tok/s—Llama 3 8B Instruct on M1 Ultra 128GB →
18.0 GBFits comfortably14.8–20 tok/s—Llama 3 8B Instruct on M2 24GB →
48.0 GBFits comfortably46–63 tok/s—Llama 3 8B Instruct on M2 Max 64GB →
152 GBFits comfortably70–82 tok/s—Llama 3 8B Instruct on M2 Ultra 192GB →
27.0 GBFits comfortably21–28 tok/s—Llama 3 8B Instruct on M3 Pro 36GB →
48.0 GBFits comfortably47–55 tok/s—Llama 3 8B Instruct on M3 Max 64GB →
98.0 GBFits comfortably47–55 tok/s—Llama 3 8B Instruct on M3 Max 128GB →
11.5 GBFits comfortably16.3–22 tok/s—Llama 3 8B Instruct on M4 16GB →
24.0 GBFits comfortably16.3–22 tok/s—Llama 3 8B Instruct on M4 32GB →
36.0 GBFits comfortably35–48 tok/s—Llama 3 8B Instruct on M4 Pro 48GB →
48.0 GBFits comfortably35–48 tok/s—Llama 3 8B Instruct on M4 Pro 64GB →
48.0 GBFits comfortably60–81 tok/s—Llama 3 8B Instruct on M4 Max 64GB →
98.0 GBFits comfortably60–81 tok/s—Llama 3 8B Instruct on M4 Max 128GB →
98.0 GBFits comfortably60–81 tok/s—Llama 3 8B Instruct on Studio M4 Max 128GB →
204 GBFits comfortably69–93 tok/s—Llama 3 8B Instruct on M3 Ultra 256GB →
430 GBFits comfortably69–93 tok/s—Llama 3 8B Instruct on M3 Ultra 512GB →
24.0 GBFits comfortably26–35 tok/s—Llama 3 8B Instruct on M1 Pro 32GB →
24.0 GBFits comfortably27–36 tok/s—Llama 3 8B Instruct on M2 Pro 32GB →
27.0 GBFits comfortably40–54 tok/s—Llama 3 8B Instruct on M3 Max 36GB →
11.5 GBFits comfortably16.3–22 tok/s—Llama 3 8B Instruct on Air M4 16GB →
24.0 GBFits comfortably16.3–22 tok/s—Llama 3 8B Instruct on Air M4 32GB →
18.0 GBFits comfortably35–48 tok/s—Llama 3 8B Instruct on M4 Pro 24GB →
11.5 GBFits comfortably22–30 tok/s—Llama 3 8B Instruct on Air M5 16GB →
24.0 GBFits comfortably22–30 tok/s—Llama 3 8B Instruct on Air M5 32GB →
48.0 GBFits comfortably45–61 tok/s—Llama 3 8B Instruct on M5 Pro 64GB →
98.0 GBFits comfortably78–105 tok/s—Llama 3 8B Instruct on M5 Max 128GB →
24.0 GBFits comfortably25–34 tok/s—Llama 3 8B Instruct on mini M6 32GB →
48.0 GBFits comfortably45–61 tok/s—Llama 3 8B Instruct on mini M5 Pro 64GB →
98.0 GBFits comfortably78–105 tok/s—Llama 3 8B Instruct on Studio M5 Max 128GB →
430 GBFits comfortably124–168 tok/s—Llama 3 8B Instruct on Studio M5 Ultra 512GB →
11.2 GBFits comfortably51–69 tok/s1×Llama 3 8B Instruct on RTX 3060 12GB →
9.2 GBFits comfortably98–115 tok/s1×Llama 3 8B Instruct on RTX 3080 10GB →
22.8 GBFits comfortably103–121 tok/s1×Llama 3 8B Instruct on RTX 3090 24GB →
15.0 GBFits comfortably43–58 tok/s1×Llama 3 8B Instruct on RTX 4060 Ti 16GB →
15.0 GBFits comfortably91–123 tok/s1×Llama 3 8B Instruct on RTX 4070 Ti S 16GB →
15.0 GBFits comfortably102–139 tok/s1×Llama 3 8B Instruct on RTX 4080 S 16GB →
22.8 GBFits comfortably118–138 tok/s1×Llama 3 8B Instruct on RTX 4090 24GB →
15.0 GBFits comfortably123–166 tok/s1×Llama 3 8B Instruct on RTX 5070 Ti 16GB →
15.0 GBFits comfortably126–171 tok/s1×Llama 3 8B Instruct on RTX 5080 16GB →
30.5 GBFits comfortably199–270 tok/s1×Llama 3 8B Instruct on RTX 5090 32GB →
22.8 GBFits comfortably124–168 tok/s1×Llama 3 8B Instruct on RX 7900 XTX 24GB →
15.0 GBFits comfortably82–111 tok/s1×Llama 3 8B Instruct on RX 9070 XT 16GB →
10.2 GBFits comfortably74–100 tok/s1×Llama 3 8B Instruct on RTX 2080 Ti 11GB →
7.3 GBTight fit56–76 tok/s1×Llama 3 8B Instruct on RTX 3060 Ti 8GB →
7.3 GBTight fit65–77 tok/s1×Llama 3 8B Instruct on RTX 3070 8GB →
11.2 GBFits comfortably98–115 tok/s1×Llama 3 8B Instruct on RTX 3080 Ti 12GB →
22.8 GBFits comfortably119–161 tok/s1×Llama 3 8B Instruct on RTX 3090 Ti 24GB →
7.3 GBTight fit37–61 tok/s1×Llama 3 8B Instruct on RTX 4060 8GB →
7.3 GBTight fit41–56 tok/s1×Llama 3 8B Instruct on RTX 4060 Ti 8GB →
11.2 GBFits comfortably63–85 tok/s1×Llama 3 8B Instruct on RTX 4070 12GB →
11.2 GBFits comfortably74–101 tok/s1×Llama 3 8B Instruct on RTX 4070 S 12GB →
11.2 GBFits comfortably76–89 tok/s1×Llama 3 8B Instruct on RTX 4070 Ti 12GB →
15.0 GBFits comfortably98–115 tok/s1×Llama 3 8B Instruct on RTX 4080 16GB →
15.0 GBFits comfortably62–84 tok/s1×Llama 3 8B Instruct on RTX 5060 Ti 16GB →
11.2 GBFits comfortably88–119 tok/s1×Llama 3 8B Instruct on RTX 5070 12GB →
15.0 GBFits comfortably76–103 tok/s1×Llama 3 8B Instruct on RX 7800 XT 16GB →
18.9 GBFits comfortably84–114 tok/s1×Llama 3 8B Instruct on RX 7900 XT 20GB →
15.0 GBFits comfortably82–110 tok/s1×Llama 3 8B Instruct on RX 9070 16GB →
15.0 GBFits comfortably47–64 tok/s1×Llama 3 8B Instruct on RX 9060 XT 16GB →
46.2 GBFits comfortably94–110 tok/s1×Llama 3 8B Instruct on RTX A6000 48GB →
46.2 GBFits comfortably121–142 tok/s1×Llama 3 8B Instruct on RTX 6000 Ada 48GB →
93.0 GBFits comfortably194–262 tok/s1×Llama 3 8B Instruct on PRO 6000 96GB →
15.0 GBFits comfortably57–77 tok/s1×Llama 3 8B Instruct on RTX A4000 16GB →
22.8 GBFits comfortably90–122 tok/s1×Llama 3 8B Instruct on RTX A5000 24GB →
18.9 GBFits comfortably54–63 tok/s1×Llama 3 8B Instruct on RTX 4000 Ada 20GB →
30.5 GBFits comfortably83–97 tok/s1×Llama 3 8B Instruct on RTX 5000 Ada 32GB →
46.2 GBFits comfortably111–185 tok/s1×Llama 3 8B Instruct on PRO 5000 48GB →
46.2 GBFits comfortably86–116 tok/s1×Llama 3 8B Instruct on PRO W7900 48GB →
30.5 GBFits comfortably82–110 tok/s1×Llama 3 8B Instruct on AI PRO R9700 32GB →
22.8 GBFits comfortably42–70 tok/s1×Llama 3 8B Instruct on L4 24GB →
46.2 GBFits comfortably105–123 tok/s1×Llama 3 8B Instruct on L40S 48GB →
38.5 GBFits comfortably118–197 tok/s1×Llama 3 8B Instruct on A100 40GB →
77.5 GBFits comfortably123–144 tok/s1×Llama 3 8B Instruct on A100 80GB →
77.5 GBFits comfortably133–156 tok/s1×Llama 3 8B Instruct on H100 80GB →
137 GBFits comfortably168–280 tok/s1×Llama 3 8B Instruct on H200 141GB →
175 GBFits comfortably183–305 tok/s1×Llama 3 8B Instruct on B200 180GB →
15.0 GBFits comfortably35–47 tok/s1×Llama 3 8B Instruct on T4 16GB →
46.2 GBFits comfortably82–96 tok/s1×Llama 3 8B Instruct on A40 48GB →
46.2 GBFits comfortably105–143 tok/s1×Llama 3 8B Instruct on L40 48GB →
115 GBFits comfortably39–53 tok/s—Llama 3 8B Instruct on DGX Spark 128GB →
96.0 GBFits comfortably35–47 tok/s—Llama 3 8B Instruct on Ryzen AI Max+ 395 128GB →
48.0 GBFits comfortably35–47 tok/s—Llama 3 8B Instruct on Ryzen AI Max+ 395 64GB →

Frequently asked questions

How much VRAM does Llama 3 8B Instruct require?

At Q4_K_M quantization with a 8K context window, Llama 3 8B Instruct needs 6.5 GB total VRAM (4.6 GB weights + 1.0 GB KV cache + runtime overhead). In full FP16 precision, it requires 17.4 GB.

Can an RTX 4090 (24 GB) run Llama 3 8B Instruct?

Yes. At Q4_K_M with 8K context Llama 3 8B Instruct needs 6.5 GB, which fits a single 24 GB RTX 4090 at an estimated 118–138 tok/s.

How do I run Llama 3 8B Instruct locally with Ollama?

Install Ollama and run `ollama run llama3:8b` in your terminal. Make sure your GPU or Apple Silicon unified memory meets the 6.5 GB Q4_K_M requirement.