★ Reading this for free? Get 25 structured AI courses + per-chapter AI tutor — the first chapter of every course free, no card.Start free in 30 secondsOr own every course: $149 once

Llama 3.1 405B: benchmark scores and what it takes to run

Updated: September 29, 2026

Meta reports Llama 3.1 405B Instruct at 87.3 on MMLU (5-shot), 88.6 on MMLU with zero-shot chain of thought, 89.0 on HumanEval and 50.7 on GPQA. In Meta's own comparison that puts it ahead of GPT-4 (0125) and a little behind GPT-4o and Claude 3.5 Sonnet on MMLU and HumanEval.

It does not run on consumer hardware. The file Ollama pulls by default is 243 GB and the smallest published quantisation is 149 GB, so you need several 80 GB or 96 GB GPUs, or a machine with 256 GB to 512 GB of memory. If you want this family on a desktop, run Llama 3.3 70B, which is a 43 GB download.

Llama 3.1 405B MMLU, HumanEval and GPQA scores

Every number in this table is copied from Table 2 of Meta's paper, The Llama 3 Herd of Models (arXiv:2407.21783). Meta ran the evaluations, including the ones on the closed models, so treat the whole table as vendor-reported. This site has not run any of them. The paper calls the model “Llama 3 405B”; it is the same model that shipped as Llama 3.1 405B.

BenchmarkLlama 3.1 405BGPT-4 (0125)GPT-4oClaude 3.5 Sonnet
MMLU (5-shot)87.385.189.189.9
MMLU (0-shot, CoT)88.685.488.788.3
MMLU-Pro (5-shot, CoT)73.364.874.077.0
IFEval88.684.385.688.0
HumanEval (0-shot)89.086.690.292.0
MBPP EvalPlus (0-shot)88.683.687.890.5
GSM8K (8-shot, CoT)96.894.296.196.4 (0-shot)
MATH (0-shot, CoT)73.864.576.671.1
ARC Challenge (0-shot)96.996.496.796.7
GPQA (0-shot, CoT)51.141.453.659.4
BFCL (tool use)88.588.380.590.2
Nexus (tool use)58.750.356.145.7
MGSM (0-shot, CoT)91.685.990.591.6

Three details that get lost when these scores are quoted. The 87.3 is the instruction-tuned model; the model card gives the pretrained model 85.2 on the same 5-shot MMLU. GPQA is 51.1 in the paper and 50.7 in the model card, and Meta does not explain the difference. And the often-repeated claim that the 405B beats GPT-4 is true of GPT-4 (0125) in this table, not of GPT-4o, which scores 89.1 on MMLU and 90.2 on HumanEval.

The model card also reports DROP F1 84.8 for the pretrained model and 84.95 to 85.08 on MMLU translated into Portuguese, Spanish and Italian for the instruct model. To see how these scores sit against newer local and hosted models, see the AI model leaderboard.

Llama 3.1 405B hardware requirements

The default 4-bit file is 243 GB and needs about 248 GB of memory with an 8K context: four 80 GB GPUs, three 96 GB GPUs, or a CPU or Apple silicon machine with 384 GB to 512 GB of memory. The smallest file, Q2_K, is 149 GB. The arithmetic is parameters × bits per weight: 405.85 billion × 16 bits ÷ 8 is 812 GB at fp16, and the 243 GB Q4_K_M file works out to 4.8 bits per weight.

File sizes are from Ollama's llama3.1 tag list. The memory column adds 4.2 GB of KV cache for an 8K context and a 1 GB allowance for compute buffers. The KV cache is 126 layers × 8 KV heads × 128 dimensions × 2 × 2 bytes, which is 516 KB per token: 16.9 GB at 32K and 67.6 GB if you use the full 128K window. The GPU and RAM columns are what that total fits into. They are arithmetic, not measurements.

QuantisationOllama tagFileMemory (8K context)All on GPUCPU or unified memory
Q2_Kllama3.1:405b-instruct-q2_K149 GB~154 GB2 x 96 GB cards, or 2 x 80 GB with a short context192 GB RAM, or a 256 GB Mac
Q3_K_Mllama3.1:405b-instruct-q3_K_M195 GB~200 GB3 x 80 GB or 3 x 96 GB cards256 GB RAM
Q4_K_M (Ollama default)llama3.1:405b243 GB~248 GB4 x 80 GB or 3 x 96 GB cards384 GB RAM, or a 512 GB Mac
Q5_K_Mllama3.1:405b-instruct-q5_K_M287 GB~292 GB4 x 80 GB cards with little left for context; 4 x 96 GB384 GB RAM
Q6_Kllama3.1:405b-instruct-q6_K333 GB~338 GB5 x 80 GB or 4 x 96 GB cards384 GB RAM, or a 512 GB Mac
Q8_0llama3.1:405b-instruct-q8_0431 GB~436 GB6 x 80 GB cards512 GB RAM
fp16llama3.1:405b-instruct-fp16812 GB~817 GB11 x 80 GB cards1 TB RAM

In card terms, 80 GB means an NVIDIA A100 or H100 and 96 GB means an RTX PRO 6000 Blackwell. Eight 24 GB cards add up to 192 GB, which holds the Q2_K file on paper, but that is a rig with eight risers and two or three power supplies. A 24 GB or 32 GB gaming card on its own holds a tenth of the model.

Running from system RAM on a server board works with llama.cpp or Ollama and is slow, because every token reads through the whole file. No measured speed figure exists for that setup, so there is not one here. For builds that are realistic at home, see the local AI server guide, the RTX 5090 model picks and the VRAM calculator. Quantization explained covers what a 2-bit file costs in quality.

Architecture and training

Specification fields are from the model card; the layer and width figures are from the config.json of an ungated mirror, because Meta's repository sits behind a licence form.

