Llama 3.1Text LLMLlama 3.1 Community LicenseJul 2024

Llama 3.1 405B

Llama 3.1 405B is the largest open-weight Llama and arguably the highest-quality open base model ever released. At FP16 it requires ~890 GB of VRAM, meaning 8x H100 / B200 minimum; at Q4_K_M it still demands ~245 GB. It's not a homelab model — but quantized aggressively across 4x A100 80 GB it becomes usable for research workloads.

Parameters
405B
dense
Context
128K
tokens
Min VRAM (Q4)
245 GB
weights only
Run locally?
NO
needs multi-GPU
Quick answer

What hardware do I need to run Llama 3.1 405B?

Llama 3.1 405B needs at minimum 245 GB of VRAM at Q4_K_M quantization (891 GB at FP16). The cheapest GPU that comfortably fits with KV-cache headroom is the Apple Mac Studio (M3 Ultra, 512 GB) (512 GB VRAM, $9,499 MSRP). Community benchmark submissions are open. This model exceeds 48 GB at Q4, so plan for a 2-or-more-GPU split.

Source: MyAIHardware model card: Llama 3.1 405B (Llama 3.1, 405B params)As of 2024-07-23

TL;DR, what to buy

Recommended GPU
Apple Mac Studio (M3 Ultra, 512 GB)
512 GB VRAM · $9,499 MSRP
Min VRAM at Q4_K_M
245 GB
+ ~20-30% headroom for KV cache
Best measured speed
no community benchmarks yet
submit yours below

VRAM requirements by quantization

Weights only. Add ~20-30% for KV cache at typical context lengths.

QuantVRAMQualityNotes
FP16891.0 GBReferenceTraining-precision weights
Q8_0445.5 GBNear-lossless8-bit, ~0.1% perplexity hit
Q6_K360.9 GBVery high6-bit, near Q8 quality
Q5_K_M307.4 GBHighStrong middle ground
Q4_K_M245.0 GBBalanced (recommended)Default for local deployments
Q4_0250.6 GBLegacy 4-bitOlder GGUF, kept for compatibility
Q3_K_M191.6 GBLossyWhen VRAM is very tight
Q2_K142.6 GBExtremeRescue option, quality degrades visibly
Open the VRAM calculator with KV cache + batch size

GPUs that fit this model

Filtered from MyAIHardware's GPU database. FP16 needs 891.0 GB; Q4_K_M needs 245.0 GB.

At full precision (FP16)

No GPU in our database has enough VRAM for FP16. Use Q4_K_M or multi-GPU.

At Q4_K_M quantization

  • Apple Mac Studio (M3 Ultra, 256 GB)256 GB · $5,599
  • Apple Mac Studio (M3 Ultra, 512 GB)512 GB · $9,499
  • AMD Instinct MI325X256 GB · $18,000
  • AMD Instinct MI355X [VERIFY]288 GB · $25,000
  • NVIDIA GH200 Grace Hopper576 GB · $65,000

Multi-GPU splits (Q4_K_M target: 245 GB)

GPUPer-card VRAM2x4x8x
AMD Instinct MI300X192 GB
384
768
1536
Apple Mac Studio (M2 Ultra, 192 GB)192 GB
384
768
1536
Apple Mac Pro (M2 Ultra, 192 GB)192 GB
384
768
1536
NVIDIA B200180 GB
360
720
1440
NVIDIA B100180 GB
360
720
1440
NVIDIA H200141 GB
282
564
1128

Community benchmarks

We don't have community benchmarks for this exact model yet.

No benchmarks yet for this exact model. Submit your own measurement.

Where to download

Official weights + popular runtime tags.

Hugging Face
Official weights
Open on Hugging Face
Ollama
One-line install
ollama pull llama3.1:405b

Related tutorials

Step-by-step guides that use this model.

Compare with other open models

Models in a similar size or capability class.

Cite this model card

Use these in papers, blog posts, or internal docs.

BibTeX
@misc{llama-3-1-405b-2024,
  title={Llama 3.1 405B},
  author={Meta AI},
  year={2024},
  url={https://huggingface.co/meta-llama/Meta-Llama-3.1-405B-Instruct}
}
APA
Meta AI (2024). Llama 3.1 405B [Model card]. Hugging Face. https://huggingface.co/meta-llama/Meta-Llama-3.1-405B-Instruct
Plain text
Llama 3.1 405B (Llama 3.1, Meta AI, 2024). Available at https://huggingface.co/meta-llama/Meta-Llama-3.1-405B-Instruct.
Browse the full model catalog
30 deep-dive pages covering every major open model.
All 30 models