OnPrem World地端世界

Llama 3.1 8B Instruct

Llama 3.1 8B Instruct by Meta (8B parameters). At Q4_K_M with an 8K context it needs about 6.2 GiB of memory. Meta's 8B general-purpose model with a 128K context. It fits a 12 GB card even at 8-bit (Q8_0).

Last updated: 2026-10-13

Model facts

DeveloperMeta
Parameters8B[src]
Native context131,072 tokens[src]
LicenceLlama 3.1 Community License[src]
Commercial useYes
KV cacheAll 32 layers (standard attention)[src]
Released2024-07

Good for: chat · general · multilingual (8 languages) · tool use

Run it

ollama run llama3.1:8b

Memory needed

Weights + KV cache + runtime overhead, in GiB. Lower quantization = less memory, slightly lower quality.

Quantization4K context8K context32K context
Q4_K_M5.7 GiB6.2 GiB9.2 GiB
Q5_K_M6.6 GiB7.1 GiB10.1 GiB
Q6_K7.4 GiB7.9 GiB10.9 GiB
Q8_09.3 GiB9.8 GiB12.8 GiB
FP1616.6 GiB17.1 GiB20.1 GiB

Which hardware runs it

Best quantization that fits each device with a 8K context. Estimates, not benchmarks. See the methodology.

Frequently asked questions

How much VRAM does Llama 3.1 8B Instruct need?

With an 8K context, about 6.2 GiB at Q4_K_M and 9.8 GiB at Q8_0 (weights + KV cache + runtime overhead). Longer contexts need more memory for the KV cache.

Can Llama 3.1 8B Instruct run on an GeForce RTX 4090?

Yes. Llama 3.1 8B Instruct fits on the GeForce RTX 4090 (24 GB) at FP16 with an 8K context, using about 17.1 GiB, at an estimated 44 tokens/s.

Can I run Llama 3.1 8B Instruct on a Mac?

Yes. Llama 3.1 8B Instruct fits on the M3 Ultra (96 GB) at FP16 with an 8K context, using about 17.1 GiB, at an estimated 33 tokens/s.

Can Llama 3.1 8B Instruct be used commercially?

Llama 3.1 8B Instruct is released under Llama 3.1 Community License. The licence allows commercial use (read its conditions).

Sources