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

gpt-oss-20b-unsloth-bnb-4bit

Date: 2026-11-15Commit: 4e0b9deSigned: 2DC28CC7B26A283B ✓

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

20.9B params12.6GBgpt-oss-20b-unsloth-bnb-4bitsafetensorspermissive
FactsParams20.9BSize12.6 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get unsloth/gpt-oss-20b-unsloth-bnb-4bit
# manifest sha256 0e2230686d58… · 12.6 GB · 14 files
$ fw verify ./gpt-oss-20b-unsloth-bnb-4bit unsloth/gpt-oss-20b-unsloth-bnb-4bit
From sourceHosted (signed)unsloth/gpt-oss-20b-unsloth-bnb-4bitLast check: 2026-11-15 04:37 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
12.6 GB
Weights
12.5 GB (safetensors)
Parameters
20.9B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
14, 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:37 UTCpassed

Model card

From the publisher at commit 4e0b9de. 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!

The F32 quant is MXFP4 upcasted to BF16 for every single layer and is unquantized.

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

14 files · 12.6 GBWeights 12.5 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 14 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
README.md8.55 KB29cca71085279c7224e86d65c31fec498426566407ead2be6794742db53d7cb3
chat_template.jinja17.9 KB949f918f62563e2d7cf4a141a2b6484c8915a6e505b37dbc7dfd41ae8ca6e71d
chat_template.json18.7 KB9a29302d0a30e37cf74097ebb230e19f189037dde90ce3bdecea36daf10b8f84
config.json2.15 KB8d2a25b5980bb9135abe915c9e62ed57dd824bec53dfb57b3dbfc4abe5d2d39c
generation_config.json177 Bf9970ada892d2d1f72e3ed0a6535ccebadd11897318794ca671d8c7014c957da
model-00001-of-00004.safetensors4.00 GBf229f4364b1f2cfa7df0ced4d22777145d3d552f95512f98b20493ea094e8b89
model-00002-of-00004.safetensors4.00 GB2b75ef14502b54c47cad18bb6c2f96e919991ba994a3331799e38891ac290a30
model-00003-of-00004.safetensors3.37 GB76cc7c3bf1cd287a8a7cea77e00eb45ce6d6a0fbc7084d29a347eed0b398af90
model-00004-of-00004.safetensors1.16 GB31709e4bd1403df4437091d952e2ec837efbbfc06337b4b2b6c6875491e0e7bc
model.safetensors.index.json1.19 MBe1f5f117b5ca6c1e532d7c04247ae4d1ca481190eec11fb4402fe1305064a7cf
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
4e0b9dea13 pinned now2026-11-15 04:37 UTC14 files · 12.6 GB

Use it

$ fw get unsloth/gpt-oss-20b-unsloth-bnb-4bit
# manifest sha256 0e2230686d58… · 12.6 GB · 14 files
$ fw verify ./gpt-oss-20b-unsloth-bnb-4bit unsloth/gpt-oss-20b-unsloth-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-unsloth-bnb-4bit.json --dir ./gpt-oss-20b-unsloth-bnb-4bit $ python3 fw.py verify ./gpt-oss-20b-unsloth-bnb-4bit ./unsloth__gpt-oss-20b-unsloth-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-unsloth-bnb-4bit --revision 4e0b9dea13d69ffbe5b848cd5c9b01a32e85dd74 --local-dir ./gpt-oss-20b-unsloth-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-unsloth-bnb-4bit", revision="4e0b9dea13d69ffbe5b848cd5c9b01a32e85dd74") model = AutoModelForCausalLM.from_pretrained("unsloth/gpt-oss-20b-unsloth-bnb-4bit", revision="4e0b9dea13d69ffbe5b848cd5c9b01a32e85dd74", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve unsloth/gpt-oss-20b-unsloth-bnb-4bit --revision 4e0b9dea13d69ffbe5b848cd5c9b01a32e85dd74

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
29cca71085279c7224e86d65c31fec498426566407ead2be6794742db53d7cb3
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-unsloth-bnb-4bitDate: 2026-11-15Commit: 4e0b9deSigned: 2DC28CC7B26A283B ✓
Upstream
unsloth/gpt-oss-20b-unsloth-bnb-4bit
Pinned commit
4e0b9dea13d69ffbe5b848cd5c9b01a32e85dd74
Manifest
gpt-oss-20b-unsloth-bnb-4bit.json · .minisig
Manifest sha256
0e2230686d5843402e4ea6cdd4ce9da3f8477e4ca5f2102c31afbec8e9a865a6
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:37 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

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