Xylolabs

Llama-3.1-8B GGUF

Base model Formats License Code

Source: meta-llama/Llama-3.1-8B; GGUF weights run with llama.cpp.

Files

File Size
Llama-3.1-8B-Q4_K_M.gguf 4.921 GB

How to run

Use the llama.cpp build linked above or newer. Save a text prefix in prompt.txt for the model to continue.

llama-completion -m Llama-3.1-8B-Q4_K_M.gguf -f prompt.txt -no-cnv

Accuracy

Against BF16.

Quant Size WikiText-2 KL top-1 Held-out KL top-1
llama.cpp Q8_0 8.541 GB 0.000841 98.750% 0.000789 98.265%
llama.cpp Q6_K 6.596 GB 0.004468 96.696% 0.004305 96.216%
llama.cpp Q5_K_M 5.733 GB 0.009516 95.358% 0.008728 95.010%
Q4_K_M 4.921 GB 0.029846 92.162% 0.026917 91.716%
llama.cpp Q4_K_M 4.921 GB 0.029846 92.162% 0.026917 91.716%
llama.cpp Q3_K_M 4.019 GB 0.098527 86.377% 0.093630 84.667%
Mean KL divergence by quant file size Top-1 accuracy by quant file size

Which file for your hardware

Hardware Memory File Context
RTX 4090 / RTX 3090 24 GB Llama-3.1-8B-Q4_K_M.gguf (4.9 GB) 64K
RTX 5090 32 GB Llama-3.1-8B-Q4_K_M.gguf (4.9 GB) 128K
RTX 6000 Ada, or 2 x 24 GB 48 GB Llama-3.1-8B-Q4_K_M.gguf (4.9 GB) 128K
One H100 80 GB Llama-3.1-8B-Q4_K_M.gguf (4.9 GB) 128K
RTX PRO 6000 Blackwell (GDDR7) 96 GB Llama-3.1-8B-Q4_K_M.gguf (4.9 GB) 128K
DGX Spark 128 GB unified Llama-3.1-8B-Q4_K_M.gguf (4.9 GB) 128K
Mac Studio M5 Max 128 GB unified Llama-3.1-8B-Q4_K_M.gguf (4.9 GB) 128K
One H200 (HBM3e) 141 GB Llama-3.1-8B-Q4_K_M.gguf (4.9 GB) 128K
One B200 192 GB Llama-3.1-8B-Q4_K_M.gguf (4.9 GB) 128K
Mac Studio M5 Ultra 256 GB unified Llama-3.1-8B-Q4_K_M.gguf (4.9 GB) 128K
Mac Studio M5 Ultra 512 GB unified Llama-3.1-8B-Q4_K_M.gguf (4.9 GB) 128K
One B300 (HBM3e) 288 GB Llama-3.1-8B-Q4_K_M.gguf (4.9 GB) 128K

License and notices

Llama 3.1 Community License, copied in LICENSE. The Acceptable Use Policy is in USE_POLICY.md. We converted the weights to GGUF and quantized them. Built with Llama.

Citation

Cite the original Meta Llama 3.1 8B base release.

Updates

  • 2026-11-29: Charts redrawn in the dark theme with fewer point labels.
  • 2026-11-22: Added a hardware recommendation table.
  • 2026-11-15: First release of Llama-3.1-8B-Q4_K_M.gguf.
Downloads last month
579
GGUF
Model size
8B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Xylolabs/Llama-3.1-8B-GGUF

Quantized
(348)
this model

Collections including Xylolabs/Llama-3.1-8B-GGUF