worked from the real config file, every number computed
Can gpt-oss-120b run on an A100 40 GB? Memory, speed and cost, with the sums shown
gpt-oss-120bOpenAIA100 40 GBNVIDIA, 40 GB
Not on one GPU
Not on one A100 40 GB. In MXFP4, the format it is published in, its weights take 60.8 GiB, and vLLM uses 36.8 GiB of each card, so it needs 2 A100 40 GB GPUs in one machine (tensor parallel 2). Split that way, there is room for 30 conversations of 8,192 tokens at once.
- 60.8 GiBweights in MXFP4
- 30people at 8,192 tokens on 2 GPUs
- 854 tok/sone person, memory-speed ceiling
- $0.380per million tokens, busy, cheapest price listed
Try it yourself: change the setup and watch the memory fill
A live calculator for gpt-oss-120b on an A100 40 GB: 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 (36.8 GiB of the 40 GiB the driver reports on an A100 40 GB), 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.
gpt-oss-120b is OpenAI's model, read from openai/gpt-oss-120b: 117 billion parameters, of which 5.1 billion are used for each token (a mixture of experts, 4 of 128 experts per layer), 36 layers, 8 KV heads, and conversations of up to 131,072 tokens. The A100 40 GB has 40 GB of memory that it reads at 1,555 GB a second, and 312 trillion BF16 operations a second, with no FP8 maths. Source: NVIDIA A100 datasheet PDF.
Half its layers look back only 128 tokens, so their cache stops growing. The experts ship in 4-bit MXFP4.
Will the weights fit? gpt-oss-120b 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. gpt-oss-120b is published in a compact format, so this page uses the published file size.
| Format | Weights | On one A100 40 GB | People at 8,192 tokens on one | Smallest setup that fits | One person, best case |
|---|---|---|---|---|---|
| MXFP4, as published | 60.8 GiB | Does not fit | 0 | 2 GPUs (TP 2) | 854 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 gpt-oss-120b that is:
2 x 18 full-attention layers x 8 KV heads x 64 head size x 2 bytes = 36,864 bytes per token
On 2 A100 40 GB GPUs in one machine (tensor parallel 2) in MXFP4, 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. Half of gpt-oss-120b's layers only look back 128 tokens, so their part of the cache stops growing; that is why long conversations cost it far less than a dense model.
| Tokens per conversation | KV cache per person (BF16) | People at once, BF16 cache | People at once, FP8 cache |
|---|---|---|---|
| 4,096 | 149 MiB | 60 | 121 |
| 8,192 | 293 MiB | 30 | 61 |
| 32,768 | 1.1 GiB | 7 | 15 |
| 131,072 | 4.5 GiB | 1 | 3 |
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 gpt-oss-120b writes on an A100 40 GB
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 | 34 ms | 854 | 854 | memory speed |
| 16 | 34 ms | 91 | 1,461 | memory speed |
These are ceilings, not measurements. A real server also spends time on scheduling, launching GPU kernels, sampling and the network, and with 2 GPUs on the GPUs exchanging results after every layer, which this estimate leaves out. For a mixture of experts like gpt-oss-120b the gap is usually wider, because each step reads so few bytes that those fixed costs take a large share of the time. 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 gpt-oss-120b costs per million tokens on a rented A100 40 GB
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:
$1.00 x 2 GPUs / (1,461 tokens a second x 3,600) x 1,000,000 = $0.380
| Where | Per GPU per hour | Per million tokens, one person | Per million tokens, 16 people |
|---|---|---|---|
| RunPod, community cloud | $1.00 | $0.650 | $0.380 |
| AWS, p4d.24xlarge, us-east-1 ($21.9576 an hour for 8 GPUs) | $2.74 | $1.78 | $1.04 |
| Google Cloud, a2-highgpu-1g, us-central1 | $3.67 | $2.39 | $1.40 |
The cost comes from the best-case speed, so a real bill per token is higher. Some clouds only rent this GPU eight at a time; the price above is one GPU's share, and you pay for all eight. 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 gpt-oss-120b instead
If you want gpt-oss-120b without splitting or squeezing it, one A100 80 GB ($0.403 per million tokens) or one H200 ($0.442 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 | Needs 4 GPUs | 68 | 1,108 tok/s | $0.200 |
| A100 80 GB | Yes, in MXFP4 | 37 | 560 tok/s | $0.403 |
| H200 | Yes, in MXFP4 | 232 | 1,319 tok/s | $0.442 |
| H100 | Yes, in MXFP4 | 36 | 920 tok/s | $0.475 |
| L40S | Needs 2 GPUs | 63 | 475 tok/s | $0.541 |
| L4 | Needs 4 GPUs | 49 | 330 tok/s | $0.868 |
| A10G | Needs 4 GPUs | 49 | 659 tok/s | $0.992 |
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 the KV cache
- Why newer models need a smaller 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
- Why split a model across GPUs
- Tensor parallelism
- Mixture-of-experts models and expert parallelism
- 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 gpt-oss-120b run on an A100 40 GB?
Not on one A100 40 GB. In MXFP4, the format it is published in, its weights take 60.8 GiB, and vLLM uses 36.8 GiB of each card, so it needs 2 A100 40 GB GPUs in one machine (tensor parallel 2). Split that way, there is room for 30 conversations of 8,192 tokens at once.
How much GPU memory does gpt-oss-120b need?
Its weights take 60.8 GiB in MXFP4. On top of that, every token of every conversation keeps 36,864 bytes of KV cache in BF16 (18,432 bytes in FP8), so one person at 8,192 tokens adds 293 MiB. Allow about 2 GiB more per GPU for working space.
How many people can use gpt-oss-120b at once on an A100 40 GB?
With 2 A100 40 GB GPUs in one machine (tensor parallel 2) in MXFP4, the KV cache has room for 30 conversations of 8,192 tokens at once, or 61 if you store the cache in FP8 (--kv-cache-dtype fp8). Shorter conversations fit more people, longer ones fewer.
How fast is gpt-oss-120b on an A100 40 GB?
At best about 854 tokens a second for one person, with the first token after about 34 ms for a 1,024-token prompt. With 16 people at once each gets about 91 tokens a second, 1,461 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 gpt-oss-120b on an A100 40 GB?
At RunPod's community cloud price of $1.00 per GPU per hour (read 13 November 2026), 2 GPUs cost about $0.380 per million tokens written when 16 people use it at once and it is busy all the time, and $0.650 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 gpt-oss-120b instead of an A100 40 GB?
gpt-oss-120b fits in MXFP4 on one A100 80 GB, with room for 37 people at 8,192 tokens, at about $0.403 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 gpt-oss-120b, every model on an A100 40 GB, 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.