Does It Run Local?
MY RIG:
Active: M4 Pro · 24 GB⚡ Spend RAM

← All comparisons

MODEL COMPARISON · AUG 4, 2025 VS APR 2, 2026

gpt-oss-20b vs gemma-4-31B-it

gpt-oss-20b needs less memory: about 16 GB versus about 24 GB (text weights only) for gemma-4-31B-it, a difference of 8 GB. gpt-oss-20b has one runtime in release (Ollama). gemma-4-31B-it has one runtime in release (Ollama).

MEASURED ON REAL HARDWARE

Speed head-to-head

Comparegpt-oss-20bgemma-4-31B-it
4x DGX Spark decode tok/sNot measured yetNot measured yet
4x DGX Spark TTFT (ms)Not measured yetNot measured yet
Apple M4 Max decode tok/s149.1 MXFP4-Q4 (MLX)Not measured yet
Apple M4 Max TTFT (ms)737 MXFP4-Q4 (MLX)Not measured yet

Measured by our lab with short prompts (first value of each run set); not a guarantee for your setup. Estimates elsewhere on this page are not benchmarks.

SIDE BY SIDE

Comparegpt-oss-20bgemma-4-31B-it
Memory neededabout 16 GB · Up to 16 GBabout 24 GB · Up to 32 GB (text weights only)
Recommended quantQ4_K_M · 11.6 GBQ4_K_M · 18.3 GB
llama.cpp supportArchitecture listedChecked 30 Nov 2026Architecture listedChecked 30 Nov 2026
Ollama supportReleasedChecked 30 Nov 2026ReleasedChecked 30 Nov 2026
LM Studio supportUpload availableChecked 30 Nov 2026Upload availableChecked 30 Nov 2026
MLX / mlx-lm supportUpload availableChecked 30 Nov 2026Upload availableChecked 30 Nov 2026
vLLM supportArchitecture listedChecked 30 Nov 2026Architecture listedChecked 30 Nov 2026
ReleasedAug 4, 2025Apr 2, 2026
LicenseNot recorded in this snapshot — see the model card ↗Not recorded in this snapshot — see the model card ↗
Publisheropenaigoogle
Downloads5.1M4.9M
Model pageOpen gpt-oss-20b ↗Open gemma-4-31B-it ↗
Fits these setups
  • Mac 16 GBWon't fit
  • Mac 24 GBRuns well
  • Mac 32 GBRuns well
  • Mac 64 GBRuns well
  • GPU 8 GB + 32 GB RAMTight
  • GPU 12 GB + 32 GB RAMTight
  • GPU 16 GB + 32 GB RAMRuns well
  • GPU 24 GB + 64 GB RAMRuns well
  • CPU 32 GBRuns well
  • CPU 64 GBRuns well
  • Mac 16 GBWon't fit
  • Mac 24 GBWon't fit
  • Mac 32 GBTight
  • Mac 64 GBRuns well
  • GPU 8 GB + 32 GB RAMTight
  • GPU 12 GB + 32 GB RAMTight
  • GPU 16 GB + 32 GB RAMTight
  • GPU 24 GB + 64 GB RAMRuns well
  • CPU 32 GBRuns well
  • CPU 64 GBRuns well

Memory needed is the same estimate shown on each model page: the recommended observed file plus 20% headroom and a 1.5 GB runtime allowance. See which setups fit →

These are estimates from observed file sizes, not benchmarks. They don’t account for long contexts or the KV cache, and fitting does not establish runtime compatibility or speed.

HEAD-TO-HEAD GUIDE

Practical tradeoff summary

For local use, gpt-oss-20b is the lighter lift: at roughly 20B parameters it needs meaningfully less RAM/VRAM than Gemma-4-31B, so you can run it at higher quantization (e.g., 8-bit or Q6) on the same hardware where Gemma-4-31B would be forced down to 4-bit. Both models have solid runtime coverage—Ollama release entries, LM Studio GGUF uploads, MLX uploads, and architecture listings in llama.cpp and vLLM—so neither is a compatibility gamble. The practical difference is that Gemma-4-31B's larger footprint makes quantization choice the dominant tradeoff (4-bit to fit, with some quality loss), while gpt-oss-20b leaves headroom for less aggressive quantization and longer context. If memory is tight, gpt-oss-20b is the safer local pick; if you have the capacity and want the larger model, Gemma-4-31B is equally well-supported across the same runtimes.