Model memory requirements

Llama 3.1 70B memory requirements for inference

How much GPU or accelerator memory Llama 3.1 70B needs at different precisions and context lengths, and which chips can hold it. Last reviewed 2 December 2026.

Short answer. Llama 3.1 70B needs about 158 GB in FP16, 80.6 GB in FP8 and 46.6 GB in 4-bit for a single 8,192-token sequence (weights, FP16 KV cache and a 10% allowance). Change the settings in the calculator.

Total memory by precision and context length

GB for one sequence: weights plus FP16 KV cache plus a 10% allowance. Column heads are context length in tokens.

Weight precisionWeights only2k ctx8k ctx32k ctx128k ctx
FP16 / BF16141156158167202
FP870.678.380.689.4125
INT870.678.380.689.4125
INT4 (about 4.5-bit)39.744.446.655.590.9

Each extra concurrent sequence adds its own KV cache: about 2.7 GB at 8,192 tokens in FP16, and about 42.9 GB at 131,072 tokens.

How many of each chip you need

Minimum devices by memory capacity, for one 8,192-token sequence with an FP16 KV cache. Green means it fits on a single device.

ChipMemoryFP16FP84-bit
NVIDIA H100 SXM80 GB221
NVIDIA H200 SXM141 GB211
NVIDIA B200 SXM (HGX)180 GB111
NVIDIA Rubin288 GB111
NVIDIA A100 80GB80 GB221
NVIDIA L40S48 GB421
AMD Instinct MI300X192 GB111
AMD Instinct MI325X256 GB111
AMD Instinct MI355X288 GB111
Intel Gaudi 3128 GB211
Intel Crescent Island160 GB111
Google TPU v5e16 GiB1053
Google TPU v5p95 GiB211
Google TPU v7 (Ironwood / TPU7x)192 GiB111
AWS Trainium296 GiB211
AWS Inferentia232 GiB532
NVIDIA RTX PRO 6000 Blackwell96 GB211
NVIDIA DGX Spark (GB10)128 GB211
NVIDIA RTX 309024 GB742
NVIDIA RTX 409024 GB742
NVIDIA RTX 509032 GB532
AMD Radeon RX 7900 XTX24 GB742
Apple M4 Max (128 GB config)128 GB211
Apple M3 Ultra (256 GB config)256 GB111

On the largest accelerator in the table (NVIDIA Rubin, 288 GB), Llama 3.1 70B needs at least 1 device in FP16 and 1 in 4-bit. Unified-memory machines share their pool with the operating system, so usable capacity is lower than the headline figure. On-chip SRAM designs (Groq, Cerebras) are covered in the calculator. Memory figures link to their vendor sources there.

Model architecture used

Parameters70.55 billion
Layers80
AttentionGrouped-query: 8 KV heads, head dimension 128
KV cache per token327.7 KB (FP16), 163.8 KB (FP8)

Read from the published config.json on 2026-12-02.

Questions about Llama 3.1 70B memory

How much GPU memory does Llama 3.1 70B need for inference?

The weights alone take about 141 GB in FP16, 70.6 GB in FP8 or INT8, and 39.7 GB in 4-bit group quantisation. Adding a 10% runtime allowance and the KV cache for one 8,192-token sequence (FP16 cache), the total comes to about 158 GB in FP16, 80.6 GB in FP8 and 46.6 GB in 4-bit.

How many H100s do I need to run Llama 3.1 70B?

By capacity alone, at least 2 H100s (80 GB each) for FP16, 2 for FP8 and 1 for 4-bit, at an 8,192-token context and one sequence. Tensor-parallel setups usually use a power of two, which makes the practical counts 2, 2 and 1. This counts memory only; speed depends on bandwidth and interconnect.

Can Llama 3.1 70B run on a single RTX 4090 or RTX 5090?

No. Even 4-bit needs about 46.6 GB at an 8,192-token context, more than the 24 GB of an RTX 4090 or the 32 GB of an RTX 5090. A longer context or more concurrent requests raises the total. Offloading to system RAM can make a larger model load, but at a large cost in speed.

How much memory does the Llama 3.1 70B KV cache use?

327.7 KB per token with an FP16 cache (163.8 KB with FP8). One 131,072-token sequence therefore takes about 42.9 GB in FP16 (21.5 GB in FP8), and every extra concurrent 8,192-token sequence adds about 2.7 GB.

Things to know

Other models

All model memory requirements ยท Open Llama 3.1 70B in the calculator