one model, 8 GPUs, every number computed
Which GPUs can run Qwen3 8B? Memory, speed and cost on each one
Qwen3 8BAlibaba Qwen
Qwen3 8B is Alibaba Qwen's model with 8.2 billion parameters. Its weights take 15.3 GiB in BF16, 8.8 GiB in FP8, 5.6 GiB in INT4, and every token of every conversation adds 147,456 bytes of KV cache in BF16. Here is what that means on each GPU, with the same assumptions on every page.
Qwen3 8B on every GPU, cheapest per token first
| GPU | Answer | Setup | People at 8,192 tokens | One person, best case | Per million tokens, busy |
|---|---|---|---|---|---|
| Can Qwen3 8B run on an RTX 4090? | Yes, in BF16 | 1 GPU | 4 | 49 tok/s | $0.140 |
| Can Qwen3 8B run on an A100 40 GB? | Yes, in BF16 | 1 GPU | 17 | 75 tok/s | $0.267 |
| Can Qwen3 8B run on an A100 80 GB? | Yes, in BF16 | 1 GPU | 50 | 99 tok/s | $0.283 |
| Can Qwen3 8B run on an H200? | Yes, in BF16 | 1 GPU | 99 | 232 tok/s | $0.310 |
| Can Qwen3 8B run on an H100? | Yes, in BF16 | 1 GPU | 49 | 162 tok/s | $0.333 |
| Can Qwen3 8B run on an L40S? | Yes, in BF16 | 1 GPU | 21 | 42 tok/s | $0.379 |
| Can Qwen3 8B run on an L4? | Yes, in BF16 | 1 GPU | 3 | 15 tok/s | $0.608 |
| Can Qwen3 8B run on an A10G? | Yes, in BF16 | 1 GPU | 3 | 29 tok/s | $0.695 |
The KV cache formula for Qwen3 8B:
2 x 36 layers x 8 KV heads x 128 head size x 2 bytes = 147,456 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 Qwen3 8B?
In its full format, an L4 (24 GB), with room for 3 people at 8,192 tokens.
What is the cheapest way to serve Qwen3 8B?
Of the GPUs here, one RTX 4090 in BF16 works out cheapest per token: about $0.140 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 32B, Qwen2.5 7B, Mistral 7B, Mistral Small 24B, DeepSeek R1 Distill Llama 8B, DeepSeek V3, gpt-oss-20b, gpt-oss-120b.