---
title: "Welcome GPT OSS, the new open-source model family from OpenAI!"
description: "OpenAI's gpt-oss-120b (117B total, 5.1B active) and gpt-oss-20b (21B total, 3.6B active) are Apache 2.0 open-weight mixture-of-experts reasoning models."
url: "https://swe.quest/articles/welcome-gpt-oss-the-new-open-source-model-family-from-openai-490c13c2b6a8b9fc"
canonical: "https://huggingface.co/blog/welcome-openai-gpt-oss"
source: "Hugging Face"
published: "2025-08-05"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 25
tags: ["llms","inference","open-source","python"]
---

# Welcome GPT OSS, the new open-source model family from OpenAI!

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2025-08-05, 25 min read, Announcement. Original: [https://huggingface.co/blog/welcome-openai-gpt-oss](https://huggingface.co/blog/welcome-openai-gpt-oss)

## Summary

OpenAI's gpt-oss-120b (117B total, 5.1B active) and gpt-oss-20b (21B total, 3.6B active) are Apache 2.0 open-weight mixture-of-experts reasoning models. Their MoE weights are quantized to MXFP4, so the large model fits on one 80GB H100 and the small one runs in 16GB. Architecture notes cover softmax-after-topk routing, alternating full and 128-token sliding-window attention, and learned per-head attention sinks. The guide shows how to run the models via Inference Providers, transformers (MXFP4 kernels, Flash Attention 3 with sinks on Hopper, MegaBlocks MoE kernels as a bf16 fallback), llama.cpp and vLLM, plus fine-tuning with TRL and chat template handling.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)
- [Python](https://swe.quest/tags/python.md) (Languages)

## Prerequisites

- LLM inference basics ([easy posts on Inference & serving](https://swe.quest/tags/inference.md?difficulty=easy))
- Hugging Face transformers
- GPU memory and quantization ([easy posts on Hardware](https://swe.quest/tags/hardware.md?difficulty=easy))

## Keywords

gpt-oss, MXFP4, transformers, vLLM, llama.cpp, Flash Attention 3, MegaBlocks, Responses API

## Related posts

- [Tricks from OpenAI gpt-oss YOU 🫵 can use with transformers](https://swe.quest/articles/tricks-from-openai-gpt-oss-you-can-use-with-transformers-aad70bf42c0bd3ff.md): Hugging Face · 2025-09-11 · Hard · 15 min read · Inference & serving, LLMs, Python, Performance engineering
  Hugging Face upgraded transformers to support OpenAI's gpt-oss models, and most of the new features carry over to other models.
- [Run fast, private agents on-device with LFM2.5-24B-A2B](https://swe.quest/articles/run-fast-private-agents-on-device-with-lfm2-5-24b-a2b-52b7fe0729873bfd.md): Hugging Face · 2026-10-13 · Medium · 7 min read · LLMs, AI agents, Model training, Inference & serving, Evaluation
  LFM2.5-24B-A2B is an open-weight 24B-parameter MoE reasoning model with 2B active parameters per token, aimed at running tool-using agents on local hardware.
- [Welcome Muse Spark Open: open-weight frontier multimodal mixture-of-experts model from Meta](https://swe.quest/articles/welcome-muse-spark-open-open-weight-frontier-multimodal-mixture-of-experts-078500d9b13fcedd.md): Hugging Face · 2026-10-15 · Medium · 19 min read · LLMs, Inference & serving, Computer vision, Speech & audio, Python
  Muse Spark Open is Meta's open-weight multimodal mixture-of-experts model with ~816B total and ~42B active parameters, 256 experts per layer with 8 routed per token, a 1M-token context, and text, image, audio and video inputs producing text output, aimed at agentic coding.
- [Optimize and deploy with Optimum-Intel and OpenVINO GenAI](https://swe.quest/articles/optimize-and-deploy-with-optimum-intel-and-openvino-genai-bbd6caef1a74949e.md): Hugging Face · 2024-09-20 · Medium · 6 min read · Inference & serving, LLMs, C & C++, Python
  Hugging Face Transformers LLMs can be exported to OpenVINO IR with Optimum-Intel, quantized with NNCF, and deployed through the lightweight OpenVINO GenAI LLMPipeline from Python or C++.
- [Welcome Mixtral - a SOTA Mixture of Experts on Hugging Face](https://swe.quest/articles/welcome-mixtral-a-sota-mixture-of-experts-on-hugging-face-8678082efd21a0bd.md): Hugging Face · 2023-12-11 · Medium · 11 min read · LLMs, Inference & serving, Model training, Machine learning
  Mixtral 8x7B is Mistral's sparse Mixture-of-Experts LLM. It replaces feed-forward layers with MoE layers that route each token to 2 of 8 experts, so it has about 45B total parameters but decodes at roughly the speed of a 12B dense model.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
