Meta-Llama-3-8B-Instruct GGUF size and VRAM requirements

⬇ 152,924 ❤ 103
Parameters8.03B
Context8,192

MaziyarPanahi/Meta-Llama-3-8B-Instruct-GGUF is a large instruction-tuned chat model with 8.03 billion parameters, built on the llama architecture. It has been downloaded 152,924 times.

Under the hood it uses 32 transformer layers, a hidden size of 4,096, 32 attention heads. It uses grouped-query attention (32 query heads sharing 8 key/value heads), which already trims KV-cache memory compared with full multi-head attention.

To run MaziyarPanahi/Meta-Llama-3-8B-Instruct-GGUF locally at a 4,096-token context, its quantized versions need between 3.18 GB (IQ1_S, lowest quality) and 16.27 GB (GGUF, highest quality) of memory, weights plus KV cache and a system margin included. Context length drives that memory directly: at 4,096 tokens the KV cache for Meta-Llama-3-8B-Instruct-GGUF is about 0.5 GB, rising to roughly 1.0 GB at its full 8,192-token context. Shorter prompts free up memory for a higher-quality quantization.

For most users the best balance is Q6_K, needing about 7.44 GB. That means MaziyarPanahi/Meta-Llama-3-8B-Instruct-GGUF fits entirely in the VRAM of a 6 GB GPU or larger, running fully on the GPU.

Available GGUF quantizations for MaziyarPanahi/Meta-Llama-3-8B-Instruct-GGUF include IQ1_S, IQ1_M, IQ2_XS, Q2_K, IQ3_XS, Q3_K_S, Q3_K_M, Q3_K_L, IQ4_XS, Q4_K_S, Q4_K_M, Q5_K_S, Q5_K_M, Q6_K, Q8_0, GGUF. The model supports a native context length of up to 8,192 tokens; a longer context grows the KV cache and the memory needed.

→ Guide: How much VRAM do you need?

GGUF file size and memory by quantization

Compare real GGUF weight sizes, estimated KV cache and total memory for Q4, Q5, Q8 and every quantization published in this repository.

Quant.Bits QualityWeights KVTotal Speed~Verdict
IQ1_S 2.01 Very low 1.88 GB 0.5 GB 3.18 GB 212.6 t/s Fits in VRAM
IQ1_M 2.15 Very low 2.01 GB 0.5 GB 3.31 GB 198.6 t/s Fits in VRAM
IQ2_XS 2.6 Very low 2.43 GB 0.5 GB 3.73 GB 164.8 t/s Fits in VRAM
Q2_K 3.17 Low 2.96 GB 0.5 GB 4.26 GB 135.1 t/s Fits in VRAM
IQ3_XS 3.51 Fair 3.28 GB 0.5 GB 4.58 GB 122.0 t/s Fits in VRAM
Q3_K_S 3.65 Fair 3.41 GB 0.5 GB 4.71 GB 117.2 t/s Fits in VRAM
Q3_K_M 4.0 Fair 3.74 GB 0.5 GB 5.04 GB 106.9 t/s Fits in VRAM
Q3_K_L 4.31 Good 4.03 GB 0.5 GB 5.33 GB 99.4 t/s Fits in VRAM
IQ4_XS 4.43 Good 4.14 GB 0.5 GB 5.44 GB 96.6 t/s Fits in VRAM
Q4_K_S 4.68 Good 4.37 GB 0.5 GB 5.67 GB 91.5 t/s Fits in VRAM
Q4_K_M 4.9 Good 4.58 GB 0.5 GB 5.88 GB 87.3 t/s Fits in VRAM
Q5_K_S 5.58 Very good 5.22 GB 0.5 GB 6.52 GB 76.7 t/s Fits in VRAM
Q5_K_M 5.71 Very good 5.34 GB 0.5 GB 6.64 GB 74.9 t/s Fits in VRAM
Q6_K 6.57 Excellent 6.14 GB 0.5 GB 7.44 GB 65.1 t/s Fits in VRAM
Q8_0 8.51 Excellent 7.95 GB 0.5 GB 9.25 GB 6.3 t/s Offload
GGUF 16.01 Excellent 14.97 GB 0.5 GB 16.27 GB 3.3 t/s Offload

KV cache computed from the model's exact architecture. Speed is a rough estimate bounded by memory bandwidth.

Frequently asked questions

What kind of model is MaziyarPanahi/Meta-Llama-3-8B-Instruct-GGUF?

MaziyarPanahi/Meta-Llama-3-8B-Instruct-GGUF is an instruction-tuned chat model with 8.03 billion parameters, based on the llama architecture. It is distributed as GGUF files for local inference.

How much VRAM do you need to run MaziyarPanahi/Meta-Llama-3-8B-Instruct-GGUF?

You need about 5.88 GB of VRAM to run MaziyarPanahi/Meta-Llama-3-8B-Instruct-GGUF entirely on the GPU using the Q4_K_M quantization (at a 4,096-token context). Smaller quantizations lower the requirement at the cost of quality.

Can I run MaziyarPanahi/Meta-Llama-3-8B-Instruct-GGUF on an 8 GB GPU?

Yes. With 8 GB of VRAM you can run MaziyarPanahi/Meta-Llama-3-8B-Instruct-GGUF fully on the GPU using Q6_K (about 7.44 GB).

Can I run MaziyarPanahi/Meta-Llama-3-8B-Instruct-GGUF on a 16 GB GPU?

Yes. With 16 GB of VRAM you can run MaziyarPanahi/Meta-Llama-3-8B-Instruct-GGUF fully on the GPU using Q8_0 (about 9.25 GB).

Can I run MaziyarPanahi/Meta-Llama-3-8B-Instruct-GGUF on a 24 GB GPU?

Yes. With 24 GB of VRAM you can run MaziyarPanahi/Meta-Llama-3-8B-Instruct-GGUF fully on the GPU using GGUF (about 16.27 GB).

What context length does MaziyarPanahi/Meta-Llama-3-8B-Instruct-GGUF support?

MaziyarPanahi/Meta-Llama-3-8B-Instruct-GGUF supports a native context length of up to 8,192 tokens. A longer context grows the KV cache, so it increases the memory needed to run the model.

What is the best quantization for MaziyarPanahi/Meta-Llama-3-8B-Instruct-GGUF?

For MaziyarPanahi/Meta-Llama-3-8B-Instruct-GGUF, a strong default is Q4_K_M, which needs about 5.88 GB and keeps most of the quality while roughly halving the memory versus 8-bit. With VRAM to spare, Q5_K_M or Q6_K add a little more quality; if you are tight on memory, a smaller quantization still runs. Pick the highest quantization that fits your VRAM.