VRAMGlass contains affiliate links. As an eBay Partner, we may be compensated if you make a purchase. As an Amazon Associate I earn from qualifying purchases.We may earn from eBay and Amazon links.Learn more

GPUs tracked64Price history94 daysPrice points (24h)29,155 pointsBiggest 24h dropTesla V100 16GB-6.1%Biggest 24h riseInstinct MI100+12.8%Updated
$ USD

Run gpt-oss Safeguard 20B Locally: VRAM & GPU Requirements

gpt-oss Safeguard 20B, a content moderation model OpenAI fine-tuned from gpt-oss 20B, needs about 13 GB of VRAM at 4-bit with 8K context. A single GPU can run it locally. Rather than acting as a chat model, it reads your content policy from the prompt, reasons first, and judges whether a piece of content violates it. That makes it a fit for filtering an LLM's inputs and outputs and for labeling content, while OpenAI recommends using gpt-oss directly for anything other than safety.

gpt-oss Safeguard 20B details

  • Min VRAM at 4-bit (8K context)13 GB
  • Parameters20.9B
  • Active params3.6B
  • Max context128K
Architecture
MoE
Experts offloaded
3 GB VRAM + 11 GB RAM
License
Apache-2.0
Launch date
Oct 29, 2025
Vendor
OpenAI
Ollama tag
gpt-oss-safeguard:20b
Layers
24
Hidden size
2,880
KV heads
8
Head dim
64

How much VRAM does gpt-oss Safeguard 20B need?

The table below assumes all experts stay in VRAM with no RAM offloading. If you are short on VRAM, you can offload experts to RAM; see the complete builds below.

QuantizationWeightsGB8K contextGB32K contextGB128K context (max)GB
1-bit5.3est.6.57.29.6
2-bit8.3est.9.610.212.6
3-bit11.5GGUF12.813.415.8
4-bit11.6GGUF12.913.515.9
5-bit11.7GGUF1313.616
8-bit12.1GGUF13.41416.4
BF16/FP1613.8GGUF15.115.718.1

Full calculation rules are on the Methodology page.

Can a single GPU run gpt-oss Safeguard 20B?

Yes, a 16GB GPU runs gpt-oss Safeguard 20B with room to spare, and a 12GB card just barely fits it. As a fine-tune of gpt-oss 20B, it has identical VRAM needs at about 13 GB for 4-bit with 8K of context. OpenAI suggests policies of 400 to 600 tokens, so 8K usually covers the policy plus the content under review. A 12GB card like the RTX 3060 can hold it with almost no headroom, and it may not fit if the same card also drives your monitor. If your policy runs long, a 16GB GPU gives room for a bigger window. The RTX 5060 Ti 16GB does about 93 tokens/s, but every verdict starts with reasoning, so higher reasoning levels make each decision take longer.

The table below assumes all experts stay in VRAM with no RAM offloading. If you are short on VRAM, you can offload experts to RAM; see the complete builds below.

eBay
DevicePriceSpeed t/sMax context
Tesla V100 16GB16 GB$41316 listings129.2128K
GeForce RTX 5060 Ti 16GB16 GB$88045 listings92.5128K
Tesla V100 32GB32 GB$1,37813 listings129.2128K
Radeon RX 7900 XTX24 GB$1,40027 listings132.5128K
GeForce RTX 309024 GB$1,992116 listings131.2128K
GeForce RTX 409024 GB$3,82574 listings134.9128K
Ryzen AI Max+ 395 128GBWhole system · 128 GB$4,02531 listings65128K
RTX A600048 GB$4,89925 listings121128K
Mac Studio M5 Ultra 96GBWhole system · 96 GB$6,7995 listings144.4128K
MacBook Pro M5 Max 128GBWhole system · 128 GB$7,00029 listings109.2128K
GeForce RTX 509032 GB$7,385128 listings160.6128K
DGX Spark 128GBWhole system · 128 GB$7,90037 listings67.9128K
RTX PRO 600096 GB$18,60020 listings160.6128K

Only common GPUs and systems are listed, from cheapest to most expensive.

What PC or server build do you need to run gpt-oss Safeguard 20B locally?

eBay

GeForce RTX 5070 + Desktop DDR5

Home PC
Generation speed84.3t/s
Memory bandwidth96GB/s
GPU
GeForce RTX 507020 / 24 expert layers in 12 GB VRAM
$973
RAM
32 GB DDR5-60002 × 16 GB sticks
$460
CPU
AMD Ryzen 7 77008 cores / 16 threads · 2-channel
$189
Board
Gigabyte B650 EAGLE AX4 DIMM slots
$119
PSU
Corsair RM750e750 W
$70
Reference build price$1,811

Detailed calculation rules are on the Methodology page.

As an eBay Partner, VRAMGlass may be compensated if you buy through the eBay links on this page. The price you pay stays the same.

What to know before running gpt-oss Safeguard 20B locally

  1. Put the policy in the system prompt

    Put the policy in the system message and include Reasoning: low, medium or high in it; if you leave it out, the default is medium. OpenAI's guide says policies of 400 to 600 tokens work best, and even ones as long as about 10,000 tokens still give reasonable results.

  2. Make the output machine-readable

    You can have it reply with a single character, 0 or 1, or ask for JSON that includes whether the content violates the policy, the violation category, the matching clause, a confidence score and the reasoning. For an automated moderation pipeline, 0/1 or JSON with fixed fields is the easiest to work with.

  3. When not to use it

    OpenAI's guide states that if you have a few thousand labeled examples, training a traditional classifier gives lower latency, uses less compute and may well perform better. This model suits cases where the policy changes often and there's no time to build up labeled data: changing the policy only means changing the prompt, with no retraining.

  4. Deployment

    It also uses the harmony chat format. Ollama's official library has gpt-oss-safeguard:20b, vLLM runs it with vllm serve openai/gpt-oss-safeguard-20b, and for llama.cpp there are GGUFs packaged by Unsloth. Its reasoning output is meant for developers and moderators, and OpenAI advises against showing it to ordinary users.

Launch commands

Ollama

  • Windows
  • macOS
  • Linux
Terminal
ollama run gpt-oss-safeguard:20b

llama.cpp

  • NVIDIA
  • AMD
  • Mac
  • CPU
All on GPU
Terminal
llama-server -hf unsloth/gpt-oss-safeguard-20b-GGUF:Q4_K_M -c 8192
MoE offloading

Short on VRAM? Add --cpu-moe to keep the routed experts in system RAM (about 11 GB needed).

Terminal
llama-server -hf unsloth/gpt-oss-safeguard-20b-GGUF:Q4_K_M -c 8192 \
  -ngl 99 --cpu-moe

vLLM

  • Linux
  • NVIDIA
  • AMD
Terminal
vllm serve openai/gpt-oss-safeguard-20b

MLX

  • Apple Silicon

On a Mac, pip install mlx-lm first; this command downloads the MLX weights from Hugging Face and starts an OpenAI-compatible server.

Terminal
mlx_lm.server --model lmstudio-community/gpt-oss-safeguard-20b-MLX-MXFP4

File names follow that week's model-library snapshot; the definitions are in the methodology. Methodology

Other models in the gpt-oss family

ModelTotal paramsActive params4-bit size
gpt-oss 20BMoE20.9B3.6B11.6 GB
gpt-oss 120BMoE116.8B5.1B62.8 GB

About gpt-oss