VRAMGlass contains affiliate links. As an eBay Partner, we may be compensated if you make a purchase.As an eBay Partner, we may be compensated.Learn more

GPUs tracked57Price history49 daysPrice points (24h)43,400 pointsBiggest 24h dropGeForce RTX 3060 12GB-11.1%Biggest 24h riseCMP 170HX 40GB+19.8%Updated
$ USD

How to Deploy gpt-oss Safeguard 20B Locally

gpt-oss Safeguard 20B isn't a chat model; it's a content moderation model that OpenAI fine-tuned from gpt-oss 20B. You write your content policy into the prompt, and it reasons first, then 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; for anything other than safety, OpenAI recommends using gpt-oss directly. Its VRAM needs match gpt-oss 20B: about 13 GB at 4-bit with 8K.

gpt-oss Safeguard 20B details

  • Min VRAM at 4-bit13 GB · 8K
  • 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 for local deployment?

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, and moderation doesn't call for a big card: 16GB is plenty and 12GB just barely fits. It's a fine-tune of gpt-oss 20B with identical memory needs, about 13 GB for 4-bit with 8K of context. Moderation prompts tend to be short. OpenAI suggests policies of 400 to 600 tokens, and with the content under review added, 8K is usually enough, so a 12GB card like the RTX 3060 can hold it, with almost no headroom; if the same card also drives your monitor, it may not fit. If your policy runs long, a 16GB card gives room for a bigger window. The RTX 5060 Ti 16GB does about 93 tokens/s, but every verdict starts with a stretch of reasoning, so the higher the reasoning level, the longer each decision takes.

eBay
DevicePriceSpeed t/sMax context
Tesla V100 16GB16 GB$37024 listings129.2128K
GeForce RTX 5060 Ti 16GB16 GB$86958 listings92.5128K
Tesla V100 32GB32 GB$89518 listings129.2128K
Radeon RX 7900 XTX24 GB$1,25029 listings132.5128K
GeForce RTX 309024 GB$1,799107 listings131.2128K
GeForce RTX 409024 GB$3,75868 listings134.9128K
Ryzen AI Max+ 395 128GBWhole system · 128 GB$4,46420 listings65128K
RTX A600048 GB$4,89916 listings121128K
Mac Studio M5 Ultra 96GBWhole system · 96 GB$7,27412 listings144.4128K
MacBook Pro M5 Max 128GBWhole system · 128 GB$7,54920 listings109.2128K
DGX Spark 128GBWhole system · 128 GB$8,24022 listings67.9128K
GeForce RTX 509032 GB$8,395123 listings160.6128K
RTX PRO 600096 GB$22,50011 listings160.6128K

Only common GPUs and systems are listed, one set for models under 50B and another for larger ones, sorted by price from low to high.

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
$899
RAM
32 GB DDR5-60002 × 16 GB sticks
$450
CPU
AMD Ryzen 7 77008 cores / 16 threads · 2-channel
$212
Board
Gigabyte B650 EAGLE AX4 DIMM slots
$114
PSU
Corsair RM750e750 W
$70
Reference build price$1,745

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