From: unsloth <huggingface.co/unsloth>Newsgroups: alt.freeweights.gpt-ossSubject:

gpt-oss-20b

Date: 2026-11-15Commit: 3006140Signed: 2DC28CC7B26A283B ✓

Text generation model with 20.9B parameters. Safetensors weights, 27.5 GB in all. Published by unsloth under Apache-2.0.

20.9B params27.5GBgpt-oss-20bsafetensorspermissive
FactsParams20.9BSize27.5 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get unsloth/gpt-oss-20b
# manifest sha256 26855d570634… · 27.5 GB · 18 files
$ fw verify ./gpt-oss-20b unsloth/gpt-oss-20b
From sourceHosted (signed)unsloth/gpt-oss-20bLast check: 2026-11-15 04:40 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Quantized of gpt-oss-20b.

Works with

Overview

Size
27.5 GB
Weights
13.8 GB (safetensors)
Parameters
20.9B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
18, each with a sha256
Publisher
unsloth
Added
2026-11-15
Section
alt.freeweights.gpt-oss
Lineage

Original release from the publisher.

Base model: openai/gpt-oss-20b

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 04:40 UTCpassed

Model card

From the publisher at commit 3006140. Shown as plain text with links; images open at the publisher.

Image: gpt-oss-20b

Try gpt-oss · Guides · Model card · OpenAI blog

Welcome to the gpt-oss series, OpenAI’s open-weight models designed for powerful reasoning, agentic tasks, and versatile developer use cases.

We’re releasing two flavors of these open models:

  • gpt-oss-120b — for production, general purpose, high reasoning use cases that fit into a single H100 GPU (117B parameters with 5.1B active parameters)
  • gpt-oss-20b — for lower latency, and local or specialized use cases (21B parameters with 3.6B active parameters)

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.

Note. This model card is dedicated to the smaller gpt-oss-20b model. Check out gpt-oss-120b for the larger model.

Highlights#

  • Permissive Apache 2.0 license: Build freely without copyleft restrictions or patent risk—ideal for experimentation, customization, and commercial deployment.
  • Configurable reasoning effort: Easily adjust the reasoning effort (low, medium, high) based on your specific use case and latency needs.
  • Full chain-of-thought: Gain complete access to the model’s reasoning process, facilitating easier debugging and increased trust in outputs. It’s not intended to be shown to end users.
  • Fine-tunable: Fully customize models to your specific use case through parameter fine-tuning.
  • Agentic capabilities: Use the models’ native capabilities for function calling, web browsing, Python code execution, and Structured Outputs.
  • Native MXFP4 quantization: The models are trained with native MXFP4 precision for the MoE layer, making gpt-oss-120b run on a single H100 GPU and the gpt-oss-20b model run within 16GB of memory.

Inference examples#

Transformers#

You can use gpt-oss-120b and gpt-oss-20b with Transformers. If you use the Transformers chat template, it will automatically apply the harmony response format. If you use model.generate directly, you need to apply the harmony format manually using the chat template or use our openai-harmony package.

To get started, install the necessary dependencies to setup your environment:

pip install -U transformers kernels torch 

Once, setup you can proceed to run the model by running the snippet below:

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])

Alternatively, you can run the model via Transformers Serve to spin up a OpenAI-compatible webserver:

transformers serve
transformers chat localhost:8000 --model-name-or-path openai/gpt-oss-20b

Learn more about how to use gpt-oss with Transformers.

vLLM#

vLLM recommends using uv for Python dependency management. You can use vLLM to spin up an OpenAI-compatible webserver. The following command will automatically download the model and start the server.

uv pip install --pre vllm==0.10.1+gptoss \
    --extra-index-url https://wheels.vllm.ai/gpt-oss/ \
    --extra-index-url https://download.pytorch.org/whl/nightly/cu128 \
    --index-strategy unsafe-best-match

vllm serve openai/gpt-oss-20b

Learn more about how to use gpt-oss with vLLM.

PyTorch / Triton#

To learn about how to use this model with PyTorch and Triton, check out our reference implementations in the gpt-oss repository.

Ollama#

If you are trying to run gpt-oss on consumer hardware, you can use Ollama by running the following commands after installing Ollama.

# gpt-oss-20b
ollama pull gpt-oss:20b
ollama run gpt-oss:20b

Learn more about how to use gpt-oss with Ollama.

LM Studio#

If you are using LM Studio you can use the following commands to download.

# gpt-oss-20b
lms get openai/gpt-oss-20b

Check out our awesome list for a broader collection of gpt-oss resources and inference partners.


Download the model#

You can download the model weights from the Hugging Face Hub directly from Hugging Face CLI:

# gpt-oss-20b
huggingface-cli download openai/gpt-oss-20b --include "original/*" --local-dir gpt-oss-20b/
pip install gpt-oss
python -m gpt_oss.chat model/

Reasoning levels#

You can adjust the reasoning level that suits your task across three levels:

  • Low: Fast responses for general dialogue.
  • Medium: Balanced speed and detail.
  • High: Deep and detailed analysis.

The reasoning level can be set in the system prompts, e.g., "Reasoning: high".

Tool use#

The gpt-oss models are excellent for:

  • Web browsing (using built-in browsing tools)
  • Function calling with defined schemas
  • Agentic operations like browser tasks

Fine-tuning#

