# llama3.1:8b VRAM, Download Size and Context (Ollama)

> Llama 3.1 8B (Ollama tag llama3.1:8b): 4.9GB download, 128K context; about 6.4 GB of VRAM at 4K context.

Source: https://gaodong.ai/en/models/local/llama3-1-8b

---

# llama3.1:8b: how much VRAM does it need?

Llama 3.1 8B. Run it with `ollama run llama3.1:8b`. VRAM figures are estimates: model file (the download size listed by Ollama) + KV cache (computed layer by layer from the official Hugging Face `config.json`, f16) + 1 GB headroom. `ollama ps` shows real usage.

## At a glance

| Item | Value |
|---|---|
| Download size | 4.9GB |
| Context (Ollama tag page) | 128K |
| KV cache per 1K tokens (f16, full-attention layers) | 128 MB |

## VRAM by context length

| Context | KV cache f16 | Total (f16) | Total (q8_0 KV) |
|---|---|---|---|
| 4K | 0.50 GB | 6.4 GB | 6.2 GB |
| 8K | 1.00 GB | 6.9 GB | 6.4 GB |
| 32K | 4.00 GB | 9.9 GB | 7.9 GB |
| 128K | 16.00 GB | 21.9 GB | 13.9 GB |

Ollama uses a 4096-token context by default; a `q8_0` KV cache is about half of f16 and needs Flash Attention (Ollama FAQ).

## Which GPU sizes fit it

| VRAM | 4K | 8K | 32K |
|---|---|---|---|
| 8 GB | ✅ | ✅ | — |
| 12 GB | ✅ | ✅ | ✅ |
| 16 GB | ✅ | ✅ | ✅ |
| 24 GB | ✅ | ✅ | ✅ |
| 32 GB | ✅ | ✅ | ✅ |
| 48 GB | ✅ | ✅ | ✅ |
| 80 GB | ✅ | ✅ | ✅ |

Models that do not fit still run, with part of the model in system memory on the CPU, just slower. Try other settings in the [VRAM calculator](/en/tools/vram?model=llama3.1:8b).

## FAQ

### How much VRAM does llama3.1:8b need?

About 6.4 GB at 4K context (Ollama default) and 9.9 GB at 32K with an f16 KV cache and 1 GB headroom.

### How big is the llama3.1:8b download?

The Ollama library lists 4.9GB.

## Sources

- Ollama：<https://ollama.com/library/llama3.1/tags>
- config.json：<https://huggingface.co/unsloth/Llama-3.1-8B-Instruct>

More: [all models](/en/models/) · [VRAM calculator](/en/tools/vram) · [token counter](/en/tools/token-counter)
