All Local AI
Pick VRAM for fit estimates
gpt-oss-20b cover

openai/gpt-oss-20b

gpt-oss-20b

openai apache-2.0 text general-chat vision

gpt-oss-20b

Updated Sep 9, 2026

Parameters

21B

Context

131,072

License

apache-2.0

Updated

Sep 9, 2026

Intelligence benchmarks

Composite scores from sourced benches. Color is paired with the number — green is not a grade by itself.

Intelligence

69.3

Composite of sourced benchmarks on this listing.

Agentic

52.9

Average of coding/agent-style benches (SWE, LiveCode, similar).

Intelligence index — gpt-oss-20b vs the field

Open-weight models in this directory. Proprietary scores are not invented here.

Qwen3.8-Flash-Next
84.2 open
gpt-oss-20b
69.3 open
Qwen3-8B
67.1 open
Qwen3-4B
61.6 open
gemma-4-E4B
58.7 open
Qwen3-0.6B
36.7 open

Standard benchmarks

Each row is a sourced number. Open the source before you treat it as a ranking.

IFStruct 91.95 / 100 source
GPQA Diamond 58.59 / 100 source
MMLU-Pro 73.6 / 100 source
SWE-bench 53.2 / 100 source
AIME 2024 80.4 / 100 source
AIME 2025 80 / 100 source
MMLU 88 / 100 source
SWE-bench Verified 52.6 / 100 source

Will it run on your hardware?

Runs on your 24 GB — best at Q5_K_M

Q2_K
12.1 GB · fits
Q3_K_M
14.1 GB · fits
Q4_0
16.5 GB · fits
Q4_K_M
17.1 GB · fits
Q5_K_M
19.5 GB · fits
Q6_K
21.7 GB · tight
FP8
27.7 GB · fits
Q8_0
27.7 GB · fits
FP16
49.0 GB · fits

Dashed line is your 24 GB budget

Run it locally

Copy-paste. Then read the how-to if you have not set up a runtime yet.

weights

Hugging Face

huggingface-cli download openai/gpt-oss-20b

Download, then load with llama.cpp or a GGUF conversion.

OpenAI-compatible API

vLLM

vllm serve openai/gpt-oss-20b

Best when you already have a GPU server and want an HTTP endpoint.

How to run gpt-oss-20b locally · Guides for first-time local setup

Deep dive

Notes, sources, and the write-up on this listing.

A 21B dense checkpoint from openai only earns a slot on disk if Q4 at a usable context fits the card you already own. gpt-oss-20b local is the listing for that decision, not a cloud demo.

I care about what the official card actually promises, whether gpt-oss-20b holds a usable quant and context on your GPU, and where it tends to disappoint once the weights are on disk.

What gpt-oss-20b is

The weights live at openai/gpt-oss-20b on Hugging Face. That repo is the source of truth for license (apache-2.0), config, tokenizer, and file names. This directory does not host the blobs.

Architecture is dense. Stored parameters decide disk and load size. If this is a mixture-of-experts row, active parameters decide tokens per second; do not mix those two numbers.

From the official card, trimmed: --- license: apache-2.0 pipeline tag: text-generation library name: transformers tags: - vllm ---

gpt-oss-20b

Try gpt-oss · Guides · Model card · OpenAI blog


