Operationrange Get a free plan

How to run gpt-oss-120b and gpt-oss-20b on a cloud GPU

OpenAI's open-weight models were post-trained in MXFP4, so they are unusually light: gpt-oss-120b (117B parameters, 5.1B active) loads in 65.2 GB and runs on a single 80 GB GPU, and gpt-oss-20b loads in 13.8 GB and runs on any 24 GB card. Both are Apache-2.0. Here is which GPU to rent, what it costs today and how to serve it with an OpenAI-compatible API.

gpt-oss-20b
$0.22/hrRTX 3090, typical price
gpt-oss-120b
$0.84/hrA100 80GB, typical price
120b on H100
$2.33/hr≈ $1,705 per month 24/7
Context
128Knative, both models
Which GPU

GPU requirements for gpt-oss

Both models alternate sliding-window layers (128 tokens) with full-attention layers, so the KV cache is small: 38 MB per 1K tokens for 120b and 25 MB for 20b. Once the weights fit, the full 128K context usually fits too.

Model · formatWeightsRuns on one GPU (32K+ context)Cheapest todayContext room on it
gpt-oss-20b
MXFP4 (as released) · vLLM
13.8 GBRTX 3090, RTX 4090, RTX A6000, RTX 5090, RTX 6000 Ada and moreRTX 3090 · $0.22/hrfull 128K context
gpt-oss-120b
MXFP4 (as released) · vLLM
65.2 GBA100 80GB, RTX PRO 6000, H100, H200, B200A100 80GB · $0.84/hrfull 128K context

Calculated from the published files and model configuration, assuming vLLM with its default 90% memory reservation; see how we calculate VRAM. Prices: typical hourly price on the Vast.ai marketplace on 5 Dec 2026.

gpt-oss-120b

  • BudgetA100 80GB · $0.84/hr. vLLM's recipe lists the A100 80GB as a supported single-GPU option.
  • FasterH100 · $2.33/hr, or H200 · $4.73/hr for more concurrent users.
  • More headroomRTX PRO 6000 (96 GB) · $1.60/hr.

gpt-oss-20b

  • CheapestRTX 3090 · $0.22/hr
  • FasterRTX 4090 · $0.47/hr or RTX 5090 · $0.67/hr
  • Per month≈ $341 on an RTX 4090 running 24/7
Step by step

Serve gpt-oss with vLLM

1. Rent the GPU

On Vast.ai, pick a verified data-center host with the GPU from the table above. Use the vLLM template or set the image to vllm/vllm-openai:latest, give it enough disk for the weights (at least 100 GB for 120b, 40 GB for 20b), and expose port 8000. vLLM 0.10.1 or newer supports gpt-oss.

2. Start the server

gpt-oss-120b on one GPU, with tool calling, as in the vLLM recipe:

vllm serve openai/gpt-oss-120b \
  --tensor-parallel-size 1 \
  --tool-call-parser openai \
  --enable-auto-tool-choice

gpt-oss-20b needs no extra flags:

vllm serve openai/gpt-oss-20b

On your own server with Docker (from the same recipe):

docker run --gpus all \
  --privileged --ipc=host -p 8000:8000 \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  vllm/vllm-openai:latest openai/gpt-oss-120b \
  --tensor-parallel-size 1 \
  --tool-call-parser openai \
  --enable-auto-tool-choice

3. Send a request

The server speaks the OpenAI Chat Completions API on port 8000. gpt-oss supports three reasoning levels (low, medium, high):

curl http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-oss-120b",
    "messages": [{"role": "user", "content": "Explain the KV cache in two sentences."}],
    "reasoning_effort": "low"
  }'

Any OpenAI SDK works too: set the base URL to http://<your-host>:8000/v1. Put the endpoint behind a reverse proxy with authentication before exposing it to the internet.

Troubleshooting (from the vLLM recipe)

  • Out of memory on a single H100: add --max-num-batched-tokens 1024.
  • Harmony vocabulary download fails (no internet access to the tiktoken files): download them in advance and set TIKTOKEN_ENCODINGS_BASE.
  • Tool calling: only the auto tool choice is supported.
  • B200: the recipe ships a Blackwell config file (--config GPT-OSS_Blackwell.yaml).
Alternatives

Run gpt-oss with llama.cpp or Ollama

For a single user or a quick test, llama.cpp serves the official MXFP4 GGUF (12.1 GB for 20b, 63.4 GB for 120b) with its own web UI and an OpenAI-compatible API. The command from the ggml-org model card:

llama serve -hf ggml-org/gpt-oss-20b-GGUF

With Ollama, as in OpenAI's model card:

ollama pull gpt-oss:120b
ollama run gpt-oss:120b

For production traffic with many concurrent users, vLLM is the better fit: it batches requests and manages the KV cache across them.

Cost

What gpt-oss costs to run 24/7

Typical hourly price × 730 hours, marketplace prices on 5 Dec 2026. Interruptible instances and scaling to zero at night cost less.

Want a production gpt-oss API?

We deploy gpt-oss behind an authenticated OpenAI-compatible endpoint with autoscaling, monitoring and 24/7 support. You pay the GPU provider directly, with no markup.

Have us set it up

How much VRAM other models need →

FAQ

gpt-oss questions

Can gpt-oss-120b run on a single GPU?

Yes. OpenAI released it with MXFP4-quantized MoE weights, so it loads in 65.2 GB and fits on one 80 GB GPU such as an A100 80GB or H100, with full 128K context of context room on an H100. On 5 Dec 2026 the cheapest option on the marketplace is A100 80GB · $0.84/hr.

What is the cheapest GPU for gpt-oss-20b?

Any 24 GB GPU runs it with the full 128K context. On 5 Dec 2026 the cheapest is RTX 3090 · $0.22/hr. OpenAI says the model runs within 16 GB of memory, so smaller cards work too.

Which is faster for gpt-oss-120b: A100 or H100?

The H100 is faster per GPU and handles more concurrent users; the A100 80GB is the budget option at $0.84/hr versus $2.33/hr. For a low-traffic internal tool the A100 is usually enough. Measure your own tokens per second before committing to a monthly budget.

How do I change the reasoning level?

gpt-oss supports low, medium and high reasoning effort. With vLLM's Chat Completions API, pass "reasoning_effort": "low" (or medium, high) in the request. Higher levels give better answers on hard problems but use more tokens and time.

Can I use gpt-oss commercially?

Yes. Both models are released under the Apache-2.0 license. Check OpenAI's usage policy linked from the model card for the details.