one model, 8 GPUs, every number computed
Which GPUs can run Qwen2.5 7B? Memory, speed and cost on each one
Qwen2.5 7BAlibaba Qwen
Qwen2.5 7B is Alibaba Qwen's model with 7.6 billion parameters. Its weights take 14.2 GiB in BF16, 8.1 GiB in FP8, 5.1 GiB in INT4, and every token of every conversation adds 57,344 bytes of KV cache in BF16. Here is what that means on each GPU, with the same assumptions on every page.
Qwen2.5 7B on every GPU, cheapest per token first
| GPU | Answer | Setup | People at 8,192 tokens | One person, best case | Per million tokens, busy |
|---|---|---|---|---|---|
| Can Qwen2.5 7B run on an RTX 4090? | Yes, in BF16 | 1 GPU | 13 | 53 tok/s | $0.119 |
| Can Qwen2.5 7B run on an A100 40 GB? | Yes, in BF16 | 1 GPU | 47 | 81 tok/s | $0.227 |
| Can Qwen2.5 7B run on an A100 80 GB? | Yes, in BF16 | 1 GPU | 131 | 107 tok/s | $0.241 |
| Can Qwen2.5 7B run on an H200? | Yes, in BF16 | 1 GPU | 258 | 251 tok/s | $0.264 |
| Can Qwen2.5 7B run on an H100? | Yes, in BF16 | 1 GPU | 130 | 175 tok/s | $0.284 |
| Can Qwen2.5 7B run on an L40S? | Yes, in BF16 | 1 GPU | 57 | 45 tok/s | $0.323 |
| Can Qwen2.5 7B run on an L4? | Yes, in BF16 | 1 GPU | 10 | 16 tok/s | $0.518 |
| Can Qwen2.5 7B run on an A10G? | Yes, in BF16 | 1 GPU | 10 | 31 tok/s | $0.593 |
The KV cache formula for Qwen2.5 7B:
2 x 28 layers x 4 KV heads x 128 head size x 2 bytes = 57,344 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 Qwen2.5 7B?
In its full format, an L4 (24 GB), with room for 10 people at 8,192 tokens.
What is the cheapest way to serve Qwen2.5 7B?
Of the GPUs here, one RTX 4090 in BF16 works out cheapest per token: about $0.119 per million tokens at RunPod's community cloud price, busy all the time, at the best-case speed.
Other models: Llama 3.1 8B, Llama 3.1 70B, Qwen3 0.6B, Qwen3 8B, Qwen3 32B, Mistral 7B, Mistral Small 24B, DeepSeek R1 Distill Llama 8B, DeepSeek V3, gpt-oss-20b, gpt-oss-120b.