Can an RTX 4090 run GPT OSS 20B?

Yes

Yes. At Q8_0 it needs 21.47 GB of the 23.2 GB available and generates around 199.6 tokens per second at an 8k context window.

The numbers

GPT OSS 20B has 20.91 billion parameters across 24 layers, of which 4.18 billion are read for each token. The GeForce RTX 4090 has 24 GB of VRAM at 1008 GB/s, of which about 23.2 GB is left for a model once the operating system has taken its share.

QuantisationTotal neededFitsSpeed
Q8_0 21.47 GB yes 199.6 t/s
Q6_K 16.75 GB yes 258.5 t/s
Q5_K_M 14.63 GB yes 297.9 t/s
Q4_K_M 12.54 GB yes 350.8 t/s
IQ4_XS 11.13 GB yes 398.5 t/s
Q3_K_M 10.3 GB yes 433.1 t/s
IQ3_XXS degraded 8.23 GB yes 552.9 t/s
Q2_K degraded 8.94 GB yes 505.2 t/s
IQ2_XXS degraded 5.8 GB yes 819.8 t/s

9 of the 9 levels fit. Levels marked degraded are listed for completeness, not as advice.

How long a conversation it holds

At Q8_0, memory rises with the length of the conversation because the attention cache keeps a key and value for every token. The longest window that still fits on this device is 64k tokens.

ContextCacheTotalFits
4k 0.01 GB 21.39 GB yes
8k 0.01 GB 21.47 GB yes
16k 0.01 GB 21.65 GB yes
32k 0.01 GB 22 GB yes
64k 0.01 GB 22.7 GB yes
128k 0.01 GB 24.11 GB no

See how fast it feels

GeForce RTX 4090 running GPT OSS 20B at Q8_0

Wait for the first word34 ms
Then writes at199.6 tok/s
Whole answer901 ms

YouWhy does my model use more memory when the conversation gets longer?

Model

Because of the KV cache. Every token you send leaves behind a key and a value vector in each layer of the model, and those stay in memory for as long as the conversation lasts.

The weights are a fixed cost: load a 4-bit 8B model and that is about 4.8 GB, whether you write one word or ten thousand. The cache is the part that grows, and it grows in a straight line with the number of tokens in the window.

How steeply depends on the model's attention design. With grouped-query attention, several query heads share one key-value pair, which cuts the cache by that ratio. Without it, every head keeps its own, and a long context can cost more memory than the weights themselves.

If you are short on memory, the first thing to try is lowering the context window in your runtime, not the quantisation.

Simulated from our estimate at a 512-token question, not a recording. Assumes nothing else is competing for the GPU. The same answer on RTX 3060 12GB at IQ4_XS would take about 1.4 s.

Keep going

Everything the GeForce RTX 4090 runs, the full breakdown for GPT OSS 20B, or check a different pairing in the calculator.