Can an RX 7900 XTX run GPT OSS 20B?
Yes
At MXFP4 it needs 11.55 GB of the 23.2 GB available and generates around 146 tokens per second at an 8k context window.
In practice
GPT OSS 20B sits comfortably on RX 7900 XTX. At MXFP4 it takes 11.55 GB of the 23.2 GB available, which leaves 11.65 GB spare, enough for the 8k window we assumed and for a window of up to about 128k tokens before memory runs out. Generation runs at about 146 tokens per second, well past the speed anyone reads at, so a 500-token answer takes about 3 seconds.
Of the memory in use, 95% is the weights and 2% is the attention cache. There is no higher-quality file to step up to, so the spare memory is best spent on a longer window.
Reading a 4,000-token prompt, roughly a long email or a few pages of text, takes under a second before the first word appears. That part is limited by compute and not by bandwidth, so it follows a different spec from the writing speed.
The numbers
GPT OSS 20B has 20.91 billion parameters across 24 layers, of which 4.18 billion are read for each token. The Radeon RX 7900 XTX has 24 GB of VRAM at 960 GB/s, of which about 23.2 GB is left for a model once the operating system has taken its share.
| Quantization | Total needed | Fits | Speed |
|---|---|---|---|
| MXFP4 | 11.55 GB | yes | 146 t/s |
1 of the 1 levels fit entirely. Levels marked degraded are listed for completeness, not as advice. This model is published in a single native format, so every row is the same file.
How long a conversation it holds
Memory rises with the length of the conversation because the attention cache keeps a key and a value for every token. At MXFP4, the longest window that still fits on this device is 128k tokens. Setting the window to what you need and no more is the cheapest way to buy back memory.
| Context | Cache | Total | Fits |
|---|---|---|---|
| 4k | 0.1 GB | 11.46 GB | yes |
| 8k | 0.19 GB | 11.55 GB | yes |
| 16k | 0.38 GB | 11.74 GB | yes |
| 32k | 0.75 GB | 12.11 GB | yes |
| 64k | 1.5 GB | 12.86 GB | yes |
| 128k | 3 GB | 14.36 GB | yes |
The settings we would use
llama-server -m <model>.gguf -ngl all -c 8192 -fa on
In Ollama, set OLLAMA_CONTEXT_LENGTH to the window you want, run ollama ps while the model is loaded and check that
the processor column reads 100% GPU. If it shows a split on a model that fits, the Ollama guide shows how to fix it.
The llama.cpp flags guide explains each option above.
What else an RX 7900 XTX runs well
For comparison, these are the other popular models that fit this device at a sound quantization, best pairings first.
| Model | Quantization | Memory | Speed |
|---|---|---|---|
| Qwen3.5 27B | Q6_K | 21.33 GB | 28.7 t/s |
| Gemma 4 31B Instruct | Q4_K_M | 21.31 GB | 28.7 t/s |
| Qwen3 32B | Q4_K_M | 20.42 GB | 30.0 t/s |
| Gemma 4 12B Instruct | Q8_0 | 13.55 GB | 45.6 t/s |
The same model on nearby hardware
Memory decides whether GPT OSS 20B loads and bandwidth decides how quickly it answers. Here is what a step down, a card with the same memory and a step up do with it.
| Device | Memory | Bandwidth | Result |
|---|---|---|---|
| GeForce RTX 5080 | 16 GB | 960 GB/s | MXFP4, 172 t/s |
| GeForce RTX 4090 | 24 GB | 1008 GB/s | MXFP4, 180 t/s |
| GeForce RTX 5090 | 32 GB | 1792 GB/s | MXFP4, 320 t/s |
See how fast it feels
Radeon RX 7900 XTX running GPT OSS 20B at MXFP4
YouWhy does my model use more memory when the conversation gets longer?
Reading your question
Simulated from our estimate at a 512-token question, not a recording. Assumes nothing else is competing for the GPU.
Questions people ask
How much VRAM does GPT OSS 20B need on RX 7900 XTX?
At MXFP4 with an 8k context window it needs 11.55 GB in total: 10.99 GB of weights, 0.19 GB of KV cache and 0.37 GB of runtime overhead. The Radeon RX 7900 XTX makes about 23.2 GB available once the operating system has taken its share.
What context length can RX 7900 XTX handle with GPT OSS 20B?
At MXFP4 the longest window that still fits is about 128k tokens. Memory grows with the window, so a shorter one leaves room for a higher quantization.
How fast is GPT OSS 20B on RX 7900 XTX?
We estimate about 146 tokens per second at MXFP4, which is faster than most people read. A 500-token answer takes about 3 seconds. Memory bandwidth of 960 GB/s sets that ceiling, and the estimate is good to about 10 to 30 percent.
Keep going
Everything the Radeon RX 7900 XTX runs, the full breakdown for GPT OSS 20B, how the numbers are made in the methodology, or a different pairing in the calculator.