alt.freeweights.abliterated / gpt-oss-20b-heretic
From: p-e-w <huggingface.co/p-e-w>Newsgroups: alt.freeweights.abliteratedSubject:

gpt-oss-20b-heretic

Date: 2026-11-15Commit: 40a07b3Signed: 2DC28CC7B26A283B ✓

Text generation model with 20.9B parameters. Safetensors weights, 41.9 GB in all. Published by p-e-w under Apache-2.0. Changed from the base model.

20.9B params41.9GBgpt-oss-20b-hereticsafetensorspermissive
FactsParams20.9BSize41.9 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get p-e-w/gpt-oss-20b-heretic
# manifest sha256 8ac7348d0e4e… · 41.9 GB · 18 files
$ fw verify ./gpt-oss-20b-heretic p-e-w/gpt-oss-20b-heretic
From sourceHosted (signed)p-e-w/gpt-oss-20b-hereticLast check: 2026-11-15 03:24 UTC

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

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
p-e-w
Added
2026-11-15
Section
alt.freeweights.abliterated
Lineage

Changed from the base model. The uploader's repo is named abliterated: refusal behavior was removed by the uploader. Read the model card at the source for the method and the layers touched.

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 03:24 UTCpassed

Model card

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

This is a decensored version of openai/gpt-oss-20b, made using Heretic v1.0.0#

Abliteration parameters#

ParameterValue
direction_index16.66
attn.o_proj.max_weight1.44
attn.o_proj.max_weight_position16.33
attn.o_proj.min_weight1.26
attn.o_proj.min_weight_distance12.29
mlp.down_proj.max_weight1.03
mlp.down_proj.max_weight_position17.86
mlp.down_proj.min_weight0.64
mlp.down_proj.min_weight_distance9.35

Performance#

MetricThis modelOriginal model (openai/gpt-oss-20b)
KL divergence0.960 (by definition)
Refusals58/100100/100

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 80GB GPU (like NVIDIA H100 or AMD MI300X) (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.
  • MXFP4 quantization: The models were post-trained with MXFP4 quantization of the MoE weights, making gpt-oss-120b run on a single 80GB GPU (like NVIDIA H100 or AMD MI300X) and the gpt-oss-20b model run within 16GB of memory. All evals were performed with the same MXFP4 quantization.

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.

Citation#

@misc{openai2025gptoss120bgptoss20bmodel,
      title={gpt-oss-120b & gpt-oss-20b Model Card}, 
      author={OpenAI},
      year={2025},
      eprint={2508.10925},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2508.10925}, 
}

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.md8.04 KB9d4c8002cd69d149da9021e16e12659147413cff544378300ab84d9b6bfbd30f
chat_template.jinja16.7 KBa4c9919cbbd4acdd51ccffe22da049264b1b73e59055fa58811a99efbd7c8146
config.json1.61 KBabbfcc94fd07e21544a068152e6cf80f2aa4df0f1c7d4829c125301c1f116bdb
generation_config.json172 Be09f52ba1452cd58df4bc55189b1828bb0428ddcfb395d06ff178a2bfb74193a
model-00001-of-00009.safetensors4.50 GBdc729189133161b61e287dd7bdec06afc2b7f77ed1820ca53eda0553fa742230
model-00002-of-00009.safetensors4.94 GB6bb5664500acc5de241a073fcfb190b82055aec43c70340596e8d59ab3ebfbbb
model-00003-of-00009.safetensors4.94 GBfbfb5ded842a2f5edc694495f80938da0712f692570a08719105e703ba5bfb36
model-00004-of-00009.safetensors4.94 GB01f2fb39560160526487b54a858e1d1aec0e5ea4ace85ac9ad9166f2ec6e2b84
model-00005-of-00009.safetensors4.94 GB39a6844ad0c03b1bb8ec25af318b13978a90f3e166064af1941cf777afcf07b9
model-00006-of-00009.safetensors4.94 GB623640c40cbcf517f1e410374f3dd3eb7a643f6bf42f345e430e908ef80e9dce
model-00007-of-00009.safetensors4.94 GB19753c706d8c4996ad5eeaa271b4ce4fe3b6bca18d2de6f8f5a5f924dc5f9bd1
model-00008-of-00009.safetensors4.94 GB7656dd58153a2eb488df017f02660d7b01ce9ed001f35f9c8215c28eed1fd51d
model-00009-of-00009.safetensors2.75 GB6f1787a6326808fd666345276177c7a8757aade229d45bba890cc83f859def3f
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
40a07b3c6d pinned now2026-11-15 03:24 UTC18 files · 41.9 GB

Use it

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

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
9d4c8002cd69d149da9021e16e12659147413cff544378300ab84d9b6bfbd30f
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: p-e-w <huggingface.co/p-e-w>Newsgroups: alt.freeweights.abliteratedSubject: gpt-oss-20b-hereticDate: 2026-11-15Commit: 40a07b3Signed: 2DC28CC7B26A283B ✓
Upstream
p-e-w/gpt-oss-20b-heretic
Pinned commit
40a07b3c6d681a949db1ace3185050b5a0893093
Manifest
gpt-oss-20b-heretic.json · .minisig
Manifest sha256
8ac7348d0e4ecfbd403e87eecbbabf49a95df6541b3848a60ac166735d46e208
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:24 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/p-e-w/gpt-oss-20b-heretic.json $ curl -O https://freeweights.allternit.com/manifests/p-e-w/gpt-oss-20b-heretic.json.minisig $ minisign -Vm gpt-oss-20b-heretic.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

1 model in the catalog name this one as their parent.

Quantizations
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download p-e-w/gpt-oss-20b-heretic
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-heretic.json. Provenance. Takedown history: none.

Variants

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

From: xtools-at <huggingface.co/xtools-at>Subject: DeepSeek-V4-Pro-Qwen3.5-9B-UNCENSORED-heretic
From: mlx-community <huggingface.co/mlx-community>Subject: DeepSeek-V4-Pro-Qwen3.5-9B-UNCENSORED-heretic-OptiQ-4bit
From: mlx-community <huggingface.co/mlx-community>Subject: gemma-4-26B-A4B-it-heretic-msq-2.6bit
From: coder3101 <huggingface.co/coder3101>Subject: gemma-4-31B-it-heretic
From: Ilya626 <huggingface.co/Ilya626>Subject: gemma-4-31B-it-SDFT-Heretic-RP
From: llmfan46 <huggingface.co/llmfan46>Subject: gemma-4-31B-it-uncensored-heretic