<!-- Markdown mirror of https://getrigbase.com/models/llama-3-1-8b/ . Source of truth is the HTML page. Data licence: CC BY 4.0, please cite RigBase (https://getrigbase.com/models/llama-3-1-8b/). -->
Source: https://getrigbase.com/models/llama-3-1-8b/
Last updated: 2026-12-02

[Models](https://getrigbase.com/models/) / Llama 3.1 8B

# Best home rig for Llama 3.1 8B

Quick answer

**How much VRAM does Llama 3.1 8B need?**
The weights are about 4.9 GB at Q4_K_M (8B params × 4.89 bits ÷ 8, before context/KV cache). Add memory for context (KV cache) and the runtime. The smallest-memory setup with a measured result here, fully in memory, is RTX 4090 (24 GB) at 52.99 tok/s.

**What is the fastest measured hardware for Llama 3.1 8B?**
RTX Spark N1X: 56.5 tok/s generation (llama.cpp CUDA, MLPerf Client v2.0 (geomean)), from https://www.storagereview.com/review/hp-omnibook-ultra-16-review-rtx-spark-n1x.

Last updated: 2 Dec 2026

Legacy model 8B dense 7 measured results fastest plain decode: 56.5 tok/s  [model info ↗](https://ollama.com/library/llama3.1)

**Newer model available: [Muse Glimmer 30B](https://getrigbase.com/models/muse-glimmer-30b/)**. Llama 3.1 8B is a legacy model; its numbers stay here for reference. Meta’s current open models are Muse Glimmer 30B and Muse Spark Open 816B-A42B. [source ↗](https://huggingface.co/blog/meta-muse-spark-open)

Real, measured generation speeds for Llama 3.1 8B on home hardware, fastest first. Different quants/engines aren't directly comparable.

| Build | Quant | Engine | tok/s | Prompt processing (tok/s) | Cost | Source |
|---|---|---|---|---|---|---|
| [HP OmniBook Ultra 16 (RTX Spark N1X, 128GB) laptop: local AI benchmarks](https://getrigbase.com/builds/hp-omnibook-ultra-16-rtx-spark-128gb/) | MLPerf Client v2.0 (geomean) | llama.cpp CUDA | **56.5** | – | $6,230 (≈€5,559) | [storagereview.com ↗](https://www.storagereview.com/review/hp-omnibook-ultra-16-review-rtx-spark-n1x) |
| [RTX 4090 desktop (speed comparison vs Macs)](https://getrigbase.com/builds/rtx-4090-koboldcpp-comparison/) | Q8 | llama.cpp-based | **52.99** | 3,287 @894 · est. TTFT @8k ≈2.5 s* |  | [someoddcodeguy.dev ↗](https://www.someoddcodeguy.dev/low-context-speed-comparison-macbook-mac-studios-and-rtx-4090/) |
| [Mac Studio M1 Ultra](https://getrigbase.com/builds/mac-studio-m1-ultra/) | Q8 | llama.cpp-based | **37.92** | 588 @898 · est. TTFT @8k ≈13.9 s* |  | [someoddcodeguy.dev ↗](https://www.someoddcodeguy.dev/low-context-speed-comparison-macbook-mac-studios-and-rtx-4090/) |
| [Radeon AI PRO R9700 32 GB, vLLM FP16 (Puget Systems): Llama 3.1 8B at 29.1 tok/s, DeepSeek R1 Distill 8B 34.5, Qwen3 8B 27.7](https://getrigbase.com/builds/radeon-ai-pro-r9700-32gb-vllm-fp16-llama31-8b-qwen3-8b-puget/) | FP16 (unquantized) | vLLM v0.20.2 ROCm, HIP graphs | **29.1** | – |  | [pugetsystems.com ↗](https://www.pugetsystems.com/labs/articles/amd-radeon-ai-pro-r9700-dual-gpu-ai-inference-performance/) |
| [MacBook Pro M2 Max](https://getrigbase.com/builds/macbook-pro-m2-max/) | Q8 | llama.cpp-based | **28.92** | 509 @898 · est. TTFT @8k ≈16.1 s* |  | [someoddcodeguy.dev ↗](https://www.someoddcodeguy.dev/low-context-speed-comparison-macbook-mac-studios-and-rtx-4090/) |
| [Apple M3 Pro (18 GB): Llama 3.1 8B at 27.2 tok/s, Qwen3 14B at 14.5 (Ollama, median of 6 runs)](https://getrigbase.com/builds/macbook-pro-m3-pro-18gb-ollama-localaimaster/) | Q4_K_M (4.92 GB, Ollama tag llama3.1:8b) | Ollama 0.40.13 (Metal) | **27.2** | – |  | [localaimaster.com ↗](https://localaimaster.com/benchmarks) |
| [DGX Spark (GB10, 128 GB): 23 models on vLLM at 128K context, Qwen3.6 35B-A3B up to 102 tok/s](https://getrigbase.com/builds/dgx-spark-vllm-23-models-ctala-oct-2026/) |  | NVIDIA NIM 2.0.9, 128K ctx, 1 user | **26.4** | measured TTFT 15.5 s @~46K |  | [ctala.github.io ↗](https://ctala.github.io/local-llm-agentic-workflows/benchmarks/) |

Prompt processing = prefill speed reported by the source, @ prompt length. * est. TTFT @8k is calculated from measured prefill, not measured. [Why it matters](https://getrigbase.com/can-it-run/#prefill).

## Quality cost of each quant for Llama 3.1 8B

How far each quantization drifts from the full-precision (BF16) model, as published by the quant maker. Lower KL divergence (KLD) is closer to the original; same-top-token % is how often the quant picks the same next token as BF16. Q4_K_M is usually the sweet spot; below Q4 the drift grows fast, which is why RigBase only lists Q4-or-higher speed results.

| Quant | File size | Mean KLD vs BF16 | Same top token |
|---|---|---|---|
| Unsloth UD-Q8_K_XL | 10.576 GB | **0.000343** | 99.103% |
| llama.cpp Q8_0 | 8.541 GB | **0.000677** | 98.593% |
| Unsloth UD-Q6_K_XL | 7.330 GB | **0.001657** | 98.142% |
| llama.cpp Q6_K | 6.596 GB | **0.003599** | 97.054% |
| Unsloth UD-Q5_K_XL | 5.738 GB | **0.00726** | 96.407% |
| Xylolabs Q5_K_M | 5.733 GB | **0.007551** | 95.98% |
| Unsloth Q5_K_M | 5.733 GB | **0.006783** | 96.289% |
| Unsloth UD-Q4_K_XL | 4.994 GB | **0.018321** | 94.044% |
| Xylolabs Q4_K_M | 4.994 GB | **0.013757** | 94.721% |
| Unsloth Q4_K_M | 4.921 GB | **0.020621** | 93.431% |
| Unsloth Q4_0 | 4.676 GB | **0.038213** | 90.446% |
| Unsloth IQ4_XS | 4.464 GB | **0.026396** | 92.397% |
| Unsloth UD-Q3_K_XL below Q4 | 4.200 GB | **0.05266** | 89.49% |
| llama.cpp Q3_K_M below Q4 | 4.019 GB | **0.080635** | 87.191% |
| Unsloth UD-IQ3_XXS below Q4 | 3.322 GB | **0.134257** | 83.799% |
| Unsloth UD-Q2_K_XL below Q4 | 3.389 GB | **0.206439** | 81.191% |
| Unsloth UD-IQ2_XXS below Q4 | 2.505 GB | **0.611008** | 67.103% |

Source: [huggingface.co ↗](https://huggingface.co/Xylolabs/Llama-3.1-8B-Instruct-GGUF). Xylolabs (GGUF publisher) card for Llama 3.1 8B Instruct, Nov 2026: each GGUF file vs the BF16 weights on WikiText-2 (mean KL divergence and top-1 agreement; the card also has a held-out set with similar values), measured with llama.cpp cd959ba. 'llama.cpp' rows are plain conversions, 'Unsloth' rows are Unsloth's published files, and the 'Xylolabs' rows are the files in Xylolabs' own repo (its Q4_K_M was requantized with block GPTQ and their importance matrix on 2026-11-29); 17 of the card's 28 rows are shown. Xylolabs' Q4_K_M (0.0138) drifts less than Unsloth's Q4_K_M (0.0206) and UD-Q4_K_XL (0.0183) at a similar size, and below ~4 GB the drift rises fast (UD-IQ2_XXS 0.611). KLD from different publishers, datasets or llama.cpp builds isn't directly comparable.
Ad · this space is available **Sponsor this spot: reach people building local AI rigs.** One clearly-labeled slot per page, no tracking scripts.  [Sponsor this spot →](https://getrigbase.com/advertise/#inquiry)

**Rent before you buy:** try this model on a cloud GPU for a few dollars first: [Runpod](https://runpod.io?ref=77qcpl2c) (referral link; sign up with Google to get the new-user bonus)

## Memory math: how much VRAM / RAM does Llama 3.1 8B need?

Llama 3.1 8B has **8B parameters** ([source](https://ollama.com/library/llama3.1): Ollama library tag 8b). Weight size = parameters × bits-per-weight ÷ 8, before context (KV cache) and runtime overhead.

| Format | Bits/weight | Weights | Smallest common memory size that holds the weights alone |
|---|---|---|---|
| Q8_0 | 8.50 | 8.5 GB | 12 GB |
| Q6_K | 6.56 | 6.6 GB | 8 GB |
| Q5_K_M | 5.70 | 5.7 GB | 8 GB |
| Q4_K_M | 4.89 | **4.9 GB** | 8 GB |
| Q3_K_M | 4.00 | 4.0 GB | 8 GB |
| Q2_K | 3.16 | 3.2 GB | 8 GB |

Bits-per-weight for GGUF quants are llama.cpp's own figures ([llama.cpp quantize README](https://github.com/ggml-org/llama.cpp/blob/master/tools/quantize/README.md)). "As measured" rows apply the source's stated bits-per-weight to the parameter count; real files differ slightly because some layers stay at higher precision. Try other combinations in the [VRAM calculator](https://getrigbase.com/can-it-run/).

## FAQ

### How much VRAM does Llama 3.1 8B need?

The weights are about 4.9 GB at Q4_K_M (8B params × 4.89 bits ÷ 8, before context/KV cache). Add memory for context (KV cache) and the runtime. The smallest-memory setup with a measured result here, fully in memory, is RTX 4090 (24 GB) at 52.99 tok/s.

### What is the fastest measured hardware for Llama 3.1 8B?

RTX Spark N1X: 56.5 tok/s generation (llama.cpp CUDA, MLPerf Client v2.0 (geomean)), from https://www.storagereview.com/review/hp-omnibook-ultra-16-review-rtx-spark-n1x.

Related: [what GPU do you need for 2026 models](https://getrigbase.com/guides/what-gpu-for-qwen3-6-gemma-4-gpt-oss/) · [all builds](https://getrigbase.com/builds/)
