NeuroGenesys.
Can I run it? • 405.9B dense

Can I run Llama 3.1 405B?

Last updated • By

Llama 3.1 405B needs about 261 GB of memory at 4-bit (Q4_K_M) with an 8K-token context, so it needs 4 × 80 GB GPUs, since no single card in our list holds it, or runs on a Mac with 512 GB of unified memory. At 16-bit it needs 841 GB, so it needs more than eight 80 GB GPUs.

Open Llama 3.1 405B in the VRAM calculator →

How much memory does Llama 3.1 405B need?

Llama 3.1 405B: GB of GPU memory for one request
PrecisionWeightsTotal, 8K contextTotal, 32K contextTotal, 128K context
16-bit (BF16 / FP16)812 GB841 GB854 GB905 GB
8-bit (Q8_0)431 GB449 GB462 GB513 GB
4-bit (Q4_K_M)248 GB261 GB273 GB324 GB

Total = weights + FP16 KV cache + 3% of the weights + 1 GB of runtime overhead, as in the VRAM calculator. Longer contexts are only usable up to the model's own context window; check the model card.

Which GPUs can run Llama 3.1 405B?

GPUs needed at 8K context (model split across cards)
GPU memory16-bit (BF16 / FP16)8-bit (Q8_0)4-bit (Q4_K_M)
8 GBmore than 8more than 8more than 8
12 GBmore than 8more than 8more than 8
16 GBmore than 8more than 8more than 8
24 GBRTX 3090, RTX 4090, L4more than 8more than 8more than 8
32 GBRTX 5090more than 8more than 8more than 8
40 GBA100 40GBmore than 8more than 88 cards
48 GBRTX A6000, RTX 6000 Ada, L40Smore than 8more than 88 cards
80 GBA100 80GB, H100 PCIe, H100 SXMmore than 88 cards4 cards
141 GBH2008 cards4 cards2 cards
180 GBB2008 cards4 cards2 cards
192 GBAMD MI300X8 cards4 cards2 cards

Assumes the runtime can allocate 95% of each card and every card pays the fixed overhead. Vendor memory sizes are binary (a 24 GB card holds 25.8 × 10⁹ bytes), and that is accounted for.

Can I run Llama 3.1 405B on a Mac?

Apple Silicon unified memory at 8K context
Unified memory16-bit (BF16 / FP16)8-bit (Q8_0)4-bit (Q4_K_M)
24 GBM4 Prononono
32 GBM2 Maxnonono
48 GBM3 Max (40-core GPU), M4 Pro, M4 Max (40-core GPU)nonono
64 GBM2 Max, M2 Ultra, M3 Max (40-core GPU), M4 Pro, M4 Max (40-core GPU)nonono
96 GBM2 Max, M3 Ultranonono
128 GBM2 Ultra, M3 Max (40-core GPU), M4 Max (40-core GPU)nonono
192 GBM2 Ultranonono
256 GBM3 Ultranonono
512 GBM3 Ultranonofits

macOS lets the GPU use about 75% of unified memory by default; you can raise the limit with sudo sysctl iogpu.wired_limit_mb.

How fast does Llama 3.1 405B run at 4-bit?

Estimated tokens per second for one request, Q4_K_M, 4K in context
HardwareMemory bandwidthTokens / s
Apple M3 Ultra512 GB config or larger819 GB/s2.13estimator

Decoding reads the model weights and the KV cache once per token, so speed is roughly memory bandwidth ÷ bytes per token. Assumes 70% of peak bandwidth on GPUs and 65% on Macs, one GPU or Mac holding the whole model. Only hardware that holds it alone is listed.

Questions

How much VRAM does Llama 3.1 405B need?

About 261 GB at 4-bit (Q4_K_M), 449 GB at 8-bit (Q8_0) and 841 GB at 16-bit (BF16), for one request with an 8K-token context. At 4-bit the weights are 248 GB; the rest is the KV cache and runtime overhead. With 128K tokens of context the 4-bit total rises to 324 GB.

Can I run Llama 3.1 405B on a 24 GB GPU like the RTX 4090?

Not on one card. At 4-bit it needs 261 GB, more than eight 24 GB cards.

Can I run Llama 3.1 405B on a Mac?

Yes: at 4-bit it needs a Mac with at least 512 GB of unified memory, while 16-bit needs more than any Mac we track. By default macOS lets the GPU use about 75% of unified memory, which these figures allow for.

How fast does Llama 3.1 405B run?

At 4-bit, one request generates about 2.13 tokens per second on an Apple M3 Ultra. These are estimates from memory bandwidth (70% of peak on GPUs, 65% on Macs) with 4K tokens in context; real runtimes vary.

Sources

  1. Llama 3.1 405B model card and config.json — Hugging Face

Leadership

A word from the founder — on why the brain is the blueprint, and why the next decade of intelligence will be built here.

"The brain is the universe's only proof that general intelligence is possible. We treat it as the blueprint."

From cortical interfaces to photonic silicon, every program at NeuroGenesys exists to answer one question: how does intelligence arise — and how do we build it safely.

Will Schulz

Will Schulz

Founder, NeuroGenesys • AW3 Technology