Mindket

gpt-oss-20b

Newversion 1 · updated

Overview

Writes, reasons and calls tools from text prompts, in an open-weight 21B model from OpenAI that runs within 16 GB of memory. For developers who want a local or specialized model.

gpt-oss-20b is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Python and the huggingface_hub package
  • The transformers, kernels and torch packages for the Transformers route
  • About 16 GB of memory, which the card says the 20b model fits within
Runs in
  • Hugging Face Transformers, with a pipeline or the Transformers Serve web server
  • vLLM, which starts an OpenAI-compatible server
  • PyTorch and Triton reference code, and Ollama, which the card also lists
  • Windows, macOS or Linux, where you download the files with Python
Start with
pip install -U huggingface_hub
hf download openai/gpt-oss-20b

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

gpt-oss-20b is the smaller of OpenAI's two open-weight gpt-oss models. It has 21B parameters with 3.6B active, and it is aimed at lower latency and local or specialized use. It handles reasoning, function calling and agent work.

Who it suits

It suits developers who want an open model they can run on their own machine, tune for one job or wire into an agent.

IndustryWho uses itHow they use itExample
SoftwareDevelopersRun a local model behind an appA chat feature served from your own computer
AI engineeringAgent buildersUse function calls and code execution in an agentAn agent that browses and runs Python
ResearchML researchersFine-tune the model for a narrow taskA tuned version for one domain

People who want the largest model can skip it, since the card points to gpt-oss-120b for heavy production use.

Where to use it

  • Hugging Face Transformers, with a pipeline or the Transformers Serve web server
  • vLLM, which starts an OpenAI-compatible server
  • PyTorch and Triton reference code, and Ollama, which the card also lists
  • Windows, macOS or Linux, where you download the files with Python
Use caseWhoWhat they get back
Local chatDevelopersAnswers from a model that runs within 16 GB of memory
Agent tasksAgent buildersFunction calls, web browsing and Python code execution
Reasoning at a set effortResearchersLow, medium or high reasoning effort to match your latency needs

How to set it up

You need these first:

  • Python and the huggingface_hub package
  • The transformers, kernels and torch packages for the Transformers route
  • About 16 GB of memory, which the card says the 20b model fits within
  1. Install the Hugging Face hub package and download the model files.
  2. Install the packages for the Transformers route.
  3. Run the pipeline snippet to get a first reply.
pip install -U huggingface_hub
hf download openai/gpt-oss-20b
pip install -U transformers kernels torch
from transformers import pipeline
import torch

model_id = "openai/gpt-oss-20b"

pipe = pipeline(
    "text-generation",
    model=model_id,
    torch_dtype="auto",
    device_map="auto",
)

messages = [
    {"role": "user", "content": "Explain quantum mechanics clearly and concisely."},
]

outputs = pipe(
    messages,
    max_new_tokens=256,
)
print(outputs[0]["generated_text"][-1])

How to use it

Send chat messages through the pipeline, or start a server and chat with it. The model needs the harmony response format. The Transformers chat template applies it for you. With model.generate you apply it yourself.

transformers serve
transformers chat localhost:8000 --model-name-or-path openai/gpt-oss-20b
ToolWhat it does
transformers serveStarts an OpenAI-compatible web server
transformers chatOpens a chat with the served model
vllm serve openai/gpt-oss-20bDownloads the model and starts a vLLM server

Example

You send the pipeline a message that asks how a hash table works in three sentences. The snippet prints the last message of the result. That is the model's reply, up to 256 new tokens long.

For newcomers and experts

An open-weight model is one whose files you can download and run yourself. A first small thing to try is the pipeline snippet above with a short question of your own.

For experts, the model is a mixture-of-experts design with 3.6B active parameters out of 21B. It was post-trained with MXFP4 quantization of the expert weights, and the card says all its evaluations used that same quantization. You can set reasoning effort to low, medium or high. The card also says the full chain of thought is available for debugging.

  1. You send a chat message
  2. The chat template applies the harmony format
  3. The model reasons at your chosen effort
  4. It may call tools or write code
  5. You read the final reply

Good to know

Active parameters
gpt-oss-20b3.6 B
gpt-oss-120b5.1 B
  • Size: 20.9B parameters in Safetensors format, with 261 quantized and 573 fine-tuned versions made by other people
  • Tools: the card lists function calling, web browsing, Python code execution and Structured Outputs
  • License: apache-2.0
  • Cost to run: none named, no API key or account
  • Data it reaches: it downloads model files from Hugging Face, and the card lists web browsing and Python code execution as tools it can use
  • Not for: use without the harmony format, which the card says breaks it, or showing its chain of thought to end users

README and files

README

gpt-oss-20b

