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

gpt-oss-20b-bnb-4bit

Date: 2026-11-15Commit: be237a8Signed: 2DC28CC7B26A283B ✓

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

20.9B params40.9GBgpt-oss-20b-bnb-4bitsafetensorspermissive
FactsParams20.9BSize40.9 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get unsloth/gpt-oss-20b-bnb-4bit
# manifest sha256 7bd2b919acc9… · 40.9 GB · 18 files
$ fw verify ./gpt-oss-20b-bnb-4bit unsloth/gpt-oss-20b-bnb-4bit
From sourceHosted (signed)unsloth/gpt-oss-20b-bnb-4bitLast check: 2026-11-15 05:15 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
40.9 GB
Weights
40.9 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 05:15 UTCpassed

Model card

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

See our collection for all versions of gpt-oss including GGUF, 4-bit & 16-bit formats.

Learn to run gpt-oss correctly - Read our Guide.

See Unsloth Dynamic 2.0 GGUFs for our quantization benchmarks.

https://github.com/unslothai/unsloth/ https://discord.gg/unsloth https://docs.unsloth.ai/basics/gpt-oss

✨ Read our gpt-oss Guide here!#

  • Read our Blog about gpt-oss support: unsloth.ai/blog/gpt-oss
  • View the rest of our notebooks in our docs here.
  • Thank you to the llama.cpp team for their work on supporting this model. We wouldn't be able to release quants without them!

gpt-oss-20b Details#

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 · 40.9 GBWeights 40.9 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 18 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
README.md8.47 KB78060ff9daee33671cf29cddc03a3f02e933d6b7fbae3870ef05c368c519ef96
chat_template.jinja17.9 KB949f918f62563e2d7cf4a141a2b6484c8915a6e505b37dbc7dfd41ae8ca6e71d
config.json2.10 KB7a98d87cdc868a490e863dd60a03d9f860fff88c17c97788a835062944953499
generation_config.json177 B5e83efe637d4451f0b076802521df58bb5b8dc480598edece3e2dfcc773f2a18
model-00001-of-00009.safetensors4.39 GBa4a3c327aefba36ec6e7e22410120535a8ff66e839ac4f6a66a6bb79d3b422a9
model-00002-of-00009.safetensors4.82 GB16bb10d8bdb8e7b52b6745db906fbbc3dca863ef4944da0ae15f414417e7845a
model-00003-of-00009.safetensors4.82 GBa1dc0f607c8afd3887bd61bc30412c88e241a247357ff709a711ecc7706f3b11
model-00004-of-00009.safetensors4.82 GB207aada8f2b464e4dfacf47ba36ef0d7f57720c5138dfd85fb822d031758e292
model-00005-of-00009.safetensors4.82 GB19f80924359b0719fdc8cfc2973a7c936df599a3d8dc2bc4b5ffebaf3f9e77d4
model-00006-of-00009.safetensors4.82 GB38b2c63b7bbb4f7ac0d65e70ffca664aeb497628b32228ce56759ed63328556f
model-00007-of-00009.safetensors4.82 GB9bcb7e82f4c27ecf2aa5696353a024b4ce2bcceb084f960fa0ef2b23e624676b
model-00008-of-00009.safetensors4.82 GBee7b22d6f350b79f68c2933e0f488a8306b700744c7aeb64e2b2da963ea1b50c
model-00009-of-00009.safetensors2.75 GB553c0c6694a970661d23edc3c6d4bf1a5856dc0312ddbcdfcb853637e8eea182
model.safetensors.index.json80.8 KBd3b95ef32375d216afd6ce5254687a9d07b3483018ccbb81e2c7860031683535
special_tokens_map.json446 Bc661c7dc897a8d9851446db24876bbc243e6ad2f58542e9147190e6654f92855
tokenizer.json27.9 MB0614fe83cadab421296e664e1f48f4261fa8fef6e03e63bb75c20f38e37d07d3
tokenizer_config.json4.23 KB3662657e318af8fbc4b06045c1e625ecdf43a019db5ec1aa11f9bc5fcc8277ca
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
be237a84b3 pinned now2026-11-15 05:15 UTC18 files · 40.9 GB

Use it

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

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
78060ff9daee33671cf29cddc03a3f02e933d6b7fbae3870ef05c368c519ef96
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-bnb-4bitDate: 2026-11-15Commit: be237a8Signed: 2DC28CC7B26A283B ✓
Upstream
unsloth/gpt-oss-20b-bnb-4bit
Pinned commit
be237a84b32e407d54531dd6c8cb9c0f7d78bfcb
Manifest
gpt-oss-20b-bnb-4bit.json · .minisig
Manifest sha256
7bd2b919acc9ecd55ecc286ebcab2c58cae80cc08f6d95cf9f77a563294d3928
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:15 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

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