Skip to content
English

Switch theme

// gpt-oss · Safety / guard

gpt-oss-safeguard-20b: VRAM & local deployment

21B total · 3.6B active (MoE) parameters. About 14.7 GB at 4-bit and 46.9 GB at BF16 with one 8K-token request.

released 2025-09-18licence: Commercial OKmemory figures are estimates

01Specs

PublisherOpenAI · openai
Family / seriesgpt-oss · gpt-oss-safeguard
TypeSafety / guard (text-generation)
Parameters21B total · 3.6B active (MoE) Source: official model card“21B parameters with 3.6B active parameters”
Context length128K tokens (131,072)max_position_embeddings in config.json
Architecture24 layers (12 full-attention) · 12 sliding-window layers (128) · GQA · MoE
Released weightspacked quantised tensors (U8, e.g. MXFP4 / INT4) · 13.8 GBdownload
LicenceApache-2.0 · Commercial OKPermissive licence (Apache-2.0 / MIT / CC-BY / OpenMDW): commercial use allowed.
Released2025-09-18 (Hugging Face repo created)

02How much VRAM it needs (estimate)

Total = weights + 10% + 0.5GB overhead + KV cache for one request (FP16 KV). More concurrent users multiply the KV column.

PrecisionWeightsTotal @ 8KTotal @ 32KTotal @ 128KSmallest GPUMac
BF16 / FP16 (original)42.0 GB 46.9 GB47.5 GB49.9 GB 2 × RTX 5090 (64GB)Mac 128GB
FP8 / INT8 / Q8_022.3 GB 25.2 GB25.9 GB28.3 GB RTX 5090 32GBMac 64GB
4-bit (Q4_K_M / AWQ / GPTQ-Int4)12.7 GB 14.7 GB15.3 GB17.7 GB RTX 4090 24GBMac 36GB

KV cache per request: 8K 0.2 GB · 32K 0.8 GB · 128K 3.2 GB

Bits per weight: BF16 16, FP8 8.5, 4-bit 4.85. “Fits” = total ≤ 90% of memory; Mac GPU can use ~2/3 of unified memory (≤36GB) or ~3/4 (larger). For MoE, all experts must be in memory, so size by total parameters. Method →

03How to run it

Only runtimes the publisher or the runtime’s official library names for this model.

ollama run gpt-oss-safeguard:20b

Which inference engine to choose →

04Official repositories & quantised builds

1 official repo(s) from openai.

05Other gpt-oss models

All 4 →
ModelParams4-bit totalReleased
gpt-oss-safeguard-120b · same series117B / 5.1B78.8 GB2025-09-18
gpt-oss-20b21B / 3.6B14.7 GB2025-08-04
gpt-oss-120b117B / 5.1B78.8 GB2025-08-04

06Sources

Data checked 2026-01-14. Parameters, context and licence are copied from the official repository; memory figures are our estimates.

Data updated: Self-host open models(UTC+8)