Writes, reasons and calls tools from text prompts, in an open-weight 21B model from OpenAI that runs within 16 GB of memory. For developers who want a local or specialized model.

Made by openai on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

About

What it is: gpt-oss-20b is the smaller of OpenAI's two open-weight gpt-oss models. It has 21B parameters with 3.6B active, and it is aimed at lower latency and local or specialized use. It handles reasoning, function calling and agent work.

Who it suits: It suits developers who want an open model they can run on their own machine, tune for one job or wire into an agent.

Industry | Who uses it | How they use it | Example
Software | Developers | Run a local model behind an app | A chat feature served from your own computer
AI engineering | Agent builders | Use function calls and code execution in an agent | An agent that browses and runs Python
Research | ML researchers | Fine-tune the model for a narrow task | A tuned version for one domain

People who want the largest model can skip it, since the card points to gpt-oss-120b for heavy production use.

Where to use it:

  • Hugging Face Transformers, with a pipeline or the Transformers Serve web server
  • vLLM, which starts an OpenAI-compatible server
  • PyTorch and Triton reference code, and Ollama, which the card also lists
  • Windows, macOS or Linux, where you download the files with Python
Use case | Who | What they get back
Local chat | Developers | Answers from a model that runs within 16 GB of memory
Agent tasks | Agent builders | Function calls, web browsing and Python code execution
Reasoning at a set effort | Researchers | Low, medium or high reasoning effort to match your latency needs

How to set it up: You need these first:

  • Python and the huggingface_hub package
  • The transformers, kernels and torch packages for the Transformers route
  • About 16 GB of memory, which the card says the 20b model fits within
  1. Install the Hugging Face hub package and download the model files.
  2. Install the packages for the Transformers route.
  3. Run the pipeline snippet to get a first reply.
pip install -U huggingface_hub
hf download openai/gpt-oss-20b
pip install -U transformers kernels torch
from transformers import pipeline
import torch

model_id = "openai/gpt-oss-20b"

pipe = pipeline(
    "text-generation",
    model=model_id,
    torch_dtype="auto",
    device_map="auto",
)

messages = [
    {"role": "user", "content": "Explain quantum mechanics clearly and concisely."},
]

outputs = pipe(
    messages,
    max_new_tokens=256,
)
print(outputs[0]["generated_text"][-1])

How to use it: Send chat messages through the pipeline, or start a server and chat with it. The model needs the harmony response format. The Transformers chat template applies it for you. With model.generate you apply it yourself.

transformers serve
transformers chat localhost:8000 --model-name-or-path openai/gpt-oss-20b
Tool | What it does
transformers serve | Starts an OpenAI-compatible web server
transformers chat | Opens a chat with the served model
vllm serve openai/gpt-oss-20b | Downloads the model and starts a vLLM server

Example: You send the pipeline a message that asks how a hash table works in three sentences. The snippet prints the last message of the result. That is the model's reply, up to 256 new tokens long.

For newcomers and experts: An open-weight model is one whose files you can download and run yourself. A first small thing to try is the pipeline snippet above with a short question of your own.

For experts, the model is a mixture-of-experts design with 3.6B active parameters out of 21B. It was post-trained with MXFP4 quantization of the expert weights, and the card says all its evaluations used that same quantization. You can set reasoning effort to low, medium or high. The card also says the full chain of thought is available for debugging.

You send a chat message
The chat template applies the harmony format
The model reasons at your chosen effort
It may call tools or write code
You read the final reply

Good to know:

Title: Active parameters
gpt-oss-20b: 3.6 B
gpt-oss-120b: 5.1 B
  • Size: 20.9B parameters in Safetensors format, with 261 quantized and 573 fine-tuned versions made by other people
  • Tools: the card lists function calling, web browsing, Python code execution and Structured Outputs
  • License: apache-2.0
  • Cost to run: none named, no API key or account
  • Data it reaches: it downloads model files from Hugging Face, and the card lists web browsing and Python code execution as tools it can use
  • Not for: use without the harmony format, which the card says breaks it, or showing its chain of thought to end users

On Hugging Face, 13 November 2026

  • Task: text generation
  • Library: transformers
  • Parameters: 20.9B
  • Weights: about 20.9 GB in U8
  • Formats: Safetensors
  • Downloads in the last 30 days: 5,685,450
  • Likes: 5,299
  • License: apache-2.0
  • Quantized versions: 263
  • Fine-tunes: 574
  • Tags: transformers, safetensors, gpt_oss, text-generation, vllm, conversational, 8-bit, mxfp4

Links

Get the model

Download its files with Hugging Face's command line:

pip install -U huggingface_hub
hf download openai/gpt-oss-20b

Then follow the usage in its model card. Nothing in this kit runs by itself.

