Local AI Bench

Llama-3.1-8B-Instruct

Llama 3.1 · 8.03 billion parameters · Dense architecture

Running this model locally

Llama-3.1-8B-Instruct stores 8.03 billion parameters in memory. Reducing weight precision leaves more room for the attention cache and runtime buffers.

2 test records are available for this model. Check the runtime version and prompt length when comparing results. Source model card

Open in calculator
Architecture
DENSE
Parameters
8.03B
Layers
32
Hidden size
4096
KV heads
8
Head dimension
128
Maximum context
131,072 tokens
License
llama3.1
Release
2024-07-23

Quantization and memory

Estimated footprint with an 8,192-token context. Runtime allocations can vary.

Estimated
EncodingWeightsFP16 cacheTotal with overhead
Q4_K_M4.9 GB1.1 GB7.3 GB
Q8_08.5 GB1.1 GB11.3 GB
Q5_K_M5.7 GB1.1 GB8.2 GB
4bit4.5 GB1.1 GB6.9 GB
8bit8.5 GB1.1 GB11.3 GB

Device measurements

Explore data
Model / hardwareRuntimePrompt / windowDecodeSource
Llama-3.1-8B-InstructM4 Max 64 GBmlxmlx-lm 0.32.2 / mlx 0.32.54bit512 / 8,19290.7 tok/sMeasured2026-11-29 UTC
Llama-3.1-8B-InstructM4 Max 64 GBollama0.40.16Q4_K_M512 / 8,19276.9 tok/sMeasured2026-11-29 UTC

Hardware to consider

Frequently asked questions

How large is Llama-3.1-8B-Instruct?

Llama-3.1-8B-Instruct has 8.03 billion total parameters. Its dense layers use the full parameter set for inference.

How much memory does the attention cache require?

For 8,192 context tokens the estimated FP16 cache is 1.07 GB, before runtime overhead.

Where can I verify the model details?

The source model card below gives the architecture and links to its configuration and license. The hardware results table lists independently measured runtime conditions.