Yes, you can run gpt-oss-20b on your GPU if it has 16 GB of VRAM. OpenAI says the model runs "within 16GB of memory", and the llama.cpp guide measures 14.9 GB at an 8K-token context and 15.5 GB at 32K, so any 16 GB card holds the whole model. With an 8 GB or 12 GB card it still runs, more slowly, by keeping some expert layers in system RAM. On a Mac you need at least 16 GB of unified memory. Checked November 3, 2026 on OpenAI's model card, the llama.cpp guide, Ollama and LM Studio.
Can you run gpt-oss-20b on your GPU? Yes with 16 GB of VRAM, and slower on 8 GB
gpt-oss-20b fits fully on any 16 GB graphics card: 14.9 GB at 8K context and 15.5 GB at 32K, per the llama.cpp guide. An 8 GB or 12 GB card still runs it with some layers in system RAM. What your GPU, RAM and Mac need, how fast each card is, and the Ollama setting that quietly cuts your context. Checked Nov 3, 2026.

This page has referral links: we earn a commission if you buy, at no cost to you.
Our Vast referral code: 623346 (link: https://cloud.vast.ai/?ref_id=623346). New users get no bonus from it; we earn 3% of what referred users spend (Vast's referral program docs).
Our Runpod referral code: nuninlts (link: https://console.runpod.io/signup?ref=nuninlts). A new account that signs up with Google through it and loads $10 gets a one-time bonus credit, a fixed $5 for European customers and a random $5 to $500 elsewhere (Runpod says most get $5), valid 90 days; we earn 3% of Pod and 5% of Serverless spend for the first 6 months (Runpod's referral docs).
14.9 GB
VRAM needed
llama.cpp guide, 8K context
17.9 GB
At 128K tokens
llama.cpp guide, full context
14 GB
Download size
Ollama, gpt-oss:20b
3.6B of 21B
Active parameters
OpenAI model card
Can my GPU run gpt-oss-20b?
Find your VRAM in the table. You can see it in Windows Task Manager under Performance, GPU, "Dedicated GPU memory", or in nvidia-smi on an NVIDIA card. Memory figures are from the llama.cpp guide's minimum-requirements table; the guide's maintainer notes they "could vary a little bit" with settings.
gpt-oss-20b by VRAM (llama.cpp guide, read Nov 3, 2026)
24 GB or more (RTX 3090, 4090, 5090)
- Runs it?
- Yes, fully on the GPU
- What to expect
- Room for the full 128K context (17.9 GB)
16 GB (RTX 5060 Ti 16 GB, 4060 Ti 16 GB, 4080, 5070 Ti, 5080)
- Runs it?
- Yes, fully on the GPU
- What to expect
- Comfortable up to about 32K context (15.5 GB)
12 GB (RTX 3060 12 GB, 4070)
- Runs it?
- Yes, with some layers on the CPU
- What to expect
- Slower; needs spare system RAM
8 GB (RTX 2060 SUPER, 3070, 4060)
- Runs it?
- Yes, with more layers on the CPU
- What to expect
- Slower again; the guide gives exact settings
Mac, 16 GB unified memory
- Runs it?
- Yes, with some layers on the CPU
- What to expect
- macOS doesn't give the GPU all 16 GB
Mac, 8 GB
- Runs it?
- No
- What to expect
- Not enough memory, per the guide

Why does a 21-billion-parameter model fit in 16 GB? OpenAI trained its mixture-of-experts weights in MXFP4, a 4-bit format (see what quantization is), and only 3.6B of the 21B parameters work on each token. The whole model still has to sit in memory, though: the guide counts 12.0 GB of model data plus 2.7 GB of compute buffers before any context.
To check a different card or context length, put it in our VRAM calculator.
How much VRAM does gpt-oss-20b need at long context?
15.5 GB at 32K tokens and 17.9 GB at the full 128K. The model itself stays the same size; what grows is the KV cache, the memory that holds your conversation (our context window explainer shows how). The guide puts it at about 0.2 GB per 8,192 tokens for this model, which is small, so the jump from 8K to 128K is only about 3 GB.

That's why the guide's own 16 GB example (an NVIDIA V100) caps context at 32K: the card is "just at the edge to fit the full context". In practice:
- Chat, coding help, short documents: 16 GB is plenty (other models that fit are in the best local LLMs for 16GB).
- Whole books, long agent sessions, big codebases in one prompt: 24 GB, so the full 128K fits without offloading.
How fast is gpt-oss-20b on my GPU?
These are text-generation speeds (llama-bench tg128) from the benchmark runs posted in the llama.cpp guide, with the whole model on the GPU. They were run in 2025 on the guide's own builds, so treat them as a ranking, not a promise for your PC.
gpt-oss-20b speed by card (llama.cpp guide, read Nov 3, 2026)
RTX 5090
- VRAM
- 32 GB
- Tokens per second
- about 282
RTX 4090
- VRAM
- 24 GB
- Tokens per second
- about 225
RTX 5080
- VRAM
- 16 GB
- Tokens per second
- about 205
RTX 5070 Ti
- VRAM
- 16 GB
- Tokens per second
- about 189
RTX 4080 SUPER
- VRAM
- 16 GB
- Tokens per second
- about 186
RTX 3090
- VRAM
- 24 GB
- Tokens per second
- about 162
RTX 5060 Ti 16 GB
- VRAM
- 16 GB
- Tokens per second
- about 112
AMD RX 7900 XT (ROCm)
- VRAM
- 20 GB
- Tokens per second
- about 102
Mac M4 Max (36 GB)
- VRAM
- unified
- Tokens per second
- about 92
Mac M1 Pro (32 GB)
- VRAM
- unified
- Tokens per second
- about 46
Even the slowest entry writes faster than most people read. Of the 16 GB cards here, the RTX 5060 Ti 16 GB is the slowest at about 112 tokens a second, and a used RTX 3090 adds the 24 GB for the full context. If you're choosing a card to buy for it, our best GPU for gpt-oss-20b page ranks the cards that fit with live rental prices.
Can gpt-oss-20b run on an 8 GB or 12 GB GPU?
Email list
Next model drops, can your GPU run it?
When a big open model launches, one email: does it run on your GPU or Mac, which file to get, and what renting costs if it doesn't. Only for launches that matter.
Written and sent by hand. One-click unsubscribe in every email. Emails may contain referral links.
Yes, with some of the model in system RAM. llama.cpp's --n-cpu-moe setting moves expert layers to the CPU while attention and the context stay on the GPU. The guide's example is an RTX 2060 with 8 GB: 16 MoE layers on the CPU for a 32K context, or 22 for the full context.

How slow is it? One reader posted results in the guide's comments on November 10, 2025: an RTX 4060 Laptop GPU with 8 GB, a Core i7-14700HX and 64 GB of DDR5, running 14 MoE layers on the CPU, got about 42 tokens a second. That's their machine and their settings, not ours, but it shows 8 GB is usable. A 12 GB card needs fewer layers on the CPU, so it lands between that and the full-GPU numbers above.
What else you need for offloading:
- System RAM to hold the layers the GPU doesn't. LM Studio lists 12 GB as the minimum system memory for this model; the 42 tokens/sec laptop above had 64 GB.
- The right number for
--n-cpu-moe. Too low and the GPU runs out of VRAM; too high and it gets slower than it needs to be. What --n-cpu-moe actually does explains how to find it, and the step-by-step 8 GB and 12 GB setup is in gpt-oss-20b on an 8 GB or 12 GB GPU.
One Windows trap the guide warns about: the driver can let a program allocate more VRAM than the card has, then quietly swap to RAM and crawl. "Just because the model loads without errors, it doesn't mean you have enough VRAM for the settings that you are using", the guide says. Watch "GPU Memory" in Task Manager and keep it under your card's VRAM.
Can I run gpt-oss-20b on a Mac?
Yes, with 16 GB of unified memory or more. The guide says the model "can run efficiently on Macs with at least 16GB RAM", with two limits. On a 16 GB Mac, "Macs don't allow to utilize the full 16GB memory by the GPU", so you keep some layers on the CPU (the guide's example uses --n-cpu-moe 12 with a 32K context). On an 8 GB Mac, in the guide's words, "you are out of luck". Bigger Macs are quick: about 92 tokens a second on an M4 Max with 36 GB. The 16 GB Mac mini setup is covered in gpt-oss-20b on a 16 GB Mac mini, and Mac buying advice in best Mac for local AI.
How do I run gpt-oss-20b?
The easiest way is one of the two apps OpenAI's model card points to (compare them in Ollama vs LM Studio):
- Ollama:
ollama pull gpt-oss:20b, thenollama run gpt-oss:20b. The download is 14 GB. - LM Studio:
lms get openai/gpt-oss-20b, or search "gpt-oss-20b" in the app. - llama.cpp:
llama-server -hf ggml-org/gpt-oss-20b-GGUF --ctx-size 0 --jinja -ub 2048 -b 2048downloads the model and starts a local chat page and API.--ctx-size 0means the full context, so on a 16 GB card set--ctx-size 32768as the guide does.
The Ollama setting that cuts your context
Ollama picks a default context length from your VRAM, and on any card under 24 GB that default is only 4K tokens. A 16 GB card can handle about 32K, so raise it: use the context slider in the Ollama app's settings, or start the server with OLLAMA_CONTEXT_LENGTH=32768 ollama serve. Ollama's docs say coding tools and agents should get "at least 64000 tokens", which on gpt-oss-20b means 24 GB to stay fully on the GPU. Check what you got with ollama ps: the PROCESSOR column should say 100% GPU.

Should I rent a GPU for gpt-oss-20b instead?
Rent if you just want to try it or you only have 8 GB; buy if you'll use it every day. On Vast.ai, Nov 17, 2026 (our price tracker, checked Nov 17, 2026), single-GPU on-demand rentals started at about $0.12/hr for an RTX 3090 and $0.27/hr for an RTX 4090; Runpod listed the RTX 4090 at $0.89/hr. On November 3 an RTX 5060 Ti 16 GB was from about $0.11/hr on Vast. These are the cheapest offers at that moment and they change hourly, so check today's cloud GPU prices or the per-model page at /cost-to-run/gpt-oss-20b before you rent. If you're on the fence about owning a card at all, rent vs buy a GPU for AI does the break-even, and the cheapest RTX 4090 rental compares that card across providers.
On a rented card the Ollama steps above barely change. Runpod's own Ollama tutorial has you deploy a pod from its PyTorch template, add port 11434 under Expose HTTP Ports, set the environment variable OLLAMA_HOST to 0.0.0.0, then install Ollama from the web terminal and run a model. The official one is the Runpod Pytorch 2.8.0 template, with JupyterLab, SSH, a 30 GB container disk and a 50 GB volume disk (read Nov 30, 2026), room enough for the 14 GB gpt-oss:20b download. Then ollama run gpt-oss:20b and raise the context as above, because a 24 GB card still gets Ollama's 32K default unless you set it.
What this page can't tell you
- Your exact speed. The speeds come from benchmark runs posted in the llama.cpp guide in 2025 and a reader's laptop result, not from our own tests. Ollama, LM Studio, newer llama.cpp builds and longer contexts all change the number.
- Every card. The guide covers mostly NVIDIA and Apple hardware. AMD cards run gpt-oss through ROCm or Vulkan; the guide says "Depending on your specific hardware, the results can vary", but the memory numbers are the same. On Intel, it needs a 16GB Arc card to sit fully on the GPU, as our guide to what fits each Intel Arc card shows.
- The bigger model. gpt-oss-120b needs about 64 GB; see gpt-oss-120b hardware requirements. To weigh gpt-oss against other open models, see gpt-oss vs Qwen3 vs DeepSeek.
Verdict
Can you run gpt-oss-20b?
Best for: Anyone checking whether their PC or Mac can run OpenAI's gpt-oss-20b
gpt-oss ships its weights in MXFP4; what MXFP4 is and which GPUs run it natively explains why the files are so small.
This guide is part of our Which local AI model fits my GPU's VRAM? The 8GB to 32GB chart, model by model guide and our Which Gemma, Llama, Mistral or gpt-oss model can you run on an 8 to 24GB GPU? guide. Related guides: how to run Mistral locally — the lean European open model, on your own PC, How much VRAM does Mistral Small 24B need, and how fast does it run?, Best GPU for a Local AI Coding Assistant (Oct 2026).
Common questions
How much VRAM do I need to run gpt-oss-20b?
Can gpt-oss-20b run on an 8 GB GPU?
Can a 12 GB card like the RTX 3060 run gpt-oss-20b?
Is 16 GB enough, or do I need 24 GB?
How big is the gpt-oss-20b download?
Why does Ollama run gpt-oss-20b with a short context?
Can I run gpt-oss-20b on a Mac?
Is gpt-oss-20b free to use commercially?
Found this useful? Share it
Sources
What this guide was researched from. How we check facts and compute numbers: methodology.
- OpenAI, gpt-oss-20b model card on Hugging Face (vendor page, read Nov 3, 2026): runs within 16GB of memory, 21B parameters with 3.6B active, Apache 2.0, Ollama and LM Studio commands
- llama.cpp, guide: running gpt-oss with llama.cpp, by maintainer Georgi Gerganov (posted Aug 18, 2025, a live document, read Nov 3, 2026): memory table, per-GPU and per-Mac benchmarks, --n-cpu-moe examples, Windows VRAM warning, community RTX 4060 Laptop result
- Ollama, gpt-oss tags: gpt-oss:20b 14GB, 128K context window (read Nov 3, 2026)
- Ollama docs, Context length: default context by VRAM, under 24 GiB = 4k (read Nov 3, 2026)
- LM Studio, openai/gpt-oss-20b model page: minimum system memory 12 GB, 131k context (read Nov 3, 2026)
- Runpod docs, Set up Ollama on a Pod (deploy with the latest PyTorch template, expose HTTP port 11434, set OLLAMA_HOST to 0.0.0.0, install Ollama from the web terminal; read Nov 30, 2026)
- Runpod Hub, Runpod Pytorch 2.8.0 official template (ID runpod-torch-v280; JupyterLab on port 8888, SSH on 22; 50 GB volume disk, 30 GB container disk; updated Nov 29, 2026, read Nov 30, 2026)
Founder & chief editor
Ari Vale
Founder and chief editor of Aliteq (a PC hardware shop from 2019, now a US-based publication). Ari Vale is my pen name: I stay anonymous, the work doesn't. I research the questions people actually ask, check every price and limit against the vendor's own pages, and write down what I'd choose and why. I use the cloud-GPU and AI-video services I write about.
Work out the hardware
GPUs in this article
Specs, the AI models each one runs, and where to buy or rent it.
Email list
Next model drops, can your GPU run it?
When a big open model launches, one email: does it run on your GPU or Mac, which file to get, and what renting costs if it doesn't. Only for launches that matter.
Written and sent by hand. One-click unsubscribe in every email. Emails may contain referral links.
Keep reading

Can you run Hy4 Flash locally? Yes, with 64 GB of RAM and an 8 GB GPU
Tencent's Hy4 Flash is a 220B mixture-of-experts model with about 12B active per token. What it needs, the speeds owners measured, why llama.cpp isn't ready yet, and what renting a GPU for it costs. Checked Nov 22, 2026.
Ari Vale · · 11 min

Can you run Inkling 2 Mini locally? Yes, even on a 12 GB GPU, with one long-context catch
Thinking Machines' Inkling 2 Mini is a 26.4B looped MoE that fits a 12 GB card at 2-bit and a 24 GB card at 4-bit. What each GPU needs, the speeds people posted from an 8 GB RTX 4060 to an RTX 5090, and why its memory climbs faster at long context than a 26B model should. Checked Nov 21, 2026.
Ari Vale · · 10 min

Can gpt-oss-20b run on an 8GB or 12GB GPU? Yes, with --n-cpu-moe
Everyone says 16GB minimum. That's only true if the whole model has to live on the GPU. llama.cpp's own guide runs it on an 8GB RTX 2060. Here are the commands, and the starting values for your card.
Ari Vale · · 7 min

How do you run GLM locally? Which version and which GPU to pick
GLM ties Kimi K3 at the top of the open-weight rankings, but 'run it locally' depends on which GLM — from the 106B Air that fits one card to the 744B GLM-5 that needs a 256GB Mac or the cloud. The honest map, with real numbers.
Ari Vale · · 8 min