Both gpt-oss models can be fine-tuned for a variety of specialized use cases.

This smaller model gpt-oss-20b can be fine-tuned on consumer hardware, whereas the larger gpt-oss-120b can be fine-tuned on a single H100 node.

Files

18 files · 27.5 GBWeights 13.8 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 18 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
LICENSE11.4 KB58d1e17ffe5109a7ae296caafcadfdbe6a7d176f0bc4ab01e12a689b0499d8bd
README.md6.72 KB8441a39347c16fe3ecca33cde55cc7c8cf3eb514eed68da7b51449efa1444225
USAGE_POLICY201 Bfc48d386a7a7ff8b066f743cfe62df683ab16892450f5bb7357bb4de261cd037
chat_template.jinja17.9 KB949f918f62563e2d7cf4a141a2b6484c8915a6e505b37dbc7dfd41ae8ca6e71d
chat_template.json18.7 KB9a29302d0a30e37cf74097ebb230e19f189037dde90ce3bdecea36daf10b8f84
config.json1.83 KBbfdd93307ed953c65ea93098a123220a6738f9a50057ab160050557c2739f5d4
generation_config.json177 Bf9970ada892d2d1f72e3ed0a6535ccebadd11897318794ca671d8c7014c957da
metal/model.bin13.8 GB725b7f996b5a226d922f034a731aefc398652f670dcafc2efd78620509a0fef1
model-00000-of-00002.safetensors4.79 GB16d0f997dcfc4462089d536bffe51b4bcea2f872f5c430be09ef8ed392312427
model-00001-of-00002.safetensors4.80 GB4fbe328ab445455d6f58dc73852b85873bd626986310abd91cd4d2ce3245eaea
model-00002-of-00002.safetensors4.17 GBa18106b209e9ab35c3406db4f6f12a927364a058b21e9d1373d682e20674b303
model.safetensors.index.json36.4 KB0e085b977c4c9942f85938828e8c989ed7d5cdabf852e4da6a67c116cd502cd1
original/config.json376 B317522155fc243327ee341857d0c752d0094a0817e0e9aee2890d5ad8e009e04
original/dtypes.json13.1 KB566c9e6aded8957f41f1589cabaf73e39f2d1fcda3351d63efdfb7e9e78d376b
special_tokens_map.json446 Bc661c7dc897a8d9851446db24876bbc243e6ad2f58542e9147190e6654f92855
tokenizer.json27.9 MB0614fe83cadab421296e664e1f48f4261fa8fef6e03e63bb75c20f38e37d07d3
tokenizer_config.json22.9 KB86e6545404b5a15099593ebc6b91ada696983cb0380ce7fbdb5ae7d4ff6381b0
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
30061408d1 pinned now2026-11-15 04:40 UTC18 files · 27.5 GB

Use it

$ fw get unsloth/gpt-oss-20b
# manifest sha256 26855d570634… · 27.5 GB · 18 files
$ fw verify ./gpt-oss-20b unsloth/gpt-oss-20b
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/unsloth/gpt-oss-20b.json --dir ./gpt-oss-20b $ python3 fw.py verify ./gpt-oss-20b ./unsloth__gpt-oss-20b.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download unsloth/gpt-oss-20b --revision 30061408d1b88e5da5a2ca4583adc4ee93028781 --local-dir ./gpt-oss-20b
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("unsloth/gpt-oss-20b", revision="30061408d1b88e5da5a2ca4583adc4ee93028781") model = AutoModelForCausalLM.from_pretrained("unsloth/gpt-oss-20b", revision="30061408d1b88e5da5a2ca4583adc4ee93028781", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve unsloth/gpt-oss-20b --revision 30061408d1b88e5da5a2ca4583adc4ee93028781

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
LICENSE
Text sha256
58d1e17ffe5109a7ae296caafcadfdbe6a7d176f0bc4ab01e12a689b0499d8bd
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: unsloth <huggingface.co/unsloth>Newsgroups: alt.freeweights.gpt-ossSubject: gpt-oss-20bDate: 2026-11-15Commit: 3006140Signed: 2DC28CC7B26A283B ✓
Upstream
unsloth/gpt-oss-20b
Pinned commit
30061408d1b88e5da5a2ca4583adc4ee93028781
Manifest
gpt-oss-20b.json · .minisig
Manifest sha256
26855d57063435cb601ac159b9cb7b57adbdab0343ec808b9f2ac5c509aa242c
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:40 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/unsloth/gpt-oss-20b.json $ curl -O https://freeweights.allternit.com/manifests/unsloth/gpt-oss-20b.json.minisig $ minisign -Vm gpt-oss-20b.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

openai/gpt-oss-20b · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download unsloth/gpt-oss-20b
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. gpt-oss-20b.json. Provenance. Takedown history: none.
From: unsloth <huggingface.co/unsloth>Subject: gpt-oss-120b
From: mlx-community <huggingface.co/mlx-community>Subject: gpt-oss-120b-4bit
From: unsloth <huggingface.co/unsloth>Subject: gpt-oss-120b-BF16
From: lmstudio-community <huggingface.co/lmstudio-community>Subject: gpt-oss-120b-GGUF
From: unsloth <huggingface.co/unsloth>Subject: gpt-oss-120b-GGUF
From: lmstudio-community <huggingface.co/lmstudio-community>Subject: gpt-oss-120b-MLX-8bit