worked from the real config file, every number computed
Can Qwen3 32B run on an L40S? Memory, speed and cost, with the sums shown
Qwen3 32BAlibaba QwenL40SNVIDIA, 48 GB
Yes, with quantizing
Yes, but only in FP8. In BF16 its weights take 61.0 GiB, which does not leave room on an L40S (vLLM uses 41.4 GiB of it). In FP8 they take 32.0 GiB, which leaves room for 3 conversations of 8,192 tokens at once.
- 32.0 GiBweights in FP8
- 3people at 8,192 tokens
- 20 tok/sone person, memory-speed ceiling
- $0.777per million tokens, busy, cheapest price listed
Try it yourself: change the setup and watch the memory fill
A live calculator for Qwen3 32B on an L40S: pick the number format, the conversation length, how many people and how many GPUs, and see the memory bar, the verdict, the speed and the cost change at once. It runs the same maths as this page, in your browser.
What these numbers assume
- vLLM's default of 92% of the GPU's memory (41.4 GiB of the 45 GiB the driver reports on an L40S), 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.
Qwen3 32B is Alibaba Qwen's model, read from Qwen/Qwen3-32B: 33 billion parameters, 64 layers, 8 KV heads, and conversations of up to 40,960 tokens. The NVIDIA L40S has 48 GB of memory that it reads at 864 GB a second, and 362 trillion BF16 operations a second, 733 trillion in FP8. Source: nvidia.com L40S page (dense column), saved as nvidia/l40s.txt.
Will the weights fit? Qwen3 32B in each number format
The weights are the model itself: every parameter, stored in some number format. They must sit in GPU memory before anything else, and what is left over holds the KV cache, the notes the model keeps on every conversation. Quantized formats shrink every weight except the embedding table and the output head, which stay in BF16, so a 4-bit model is a little more than a quarter of its 16-bit size.
| Format | Weights | On one L40S | People at 8,192 tokens on one | Smallest setup that fits | One person, best case |
|---|---|---|---|---|---|
| BF16 (16-bit) | 61.0 GiB | Does not fit | 0 | 2 GPUs (TP 2) | 21 tok/s |
| FP8 (8-bit) | 32.0 GiB | Fits | 3 | 1 GPU | 20 tok/s |
| INT4 (4-bit, AWQ or GPTQ) | 17.4 GiB | Fits | 10 | 1 GPU | 36 tok/s |
Why fewer bits make a model smaller and faster, and what it costs in quality, is taught in the lesson Number formats from 32 bits to 4.
How many people fit: the KV cache at each conversation length
Every token of every conversation keeps a key and a value in every layer. For Qwen3 32B that is:
2 x 64 layers x 8 KV heads x 128 head size x 2 bytes = 262,144 bytes per token
On one L40S in FP8, the room left after the weights and the working space is shared by everyone using the model at once. Storing the cache in FP8 halves it, so about twice as many people fit.
| Tokens per conversation | KV cache per person (BF16) | People at once, BF16 cache | People at once, FP8 cache |
|---|---|---|---|
| 4,096 | 1.0 GiB | 7 | 14 |
| 8,192 | 2.0 GiB | 3 | 7 |
| 32,768 | 8.0 GiB | 0 | 1 |
| 40,960 | 10.0 GiB | 0 | 1 |
How to read these numbers straight from a model's config file, and why long chats slow down, is taught in the lesson The KV cache, free to read.
How fast Qwen3 32B writes on an L40S
Writing an answer reads every weight once for each new token (for a mixture of experts, only the experts the tokens chose) plus every person's KV cache. So the time per token is at least the bytes read divided by the memory speed, or the maths divided by the compute speed, whichever is longer. Reading the prompt does far more maths per byte, so it is limited by compute.
| People at once | First token after (one prompt alone) | Tokens a second each | Tokens a second in total | Waiting on |
|---|---|---|---|---|
| 1 | 186 ms | 20 | 20 | memory speed |
| 16 | 186 ms | 18 | 282 | memory speed |
These are ceilings, not measurements. A real server also spends time on scheduling, launching GPU kernels, sampling and the network. Batching is why the total grows: one read of the weights serves all 16 people in the same step. Measure with a benchmark before you plan a budget.
The roofline behind this table, worked on paper and then measured on a rented GPU, is taught in the lesson When a GPU waits for memory and when it waits for maths.
What Qwen3 32B costs per million tokens on a rented L40S
You pay for a GPU by the hour, busy or not. The cost of a million tokens is the hourly price of the GPUs divided by the tokens they write in an hour:
$0.790 x 1 GPU / (282 tokens a second x 3,600) x 1,000,000 = $0.777
| Where | Per GPU per hour | Per million tokens, one person | Per million tokens, 16 people |
|---|---|---|---|
| RunPod, community cloud | $0.790 | $10.99 | $0.777 |
| RunPod, secure cloud | $1.09 | $15.17 | $1.07 |
| AWS, g6e.xlarge, us-east-1 | $1.86 | $25.89 | $1.83 |
The cost comes from the best-case speed, so a real bill per token is higher. A GPU that waits for requests at night costs the same per hour, so a service that is busy a third of the time pays about three times as much per token.
Working out the cost per million tokens from a real benchmark, and comparing it with an API, is taught in the lesson Cost per million tokens.
Which GPU to pick for Qwen3 32B instead
If you want Qwen3 32B without splitting or squeezing it, one A100 80 GB ($1.04 per million tokens) or one H200 ($1.14 per million tokens) are the cheapest per token of the GPUs here.
| GPU | Answer | People at 8,192 tokens | One person, best case | Per million tokens, busy |
|---|---|---|---|---|
| RTX 4090 | Yes, in INT4 only | 1 | 42 tok/s | $0.309 |
| A100 40 GB | Yes, in FP8 only | 1 | 36 tok/s | $0.919 |
| A100 80 GB | Yes, in BF16 | 5 | 25 tok/s | $1.04 |
| H200 | Yes, in BF16 | 33 | 58 tok/s | $1.14 |
| H100 | Yes, in BF16 | 5 | 41 tok/s | $1.23 |
| L4 | Needs 2 GPUs | 2 | 14 tok/s | $1.25 |
| A10G | Needs 2 GPUs | 2 | 28 tok/s | $1.42 |
Learn to work these numbers out yourself
Every sum on this page is taught, then measured on a rented GPU, in the course Hands-On Inference Engineering. The lessons behind this page:
- Sizing GPU memory
- The KV cache (free to read)
- Number formats from 32 bits to 4
- Quantizing a model's weights
- Quantizing the KV cache
- Why writing is limited by memory speed
- When a GPU waits for memory and when it waits for maths
- Batching: serving many people at once
- Cost per million tokens
- Reading a GPU spec sheet
To change the assumptions, use the free GPU memory calculator, the latency estimator and the cost calculator, which run the same maths. To practise the trade-offs as decisions, play the free inference engineering game.
Questions people ask
Can Qwen3 32B run on an L40S?
Yes, but only in FP8. In BF16 its weights take 61.0 GiB, which does not leave room on an L40S (vLLM uses 41.4 GiB of it). In FP8 they take 32.0 GiB, which leaves room for 3 conversations of 8,192 tokens at once.
How much GPU memory does Qwen3 32B need?
Its weights take 61.0 GiB in BF16, 32.0 GiB in FP8, 17.4 GiB in INT4. On top of that, every token of every conversation keeps 262,144 bytes of KV cache in BF16 (131,072 bytes in FP8), so one person at 8,192 tokens adds 2.0 GiB. Allow about 2 GiB more per GPU for working space.
How many people can use Qwen3 32B at once on an L40S?
With one L40S in FP8, the KV cache has room for 3 conversations of 8,192 tokens at once, or 7 if you store the cache in FP8 (--kv-cache-dtype fp8). Shorter conversations fit more people, longer ones fewer.
How fast is Qwen3 32B on an L40S?
At best about 20 tokens a second for one person, with the first token after about 186 ms for a 1,024-token prompt. With 16 people at once each gets about 18 tokens a second, 282 in total. These are ceilings worked out from the GPU's memory speed and compute, at 80% of the rated memory speed; a real server is slower, so measure before you plan.
How much does it cost to run Qwen3 32B on an L40S?
At RunPod's community cloud price of $0.790 per GPU per hour (read 13 November 2026), it cost about $0.777 per million tokens written when 16 people use it at once and it is busy all the time, and $10.99 for one person alone. An idle GPU costs the same per hour, so a quieter service pays more per token.
Which GPU should I use for Qwen3 32B instead of an L40S?
Qwen3 32B fits in BF16 on one A100 80 GB, with room for 5 people at 8,192 tokens, at about $1.04 per million tokens at RunPod's price. Of the GPUs on this site it is the cheapest per token that runs the model without splitting or squeezing it.
More: every GPU for Qwen3 32B, every model on an L40S, or the full table of models and GPUs. Model sizes come from each model's config file on Hugging Face, GPU numbers from NVIDIA's datasheets (dense, without sparsity) and prices from RunPod, AWS and Google Cloud, all read on 13 November 2026.