Specifications, download sizes and settings come from Ollama's model library pages, OpenAI's gpt-oss-20b model card on Hugging Face and Google's Gemma 4 model information as published on Ollama, all read on 25 November 2026. Benchmark figures quoted are the developers' own.
If you've got a graphics card with 16GB to 24GB of VRAM and want one capable all-round model to run locally, two names come up again and again: OpenAI's gpt-oss-20b and Google's Gemma 4 26B. On paper they look very similar. Both are mixture-of-experts (MoE) models that only use around 4B parameters for each token, both have adjustable reasoning, and both download at well under 20GB. The differences are in what they can see, how much they can remember and how they're licensed.
Quick comparison
| gpt-oss-20b | Gemma 4 26B |
|---|
Developer | OpenAI | Google DeepMind |
Design | MoE, 21B total, 3.6B active | MoE, 25.2B total, 3.8B active |
Ollama command | ollama run gpt-oss:20b
| ollama run gemma4:26b
|
Ollama download | 14GB (MXFP4) | 16GB (8-bit: 28GB) |
Context window | 128K | 256K |
Input | Text only | Text and images |
Thinking control | Low, medium or high effort | On or off |
Tool calling | Yes | Yes |
Licence | Apache 2.0 | Not stated on Ollama's page |
Design and size
OpenAI's model card describes gpt-oss-20b as having 21B parameters with 3.6B active per token. Google's model information lists Gemma 4 26B A4B as 25.2B total parameters with 3.8B active, using 8 of its 128 experts plus one shared expert for each token.
So the two do roughly the same amount of work per token, which means you'd expect broadly similar generation speeds on the same graphics card when each fits entirely in VRAM. We haven't measured that, though, and the Gemma model is larger overall. For more on why active parameters matter, see our explainer on MoE vs dense models.
VRAM: which fits your graphics card?
This is where gpt-oss-20b has a real advantage. OpenAI trained it with its MoE weights already quantised to a 4-bit format called MXFP4, and says the result runs within 16GB of memory. Ollama's download is 14GB, and Ollama says it supports MXFP4 natively without converting it.
Ollama's tags page lists the default Gemma 4 26B download at 16GB, the same size as Google's quantisation-aware-trained (QAT) build, with the 8-bit build at 28GB.
16GB cards (RTX 5060 Ti 16GB, RX 9070 XT and similar): gpt-oss-20b is the easier fit, leaving a little room for context. Gemma 4 26B's 16GB download leaves no room for context, so expect Ollama to push part of it into system RAM and slow down. Because it's an MoE model, that slowdown is usually more tolerable than with a dense model; our guide to running MoE models on low VRAM explains how to manage it with llama.cpp.
24GB cards (RTX 4090, RTX 3090, RX 7900 XTX): both fit with room for a decent context window.
32GB cards: you can run Gemma 4 26B at 8-bit (28GB) if you want maximum quality.
Our picks of the best 16GB graphics cards for local AI and best 24GB graphics cards for local AI cover the hardware side.
Context length
Gemma 4 26B supports a 256K-token context window, double gpt-oss-20b's 128K. In practice your VRAM will limit you long before either ceiling, because context memory grows with length. If you want to feed in long documents, see our guides to setting Ollama's context length and KV cache quantisation in Ollama, which reduces the memory each token of context takes.
Images and other features
Gemma 4 26B accepts images as well as text, and Google's documentation says it supports variable aspect ratios and resolutions. That makes it the obvious choice if you want to ask questions about screenshots, photos or scanned documents. gpt-oss-20b is text only. Neither handles audio: in the Gemma 4 family, only the small E2B and E4B models accept audio.
Both support tool calling in Ollama, which matters if you plan to use them with agents or apps that search the web or run code. OpenAI's card highlights native function calling, web browsing, Python code execution and structured outputs for gpt-oss.
Reasoning controls
gpt-oss-20b gives you three reasoning effort levels, low, medium and high, so you can trade speed for depth on each request. OpenAI also gives you access to the full chain of thought.
Gemma 4 has thinking that can be switched on or off rather than graded. Google's notes say that when thinking is disabled, the 26B and 31B models still output an empty thinking block before the answer. Our guide to turning off thinking in Ollama explains how to switch thinking off for supported models.
Benchmarks: what Google says
Google publishes benchmark results for Gemma 4 26B A4B, including 82.6% on MMLU Pro, 77.1% on LiveCodeBench v6 and 82.3% on GPQA Diamond. These are Google's own figures for instruction-tuned models, and we haven't put them side by side with OpenAI's published results for gpt-oss because the two companies don't report the same tests under the same settings. We haven't run any head-to-head tests, so treat developer scores as a rough guide rather than a verdict.
Licences
OpenAI releases gpt-oss-20b under the Apache 2.0 licence, which allows commercial use. Ollama's Gemma 4 page doesn't state the licence, so check Google's Gemma terms before building it into a commercial product.
Our verdict
On a 16GB graphics card, gpt-oss-20b is the more practical choice: its 14GB download fits, it has three reasoning levels and its Apache 2.0 licence is simple. If you have a 24GB card, or you need image input or a longer 256K context, Gemma 4 26B is the more capable all-rounder. Both are free to try with a single Ollama command, so on a 24GB card it's worth downloading both and seeing which suits your work.