Files
README.md  6 KB

1 file, 6 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

ProductDownloads, last 30 daysLikesParametersLicenseLast change
gpt-oss-20b This page5,685,4505,29920.9Bapache-2.0
gpt-oss-120bShares gpt_oss · mxfp4 · 8-bit2,435,2425,509117Bapache-2.0
gpt-oss-safeguard-20bShares gpt_oss · mxfp4 · 8-bit24,32529321.5Bapache-2.0
gpt-oss-safeguard-120bShares gpt_oss · mxfp4 · 8-bit16,400128117Bapache-2.0
gpt-oss-120b-GGUFShares gpt_oss · mxfp4 · text-generation81,029303117Bapache-2.0
Qwen3.8-27B-Quark-AWQ-MXFP4Shares mxfp4 · 8-bit · conversational40,2584415.6Bapache-2.0
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

What people say

Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.

amagamaなるほど。コンプラ的にクラウド処理できない文章を扱う機会がほぼ無いので自分にとって多分必須ではないですが、必要な状況だとローカルLLMの高性能化はめちゃくちゃ歓迎ですよね。 Webの解説記事で導入ハードルはなんとなく分かった気がします。 www.gizmodo.jp/article/how_...1 replyRich Ray2/ Switching to 4 rival free online models (blind to each other + non-Wiki primary refs on #4): - Anthropic Claude Haiku 4.5: 10/10 - Cohere Command-A-Plus: 9/10 (10/10 factual) - OpenAI gpt-oss-20b: 8/10 - Google Gemma 4 31B: 7/10 (8/10 factual) Every error was caught by split.1 replyToday's Top AI NewsOpenRouter leads with massive context windows: Auto Router (Beta), Pareto Code Router, SpaceXAI Grok 4.20 Multi-Agent. Top affordable: IBM Granite 4.0 Micro, OpenAI gpt-oss-20b, DeepSeek Flash Latest. Optimize power vs. cost! #ibm #openai #grok #artificialintelligence #technology #ai #deepseek1 likeToday's Top AI NewsLargest context: SpaceXAI Grok 4.20 Multi-Agent & Auto Router. Most affordable: Z.ai GLM 5.2, inclusionAI Ling 3.0 Flash, OpenAI gpt-oss-20b batch. #news #artificialintelligence #openai #technology #grok #aiToday's Top AI NewsOpenRouter leaders: **Massive context** from Auto Router, Pareto Code & Grok 4.20 Multi-Agent. **Best value** with Z.ai GLM 5.2/Flash & OpenAI gpt-oss-20b. Huge windows, tiny bills. 🚀💸 #artificialintelligence #grok #ai #openai #technology #newsToday's Top AI NewsOpenRouter's biggest context windows: Auto Router (Beta), Pareto Code Router, SpaceXAI: Grok 4.20 Multi-Agent. Most affordable: Z.ai GLM 5.2, OpenAI gpt-oss-20b, inclusionAI Ling 3.0 Flash. #openai #news #technology #artificialintelligence #ai #grokToday's Top AI NewsOpenRouter leaders: **Huge context** → Auto Router, Pareto Code, Grok 4.20 Multi-Agent. **Best value** → DeepSeek Flash, Z.ai GLM 5.2, OpenAI gpt-oss-20b. Top-tier power, tiny price. 🚀 #technology #ai #openai #news #grok #deepseek #artificialintelligenceToday's Top AI NewsMassive context windows: Auto Router (Beta), Pareto Code Router, SpaceXAI: Grok 4.20 Multi-Agent. Budget‑friendly: OpenAI gpt-oss-20b, DeepSeek Flash Latest, inclusionAI Ling 3.0 Flash. #ai #technology #deepseek #news #openai #grok #artificialintelligence

Searched

More from Mindket

See all from Mindket

Bonsai-27B-GGUF

lmstudio-community · Kit

A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…

New

Runs DeepSeek-V4.1-Flash-1017 as a 2.9 bits-per-weight EXL3 quantization, a 196 GiB copy for people serving large models on their own hardware. Perplexity stay…

New

MusicGen Small

facebook · Kit

Generates short music clips from a text description or an audio prompt, in the small checkpoint of facebook's MusicGen. It suits developers and music hobbyists…

New

Similar in Developer

See all in Developer

Lexnet

alpindale · Kit

Tags every character of C source code for syntax highlighting with a tiny neural network of about 984 weights, run through a small C program. For developers an…

New

FLUX.2 Klein LoRA Studio

prithivMLmods · Kit

Try a set of LoRAs for the FLUX.2 Klein image model in a Gradio app that runs in your browser or on your own computer. Made for people who make or test AI imag…

New

anaksor-ocr

Sokheng · Kit

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

New