Skip to content
English

Switch theme

// Llama · Text LLM

Llama-3.1-405B: VRAM & local deployment

405.9B parameters. About 275 GB at 4-bit and 898 GB at BF16 with one 8K-token request.

released 2024-07-16licence: Commercial with conditionsmemory figures are estimates

01Specs

PublisherMeta · meta-llama
Family / seriesLlama · Llama-3.1
TypeText LLM (text-generation)
Parameters405.9B Source: counted from official safetensors weights
Context length128K tokens (131,072)max_position_embeddings in config.json
Architecture126 layers · GQA
Released weightsBF16 · 812 GBdownload
LicenceLlama 3.1 Community · Commercial with conditionsCommercial use allowed under the publisher’s own licence terms (user caps, acceptable-use policy, attribution or region limits). Read it before shipping.
Released2024-07-16 (Hugging Face repo created)
AccessGated: accept the licence on Hugging Face before downloading.

02How much VRAM it needs (estimate)

Total = weights + 10% + 0.5GB overhead + KV cache for one request (FP16 KV). More concurrent users multiply the KV column.

PrecisionWeightsTotal @ 8KTotal @ 32KTotal @ 128KSmallest GPUMac
BF16 / FP16 (original)812 GB 898 GB910 GB961 GB 8 × H200 (1,128GB)—
FP8 / INT8 / Q8_0431 GB 479 GB492 GB542 GB 8 × H100 (640GB)—
4-bit (Q4_K_M / AWQ / GPTQ-Int4)246 GB 275 GB288 GB339 GB 4 × RTX PRO 6000 (384GB)Mac 512GB

KV cache per request: 8K 4.2 GB · 32K 16.9 GB · 128K 67.7 GB

Bits per weight: BF16 16, FP8 8.5, 4-bit 4.85. “Fits” = total ≤ 90% of memory; Mac GPU can use ~2/3 of unified memory (≤36GB) or ~3/4 (larger). For MoE, all experts must be in memory, so size by total parameters. Method →

03How to run it

Only runtimes the publisher or the runtime’s official library names for this model.

ollama run llama3.1:405b

Which inference engine to choose →

04Official repositories & quantised builds

4 official repo(s) from meta-llama.

05Other Llama models

All 16 →
ModelParams4-bit totalReleased
Llama-3.1-8B-Instruct · same series8.03B6.9 GB2024-07-18
Llama-3.1-70B-Instruct · same series70.6B50.2 GB2024-07-16
Llama-Prompt-Guard-2-22M71M0.5 GB2025-04-28
Llama-Prompt-Guard-2-86M279M0.7 GB2025-04-28
Llama-Guard-4-12B12B8.5 GB2025-04-23
Llama-4-Scout-17B-16E-Instruct108.6B73.0 GB2025-04-02
Llama-4-Maverick-17B-128E-Instruct401.6B268 GB2025-04-01
Llama-3.3-70B-Instruct70.6B50.2 GB2024-11-26
Llama-Guard-3-1B1.5B1.5 GB2024-09-20
Llama-Guard-3-11B-Vision10.7B7.6 GB2024-09-20

06Sources

Data checked 2024-09-25. Parameters, context and licence are copied from the official repository; memory figures are our estimates.

Data updated: Self-host open models(UTC+8)