ai/gpt-oss-safeguard

Verified Publisher

By Docker

Updated 9 months ago

Safety reasoning models for policy-based text classification and foundational safety tasks.

Model
2

10K+

ai/gpt-oss-safeguard repository overview

GPT‑OSS-safeguard

GGUF version by Unsloth

logo

gpt-oss-safeguard-120b and gpt-oss-safeguard-20b are safety reasoning models built-upon gpt-oss. With these models, you can classify text content based on safety policies that you provide and perform a suite of foundational safety tasks. These models are intended for safety use cases. For other applications, we recommend using gpt-oss models.

This model gpt-oss-safeguard-20b (21B parameters with 3.6B active parameters) fits into GPUs with 16GB of VRAM. Check out gpt-oss-safeguard-120b (117B parameters with 5.1B active parameters) for the larger model.

Both models were trained on our harmony response format and should only be used with the harmony format as it will not work correctly otherwise.

Highlights

  • Trained to reason about safety : Trained and tuned for safety reasoning to accommodate use cases like LLM input-output filtering, online content labeling and offline labeling for Trust and Safety use cases.
  • Bring your own policy: Interprets your written policy, so it generalizes across products and use cases with minimal engineering.
  • Reasoned decisions, not just scores: Gain complete access to the model’s reasoning process, facilitating easier debugging and increased trust in policy decisions. Keep in mind Raw CoT is meant for developers and safety practitioners. It’s not intended for exposure to general users or use cases outside of safety contexts.
  • Configurable reasoning effort: Easily adjust the reasoning effort (low, medium, high) based on your specific use case and latency needs.
  • Permissive Apache 2.0 license: Build freely without copyleft restrictions or patent risk—ideal for experimentation, customization, and commercial deployment.

Inference examples

You can use gpt-oss-safeguard-120b and gpt-oss-safeguard-20b similar to gpt-oss-120b and gpt-oss-20b as described in our respective cookbooks. We’ve also provided a detailed prompting guide that provides guidelines for how to craft your policy and use it with the models.

Available model variants

Model variantParametersQuantizationContext windowVRAM¹Size
ai/gpt-oss-safeguard:20B

ai/gpt-oss-safeguard:20B-UD-Q4_K_XL

ai/gpt-oss-safeguard:latest
20BMOSTLY_Q4_K_M131K tokens11.96 GiB11.04 GB
ai/gpt-oss-safeguard:120B-UD-Q4_K_XL120BMOSTLY_Q4_K_M131K tokens47.44 GiB46.42 GB
ai/gpt-oss-safeguard:20B-F1620BMOSTLY_F16131K tokens13.25 GiB12.83 GB
ai/gpt-oss-safeguard:20B-MXFP420BMOSTLY_MXFP4131K tokens12.19 GiB11.27 GB
ai/gpt-oss-safeguard:20B-UD-Q8_K_XL20BMOSTLY_Q8_0131K tokens12.69 GiB12.28 GB

¹: VRAM estimated based on model characteristics.

latest20B

Use this AI model with Docker Model Runner

Run the model:

docker model run ai/gpt-oss-safeguard

Join the ROOST Model Community

gpt-oss-safeguard is a model partner of the Robust Open Online Safety Tools (ROOST) Model Community. The ROOST Model Community (RMC) is a group of safety practitioners exploring open source AI models to protect online spaces. As an RMC model partner, OpenAI is committed to incorporating user feedback and jointly iterating on future releases in pursuit of open safety. Visit the RMC GitHub repo to learn more about this partnership and how to get involved.

Resources

Tag summary

Content type

Model

Digest

sha256:0918156f5

Size

58.7 GB

Last updated

9 months ago

docker model pull ai/gpt-oss-safeguard:120B-UD-Q4_K_XL

This week's pulls

Pulls:

177

Last week