Reasoning

What GPU do I need to run openai/gpt-oss-20b?

A 21B (MoE) reasoning model whose MXFP4 weights run within 16GB. 20.9B parameters, published in MXFP4. View on Hugging Face

20.9B
Parameters
MXFP4
Native precision
128K tokens (131,072)
Context length
Apache 2.0
License
Text
Modality
OpenAI
Organization
Mixture-of-experts: 4 of 32 experts active per token (3.6B active parameters, stated on the model card)
Active parameters (MoE)

What gpt-oss-20b is

gpt-oss-20b is a 21B-parameter mixture-of-experts language model published by OpenAI on Hugging Face, the smaller of two open-weight gpt-oss models aimed at lower-latency, local and specialized use cases. Its MoE weights are post-trained in MXFP4 precision, which the model card says is what lets it run within 16GB of memory. It supports configurable reasoning effort (low, medium, high), function calling, web browsing and Python code execution, and is released under Apache 2.0.

License note: fully permissive, no gating and no usage restrictions. Facts in this section are sourced from gpt-oss-20b's Hugging Face model card, not benchmarked by Aquanode.

What it's used for

  • Low-latency and local/on-device inference
  • Reasoning and chain-of-thought tasks
  • Agentic tool use and function calling

VRAM required & cheapest live GPU fit

Required VRAM = weight size at each precision times a flat 1.2 overhead for activations and fragmentation. The KV-cache grows with context and is not in that factor; it is listed per model below where the architecture is published. Full formula and assumptions: methodology.

PrecisionWeight sizeRequired VRAMCheapest live fitGPUs neededEst. $/hr (full fit)
MXFP4 (native)12.8 GB16.0 GBRTX 5060 Ti1$0.165/hr

A GPU is only matched to a row if its hardware supports that precision, and the primary recommendation is always a single-GPU fit when one exists.

OpenAI's own model card: MXFP4-quantized MoE weights let gpt-oss-20b run within 16GB of memory.

Cheapest way to run gpt-oss-20b at its published (MXFP4) precision: 1× RTX 5060 Ti, at $0.165/hr per GPU ($0.165/hr total).

gpt-oss-20b: KV cache by context length

The KV cache is the memory the attention layers hold for every token of context, on top of the weights. It is not part of the flat 1.2x overhead in the table above, grows with context length and with every concurrent request, and is why a long-context deployment needs more VRAM than the table shows.

Sliding-window attention: windowed layers stop growing at the window, the full-attention layers keep growing. Cached per token: 49,152 bytes at 16-bit while the context is inside the window.

ContextKV cache, one sequence
4K0.10 GB
32K0.75 GB
128K3.0 GB

Computed from the layer, head and window counts in the model's own configuration (openai/gpt-oss-20b), at 16 bits per cached value. Each concurrent sequence needs its own cache, on top of the weights.

How to run gpt-oss-20b

Run gpt-oss-20b with vLLM

From openai/gpt-oss-20b's own model card (requires vllm>=0.10.1+gptoss).

vllm serve openai/gpt-oss-20b

Source: https://huggingface.co/openai/gpt-oss-20b/raw/main/README.md

Run gpt-oss-20b with Ollama

From the model card's own Ollama instructions; verified against Ollama's own library listing.

ollama run gpt-oss:20b

Source: https://ollama.com/library/gpt-oss

Run gpt-oss-20b with GGUF quantizations

Prebuilt GGUF weights published at unsloth/gpt-oss-20b-GGUF. Run with llama.cpp's llama-server or load the repo directly in LM Studio.

llama-server -hf unsloth/gpt-oss-20b-GGUF

Source: https://huggingface.co/unsloth/gpt-oss-20b-GGUF

Deploy gpt-oss-20b on Aquanode

Aquanode has no one-click deploy template for gpt-oss-20b; you install the inference engine yourself with the commands below. Aquanode sells GPU pods billed per second, not a hosted inference API.

  1. Launch a bare GPU pod sized to the requirement above (1× RTX 5060 Ti or larger).
  2. Open a terminal on the pod, or save one of the commands above as a startup script so it runs automatically the first time the pod boots.
  3. Run the command and connect to the resulting endpoint.
Launch a GPU pod

Weight-to-VRAM math, the fit rules, and how live prices are normalized: full methodology.

More gpt-oss models

All 6 gpt-oss models: VRAM and GPU requirements

Lineage

Quantized and fine-tuned versions

Alternatives at this size

Other models for text-generation within about a third of gpt-oss-20b's 20.9B parameters, from other model lines.

More on gpt-oss-20b

Related reading: H100 pricing and specs, How much VRAM you need for LLMs, Serving LLMs with vLLM, vLLM vs TensorRT-LLM vs SGLang, and Best GPU for LLM inference.

Related on Aquanode: GPU requirements for idefics-9b, GPU requirements for Olmo-Hybrid-7B, GPU requirements for Agents-A1-4B, and GPU requirements for XCurOS0.1-8B-Instruct.

Your own GPU cloud accounts

One console for the GPU clouds you already rent from. Your keys stay on your machine.

$20 a month, flat

Connect your accounts

One console for the GPU clouds you already use.

Connect your accounts for $20 a month, flat. Your provider bills the GPU.

© 2026 Aquanode. All rights reserved.

All trademarks, logos and brand names are the property of their respective owners.