FieldLlama 3.1 405B
Parameters405,853,388,800 (405.9B)
Layers (num_hidden_layers)126
Hidden size16384
Attention heads128 (128 dimensions each)
Key/value heads8 (grouped-query attention)
MLP intermediate size53248
Vocabulary128,256
Context length131,072 tokens (128K)
Pretraining data15 trillion+ tokens, cutoff December 2023
LanguagesEnglish, German, French, Italian, Portuguese, Hindi, Spanish, Thai
Released23 July 2024
LicenceLlama 3.1 Community License

16,000 H100s: what Meta has said about training

Meta's announcement says the 405B was trained on “over 15 trillion tokens” and that training was pushed “to over 16 thousand H100 GPUs”. The model card puts the 405B at 30.84 million GPU hours on H100-80GB hardware. Dividing one by the other gives 1,928 hours, or about 80 days, if all 16,000 GPUs ran for the whole job. That is my arithmetic from two Meta figures, not a duration Meta has stated. I could not find the “89 days” figure that circulates in any Meta source.

Inference speed: what is actually published

Meta has not published tokens-per-second figures for the 405B on H100s, and this site has not run the model, so there is no H100 speed table on this page.

The one widely quoted number is from Cerebras, which wrote on 18 November 2024 that it ran a customer workload on Llama 3.1 405B at 969 tokens per second. That is a hosted service on Cerebras's own wafer-scale hardware and the company's own claim. It says nothing about what a GPU server you own will do.

Ollama tags

llama3.1:405b is the instruct model at Q4_K_M, 243 GB. The 405b-text tags are the pretrained completion model at the same sizes. Check free disk space before you pull: the download alone is larger than most desktop SSDs.

# Instruct, Q4_K_M, 243 GB
ollama pull llama3.1:405b

# Smallest published file, Q2_K, 149 GB
ollama pull llama3.1:405b-instruct-q2_K

# What most people should pull instead: 43 GB
ollama pull llama3.3:70b

For llama.cpp, GGUF files including the IQ3 sizes Ollama does not carry are in mradermacher/Meta-Llama-3.1-405B-Instruct-GGUF. The original weights are at meta-llama/Llama-3.1-405B-Instruct.

What to run instead

Llama 3.3 70B, released on 6 December 2024, is the practical replacement. In the Llama 3.3 model card Meta lists it beside the 405B: MMLU with chain of thought 86.0 against 88.6, HumanEval 88.4 against 89.0, and IFEval 92.1 against 88.6 in the smaller model's favour. It is under a fifth of the size. The Llama 4 family followed in 2025.

ModelOllama tagDownloadFits
Llama 3.3 70Bllama3.3:70b43 GBTwo 24 GB cards, one 48 GB card, or a 64 GB Mac
Llama 3.1 70Bllama3.1:70b43 GBSame as above
Llama 4 Scoutllama4:scout67 GBOne 80 GB or 96 GB card, or a 96 GB Mac
Llama 3.1 8Bllama3.1:8b4.9 GBAn 8 GB card

Llama 4 Maverick is not a way down in size: its Ollama tag is 245 GB, the same class as the 405B. For picks by card, see the best LLM for 24 GB of VRAM and the best local models for a 24 GB GPU. The Llama 4 local setup guide covers the newer family.

Frequently asked questions

What is the official MMLU score of Llama 3.1 405B?

87.3 on 5-shot MMLU for the instruct model, and 88.6 with zero-shot chain of thought. The pretrained model scores 85.2 on 5-shot MMLU. All three are Meta's figures from the model card.

Can I run Llama 3.1 405B on an RTX 4090 or 5090?

No. The smallest file is 149 GB and those cards have 24 GB and 32 GB. Offloading the rest to system RAM needs a board with 192 GB or more and will be slow. The 70B models are the largest Llama that a two-card desktop holds.

How much disk space does it need?

149 GB for Q2_K, 243 GB for the default Q4_K_M, 431 GB for Q8_0 and 812 GB for fp16, plus whatever your tooling needs for temporary files during the download.

What licence is it under?

The Llama 3.1 Community License, which Meta describes as a custom commercial licence. The weights are downloadable, but it is not an OSI open-source licence, so read the terms before building a product on it.

Is it worth the hardware over a 70B model?

For most people I do not think so. By Meta's own numbers Llama 3.3 70B is within a few points on MMLU and HumanEval at under a fifth of the memory. The 405B makes sense if you already have the GPUs and want the strongest open Llama 3.1 weights, for example to generate synthetic data or to distil into a smaller model.

Sources

Reading now
Join the discussion

Build Real AI on Your Machine

RAG, agents, NLP, vision, and MLOps - chapters across 25 courses that take you from reading about AI to building AI.

🎯
AI Learning Path

Go from reading about AI to building with AI

25 structured courses. Hands-on projects. Runs on your machine. Start free.

Or own it for life — Lifetime $149 $599, pay once
Barsha Mohapatra

Written by

Barsha Mohapatra

Founder and Editor, Local AI Master · Founder, Little AI Master

Founder of Little AI Master and the editor behind every course and guide on Local AI Master. Years of tutoring students taught her where AI education actually fails.

📅 Published: October 4, 2025🔄 Last Updated: September 29, 2026✓ Manually Reviewed

Related Guides

Continue your local AI journey with these comprehensive guides

More on AI Models Directory
See the full AI Models Directory guide.
📚
Free · no account required

Grab the AI Starter Kit — career roadmap, cheat sheet, setup guide

No spam. Unsubscribe with one click.

🎯
AI Learning Path

Found your model? Now build something with it.

25 hands-on courses — RAG, agents, fine-tuning — all running locally. First chapter free, no card.

Or own it for life — Lifetime $149 $599, pay once
Free Tools & Calculators