one model, 8 GPUs, every number computed
Which GPUs can run Llama 3.1 70B? Memory, speed and cost on each one
Llama 3.1 70BMeta
Llama 3.1 70B is Meta's model with 71 billion parameters. Its weights take 131 GiB in BF16, 67.7 GiB in FP8, 35.8 GiB in INT4, and every token of every conversation adds 327,680 bytes of KV cache in BF16. Here is what that means on each GPU, with the same assumptions on every page.
Llama 3.1 70B on every GPU, cheapest per token first
| GPU | Answer | Setup | People at 8,192 tokens | One person, best case | Per million tokens, busy |
|---|---|---|---|---|---|
| Can Llama 3.1 70B run on an RTX 4090? | Needs 2 GPUs | 2 GPUs | 1 | 42 tok/s | $0.453 |
| Can Llama 3.1 70B run on an A100 40 GB? | Needs 2 GPUs | 2 GPUs | 13 | 64 tok/s | $0.621 |
| Can Llama 3.1 70B run on an H200? | Yes, in FP8 only | 1 GPU | 23 | 53 tok/s | $1.28 |
| Can Llama 3.1 70B run on an L40S? | Yes, in INT4 only | 1 GPU | 1 | 18 tok/s | $1.48 |
| Can Llama 3.1 70B run on an A100 80 GB? | Yes, in FP8 only | 1 GPU | 1 | 22 tok/s | $1.81 |
| Can Llama 3.1 70B run on an H100? | Yes, in FP8 only | 1 GPU | 1 | 37 tok/s | $2.36 |
| Can Llama 3.1 70B run on an L4? | Needs 4 GPUs | 4 GPUs | 2 | 13 tok/s | $2.50 |
| Can Llama 3.1 70B run on an A10G? | Needs 4 GPUs | 4 GPUs | 2 | 26 tok/s | $2.86 |
The KV cache formula for Llama 3.1 70B:
2 x 80 layers x 8 KV heads x 128 head size x 2 bytes = 327,680 bytes per token
- vLLM's default of 92% of the GPU's memory (20.7 GiB of the 22.5 GiB the driver reports on an L4), with 2 GiB per GPU kept for working space.
- A conversation of 8,192 tokens (prompt plus answer) for the yes or no; other lengths are in the KV cache table.
- Speed is the best case: 80% of the rated memory speed (what llama.cpp reached on our rented RTX 4090) and 50% of the rated compute, for a 1,024-token prompt and a 256-token answer.
- Prices are on-demand, per GPU per hour, read on 13 November 2026, with the GPU busy all the time.
Where these sums are taught
The course Hands-On Inference Engineering works each of these out on paper and then measures it on a rented GPU:
- Sizing GPU memory
- The KV cache (free to read)
- Number formats from 32 bits to 4
- When a GPU waits for memory and when it waits for maths
- Cost per million tokens
Practise choosing a GPU in the free inference engineering game, or change any assumption in the GPU memory calculator.
Questions people ask
What is the smallest GPU that can run Llama 3.1 70B?
Not in its full format on any single GPU here. Quantized, it fits on one L40S, A100 80 GB, H100, H200.
What is the cheapest way to serve Llama 3.1 70B?
Of the GPUs here, 2 RTX 4090 GPUs in INT4 works out cheapest per token: about $0.453 per million tokens at RunPod's community cloud price, busy all the time, at the best-case speed.
Other models: Llama 3.1 8B, Qwen3 0.6B, Qwen3 8B, Qwen3 32B, Qwen2.5 7B, Mistral 7B, Mistral Small 24B, DeepSeek R1 Distill Llama 8B, DeepSeek V3, gpt-oss-20b, gpt-oss-120b.