Welcome to the gpt-oss series, [OpenAI’s open-weight models](https://openai.com/open-models) designed for powerful reasoning, agentic tasks, and versatile developer use cases. We’re releasing two flavors of these open models: - gpt-oss-120b — for production, general purpose, high reasoning use cases that fit into a single 80GB GP

Context, license, and what the card actually promises

Context is advertised at 131,072 tokens. That is a model limit, not a VRAM promise. A long window on a large Q4 load will not fit a 12 GB card even if the architecture allows the window.

License apache-2.0 decides whether you can ship a product around the weights. Read the card. A research-only clause is not the same as Apache-2.0.

Release cadence on Hugging Face is noisy. Quant dumps, FP8 replicas, and unofficial merges are not this listing. This row tracks the weights repo, not every community file.

If you came here from a “best local model” list, remember those lists mix 8 GB toys with 70B workstation models. Filter by the GPU you have, then read this page.

Will it run on your GPU

VRAM fit here comes from parameter count, quant, context, and KV cache — not from a leaderboard score. If the VRAM calculator says it does not fit, believe the calculator before a social-media screenshot.

Check the repo siblings for GGUF. If none exist, convert from safetensors or wait for a community quant.

Use Q4_K_M as the default local quant. Go Q5 or Q6 only after you have headroom. Go Q3 or IQ2 only if you accept more quality loss to stay on a small card.

When you first load gpt-oss-20b, watch nvidia-smi or Activity Monitor. Shared GPU memory climbing is the same as a failed fit, even if the process stays alive.

Tokens per second track memory bandwidth. A 4090 and a 3060 12 GB can both load a 7B–8B Q4; they will not feel the same at 8k context.

gpt-oss-20b on a local stack is a hardware decision first. If the card cannot hold the quant you want, pick a smaller sibling or a higher compression — do not keep retrying the same file.

How people actually use it

For chat, keep a short system prompt and a fixed sampler. Changing temperature every test makes local A/B comparisons useless.

For coding, prefer a GGUF that matches the instruct template the authors shipped. A base model with a chat wrapper bolted on will look worse than the same weights with the right template.

For RAG, context window is not free. Retrieval dumps that fill 16k tokens will evict the system prompt on a card that only holds 8k comfortably.

Do not treat missing composite scores as missing capability. Scores appear after two sourced benchmarks with URLs. Until then the listing still has VRAM math and the official card.

If you later add sourced MMLU, LiveCodeBench, or similar numbers, they show in the benchmark table with links. Until a URL exists, this page will not invent a score.

Keep the how-to page for install steps. This deep dive is for whether gpt-oss-20b belongs on your machine and what you should expect once it does.

If you still need a shortlist by GPU size, start from What can I run and filter by the card you already own before opening another listing.

What to watch for

Sampler defaults differ across UIs. A “creative” preset in one frontend can look like a broken model next to llama.cpp defaults. Lock temperature, top-p, and the chat template before you compare.

Thinking-mode checkpoints (when the card documents them) spend tokens on a hidden chain of thought. That is extra VRAM and latency, not free quality. Turn the mode off if you only wanted a fast chat reply.

Unofficial quants can ship the wrong tokenizer or a stripped chat template. If replies are garbage after a clean load, check the template before you blame the GPU.

Long-context claims on the card still have to fit KV cache. YaRN or similar extensions do not magically add VRAM. Drop context first when the process dies at 16k.

Driver and runtime updates change tokens per second more often than weight revisions do. Re-run one fixed prompt after a CUDA or llama.cpp bump.

If you serve gpt-oss-20b on a LAN, treat it like any other unauthenticated app: private bind, no port-forward, auth if more than one person can reach it.

This listing will not rank gpt-oss-20b against closed APIs. Local means the weights are on disk and the meter is your wall power, not a vendor invoice.

What makes gpt-oss-20b special

  1. Dense architecture. 21B parameters.
  2. Context window. 131,072 tokens native.
  3. License. apache-2.0 — permissive for local use.
  4. Modalities. text
  5. Weights. Use the Hugging Face repo with vLLM or llama.cpp.
  6. Use cases. general-chat, vision

Frequently asked

Quick answers to common questions.

Will gpt-oss-20b run on 8 GB?

Often at Q4 if the calculator on this page says it fits. 8 GB is tight once the desktop, context, and KV cache share the same pool. Trust the VRAM chart, not a screenshot.

How much VRAM does gpt-oss-20b need?

gpt-oss-20b is about 21B (dense). Q4_K_M is the default local starting point. Raise quant only after you have headroom; drop context if the card starts using shared memory.

Where do I download gpt-oss-20b?

Weights live at openai/gpt-oss-20b on Hugging Face. Prefer an official or well-known GGUF. This site does not host the files.

Can I use Ollama or llama.cpp?

llama.cpp needs a GGUF conversion if the repo is safetensors-only. vLLM can serve the Hugging Face repo directly on a GPU server.

What is the context window?

The card advertises 131,072 tokens. That is a model limit, not a VRAM promise. A long window still has to fit in memory.

What license is gpt-oss-20b?

apache-2.0. Read the model card before you ship a product around the weights. How to run gpt-oss-20b locally starts with a VRAM check, then a runner choice, then one clean load at Q4. This runbook is the install path — the listing covers whether the weights belong on your card.

Compare and pair with

Nearby parameter counts and cards that can hold Q4.