alt.freeweights.gpt-oss / gpt-oss-20b-BF16
From: unsloth <huggingface.co/unsloth>Newsgroups: alt.freeweights.gpt-ossSubject:

gpt-oss-20b-BF16

Date: 2026-11-15Commit: 5a6fe4cSigned: 2DC28CC7B26A283B ✓

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

20.9B params41.9GBgpt-oss-20b-BF16safetensorspermissive
FactsParams20.9BSize41.9 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get unsloth/gpt-oss-20b-BF16
# manifest sha256 fdcee11e0a44… · 41.9 GB · 18 files
$ fw verify ./gpt-oss-20b-BF16 unsloth/gpt-oss-20b-BF16
From sourceHosted (signed)unsloth/gpt-oss-20b-BF16Last check: 2026-11-15 02:38 UTC

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

Fine-tune of gpt-oss-20b.

Works with

Overview

Size
41.9 GB
Weights
41.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 02:38 UTCpassed

Model card

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

Image: gpt-oss-20b

Try gpt-oss · Guides · System 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 the open models:

  • gpt-oss-120b — for production, general purpose, high reasoning use cases that fits 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 · 41.9 GBWeights 41.8 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 18 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
README.md6.73 KB8f0e02cf5be26d282d0952a1701738a180b7ef4ca9e56c0e0caf3ed06339968e
chat_template.jinja17.9 KB949f918f62563e2d7cf4a141a2b6484c8915a6e505b37dbc7dfd41ae8ca6e71d
config.json1.62 KB1f2cdaf00d4c53dac6250cd435e31b3dafb7ce60b7dc5e7622ee292d57861975
generation_config.json177 B5e83efe637d4451f0b076802521df58bb5b8dc480598edece3e2dfcc773f2a18
model-00001-of-00009.safetensors4.50 GBdc729189133161b61e287dd7bdec06afc2b7f77ed1820ca53eda0553fa742230
model-00002-of-00009.safetensors4.94 GBa4708b3da84cd7d559f5cd2eb9d0d13466ae1ccd90fdee8295d9ec3d8748582c
model-00003-of-00009.safetensors4.94 GB96031fa4efe1e880b2f17ac4352c3a2d251129d8140d122b9e8649a2d45c51d2
model-00004-of-00009.safetensors4.94 GB46e221c089ddcbacd6f4495a2dfccea2206cb8b21795ea868415125e9fb8139e
model-00005-of-00009.safetensors4.94 GBf223ae981c1c8f4925334b8e0954ce78a613b0602d3eba28ea73f0146c9d73f3
model-00006-of-00009.safetensors4.94 GBbf0e3a0ccf931369e3ebe77f1f6d0a1781d739d6cb1dfed7c54fedda3f94fe18
model-00007-of-00009.safetensors4.94 GB51a3ad356e1a0d63de63f78975caf1a129d7d29bc00a7614de652aff7a4c57b0
model-00008-of-00009.safetensors4.94 GB07a2d79388f1f6f1bebac3d03216b6ac47c2bf498640ab54ac8c15beb629847f
model-00009-of-00009.safetensors2.75 GB6c1951ff65d233bcb7f50485d294cced6497b8e0d9707f57087912fc2352492e
model.safetensors.index.json33.6 KBbb72789eabdd4253264b146ad5a1f98d3ac215e214c942e563e756357e044f74
special_tokens_map.json440 B8464cabd6eda239fe46ebf8ae63b46c417721784a961a022f6b59174a2cda0e2
tokenizer.json27.9 MB0614fe83cadab421296e664e1f48f4261fa8fef6e03e63bb75c20f38e37d07d3
tokenizer_config.json4.20 KB9279e942392b742d633c7adbb89ebe002c98399db8926a7af5125c726f404070
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
5a6fe4c0c1 pinned now2026-11-15 02:38 UTC18 files · 41.9 GB

Use it

$ fw get unsloth/gpt-oss-20b-BF16
# manifest sha256 fdcee11e0a44… · 41.9 GB · 18 files
$ fw verify ./gpt-oss-20b-BF16 unsloth/gpt-oss-20b-BF16
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-BF16.json --dir ./gpt-oss-20b-BF16 $ python3 fw.py verify ./gpt-oss-20b-BF16 ./unsloth__gpt-oss-20b-BF16.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download unsloth/gpt-oss-20b-BF16 --revision 5a6fe4c0c1a86147cb9dc1bb99486e61d12a3c9e --local-dir ./gpt-oss-20b-BF16
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-BF16", revision="5a6fe4c0c1a86147cb9dc1bb99486e61d12a3c9e") model = AutoModelForCausalLM.from_pretrained("unsloth/gpt-oss-20b-BF16", revision="5a6fe4c0c1a86147cb9dc1bb99486e61d12a3c9e", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve unsloth/gpt-oss-20b-BF16 --revision 5a6fe4c0c1a86147cb9dc1bb99486e61d12a3c9e

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
README.md
Text sha256
8f0e02cf5be26d282d0952a1701738a180b7ef4ca9e56c0e0caf3ed06339968e
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-20b-BF16Date: 2026-11-15Commit: 5a6fe4cSigned: 2DC28CC7B26A283B ✓
Upstream
unsloth/gpt-oss-20b-BF16
Pinned commit
5a6fe4c0c1a86147cb9dc1bb99486e61d12a3c9e
Manifest
gpt-oss-20b-BF16.json · .minisig
Manifest sha256
fdcee11e0a4461fce5d194622f2ab9a27cdc98a9b0918d45bbd87b8723a9d664
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:38 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/unsloth/gpt-oss-20b-BF16.json $ curl -O https://freeweights.allternit.com/manifests/unsloth/gpt-oss-20b-BF16.json.minisig $ minisign -Vm gpt-oss-20b-BF16.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 finetune of it

3 models in the catalog name this one as their parent.

Fine-tunes
2
Quantizations
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download unsloth/gpt-oss-20b-BF16
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-BF16.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of gpt-oss-20b-BF16. Each has its own license check and page.

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