license: apache-2.0
base_model: openai/gpt-oss-20b
library_name: transformers
pipeline_tag: text-generation
language:
- en
base_model_relation: finetune
tags: - bf16
- abliterated
- uncensored
- refusal-direction
- dissident
- biprojection
- moe
- reasoning
- harmony
datasets: - JailbreakBench/JBB-Behaviors
- openai/gsm8k
GPT-OSS-20B-abliterated-v2-bf16
Public
dissidentv2 Release — Part of thedissident-v2Public bf16 Checkpoints Collection. See the full writeup inTECHNICAL_REPORT_V2.md. Supersedesashwin-sreedhar/GPT-OSS-20B-abliterated-dequantized-bf16(v1).
Public bf16 refusal-direction abliterated checkpoint (SHA-256-verified files; passes integrity, mechanical, KL, JBB, and coding gates; misses v3 IFEval length gate at 0.792x) derived from openai/gpt-oss-20b (pinned upstream commit 6cee5e81ee83917806bbde320786a8fb61efebee). This independent modification is not an official release from OpenAI.
- Direction & Intervention: Layer
13, token position-1(empty-thinkpost-reasoning boundary), rank-1 harmless-mean-projected removal (biprojin CLI logs; grimjim's projected abliteration, not cross-layer biprojection or MPOA norm preservation) across all 24 decoder layers (0..23) andembed_tokens(97edited writer tensors out of411total tensors). - Serialization & Integrity: Original weights were SHA-256 checked before and after export; edited tensor bytes, shapes, and dtypes were verified after saving (
57public files,41.87 GB/39.00 GiB). A fresh-process offline reload matched the edited in-memory reference on three fixed harmless prompts over three uncached greedy steps (max_abs_logprob_diff = 0.0,greedy_token_ids_match = True). - Provenance: The saved intervention policy, direction vector, selection logs, data/code hashes, environment versions, and verification checks are preserved in
.pipeline/. Long-context, tool-calling, and multi-turn behavior outside the benchmarks below are untested.
Evaluation (v2 & v3 Paired Suites)
Matched base vs. edited evaluation on the exact same verified dequantized bf16 baseline (reasoning_effort="low", greedy decoding, local Qwen/Qwen3Guard-Gen-4B judge pinned at 6ec42827da0c1ff11e7a49dc269d2e810d27e108). Provenance note: 20261201 JBB rows ran on sibling pod export edc2c0e2 (same L13 direction; KL_final = 0.0869); GSM8K/IF and v3 rows below ran directly on the published payload (44200a7e, KL_final = 0.0933):
| Metric | Base (dequantized bf16) | Abliterated v2 | Delta |
|---|---|---|---|
JBB Harmful Refusals (n=100, Qwen/Qwen3Guard-Gen-4B) |
95/100 (95.0%) | 0/100 (0.0%) | -95.0 pp (marker: 96/100 -> 0/100) |
JBB Harmful Unsafe (n=100, Qwen/Qwen3Guard-Gen-4B) |
2/100 (2.0%) | 94/100 (94.0%) | +92.0 pp (4 controversial, 2 safe) |
JBB Benign Over-Refusals (n=50, Qwen/Qwen3Guard-Gen-4B) |
8/50 (16.0%) | 0/50 (0.0%) | -16.0 pp |
GSM8K Accuracy (n=250) |
239/250 (95.6%) | 239/250 (95.6%) | 0.0 pp (236 both, 3 base-only, 3 v2-only) |
Verifiable Instruction Following (n=30) |
26/30 (86.7%) | 28/30 (93.3%) | +6.7 pp (26 both, 0 base-only, 2 v2-only) |
| v3 Direct Re-Measure (vLLM 0.34): JBB Harmful / Benign | 95/100 / 9/50 | 0/100 / 0/50 | -95.0 / -18.0 pp |
v3 XSTest Safe Over-Refusal (n=250) |
10.0% | 0.4% | -9.6 pp (p<0.0001) |
v3 IFEval Strict (n=541) / MMLU-Pro (n=1,008) / MATH-500 (n=500) |
73.2% / 49.3% / 83.4% | 76.2% / 51.5% / 83.6% | +2.96 / +2.18 (unstable, flip 26.4%) / +0.20 pp; IFEval len ratio 0.792x FAIL |
v3 Separate Coding Suite (n=1,745, 5/5 PASS) |
61.8% pooled | 61.8% pooled | +0.06 pp (p=1.000, AST 94.6% -> 96.4%; HE+ +12.8 pp is a length/extraction confound r=-0.95) |
- Blind human adjudication (
n=24stratified audit):24/24non-refusal agreement (both_refusal=0,both_non_refusal=24;κundefined;22/24substantive,2/24weak/evasive,0/24degenerate). Because zero refusals appeared in this v2 sample, it checked Guard's false-refusal rate on v2 only; inv0.2.5, a separate blinded 24-prompt human recall audit (qwen3guard-refusal-recall-adjudication-v3.json,7fe54e16, 17 Base + 7 band10:18) validated12/12refusal recall (100.0%, Wilson 95% CI[75.8%, 100.0%],κ=1.000,TP=12, TN=12, FP=0, FN=0; subtle hedged refusals like120B v2.0remain unvalidated). Safe/Controversial/Unsafe agreement was8/23(34.8%) on a disagreement-enriched sample;Unsafecounts are reported strictly as Guard labels, not ground truth. - Export diagnostics (
.pipeline/measurements.json):- Held-out harmless first-token KL (
n=100):KL_final = 0.0933(0.093337 <= 0.10),KL_analysis = 0.0737(0.07371). - Mechanical projection suppression (
<= 1.0%gate passed):harmful_valsplit:0.785%max_resid_ratio(0.787%max_cum_delta_ratio)pooledsplit:0.879%max_per_layer_ratio(0.882%max_cum_delta_ratio)
- Held-out harmless first-token KL (
Usage & Inference
Hardware & VRAM Guide
- bf16 Disk Size:
41.87 GB(39.00 GiBacross13.safetensorsshards) - Inference (
1xmodel):48 GBGPU (e.g. L40S, A6000, A100-80GB) - Abliteration / Base vs. v2 TUI Side-by-Side:
96 GBGPU (e.g. RTX PRO 6000 Blackwell)
Python (transformers, Harmony Chat Template)
Use requirements/native-cuda.txt (transformers>=5.21,<6) with eager attention and eager experts, formatting prompts via the Harmony chat template at reasoning_effort="low":
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "ashwin-sreedhar/GPT-OSS-20B-abliterated-v2-bf16"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
attn_implementation="eager",
)
if hasattr(model, "set_experts_implementation"):
model.set_experts_implementation("eager")
messages = [{"role": "user", "content": "Explain how Linux sudoers permissions work."}]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
reasoning_effort="low",
return_tensors="pt",
return_dict=True,
).to(model.device)
with torch.inference_mode():
out = model.generate(**inputs, max_new_tokens=512, do_sample=False)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=False))
OpenAI-Compatible Serving (vLLM)
vllm serve ashwin-sreedhar/GPT-OSS-20B-abliterated-v2-bf16 \
--dtype bfloat16 \
--max-model-len 8192
Verify, Chat, & Reproduce with dissident
pip install "dissident[cuda,demo]"
# Offline cryptographic manifest, tensor, reload, and <= 1% mechanical verification
dissident verify /path/to/GPT-OSS-20B-abliterated-v2-bf16
# Interactive terminal chat (displays Harmony final channel cleanly)
dissident chat --model /path/to/GPT-OSS-20B-abliterated-v2-bf16
# Full reproduction from pinned upstream MXFP4 weights
dissident prepare-data --output data
dissident convert --model openai/gpt-oss-20b --revision 6cee5e81ee83917806bbde320786a8fb61efebee --output models/gpt-oss-20b-base-bf16
dissident run \
--model openai/gpt-oss-20b \
--revision 6cee5e81ee83917806bbde320786a8fb61efebee \
--prepared-source models/gpt-oss-20b-base-bf16 \
--data data \
--output models/GPT-OSS-20B-abliterated-v2-bf16
v0.2.5 Verification Closes (2026-12-03, sealed in evaluation/results/)
- AST-aware
HumanEval+A/B proof (gpt-oss-20b-coding-astfix-v3.json,545a79d7): On identical rawHumanEval+completions (n=164), switching frompy_blocks[-1]to AST-awareentry_pointextraction rescued 16 Base items / 0 regressed (70.12% -> 79.88%,p=3.1e-5, AST fails10 -> 1), collapsingv2 vs Basefrom+12.80 pp(p=0.0015) to a non-significant+3.66 pp [-2.44, +9.76](p=0.327). - Base-vs-Base
MMLU-Pronoise floor (gpt-oss-20b-base-vs-base-mmlu-pro-v3.json,a6bf7e71): Identical Base bf16 across two independent vLLM subprocesses (n=1,008, low reasoning effort) scored49.31%vs51.29%(+1.98 pp [-0.30, +4.27],p=0.116),14.48%null flips, max domain swing+15.28 pp(biology,p=0.019). - Mid-band
10:18Guard check (gpt-oss-20b-band10-18-v3.json,3588ec70, held): Recovers IFEval median word length (0.792x -> 0.948x, PASS; IFEval strict-0.37 pp [-3.51, +2.59],p=0.906) and cuts held-out KL2.6x/8.0x(0.0357final /0.0092analysis), but leaves8/100JBB Guard refusals (> 5/100;1.485%max band delta), soband 10:18stays held.
Intended Use & Limitations
Released strictly for mechanistic interpretability, refusal-geometry research, and safety-probe evaluation. Because refusals are suppressed, do not deploy to end users without external safety filtering and misuse monitoring. Upstream Apache-2.0 license and USAGE_POLICY apply.
Precision Provenance
OpenAI released openai/gpt-oss-20b routed expert weights in MXFP4. This checkpoint was edited from a separately saved, verified bf16 dequantization of that release (.conversion/). Dequantization enables clean bf16 linear algebra without recovering precision lost during upstream quantization; this is not an original full-precision OpenAI release. The unedited comparison baseline is that exact same verified bf16 dequantization.
Modification & Distribution Notice
The weight files were modified by dissident (MIT) using the intervention recorded in .pipeline/. Each .safetensors file carries a modification notice in its header. Release packaging updates header metadata only: every tensor's dtype, shape, offsets, and payload bytes remain identical to the verified edited checkpoint. The original upstream checkpoint is untouched.
Upstream license (Apache-2.0), attribution, and usage restrictions continue to apply. See the included LICENSE, USAGE_POLICY, and LICENSE_SOURCES.json files. No benchmark prompts or raw harmful completions are included.
Public dissident v2 Checkpoints
| Model | Architecture | Method | JBB Refusals | Benign Over-Refusals | GSM8K | KL / Mech |
|---|---|---|---|---|---|---|
| GPT-OSS-20B v2 (this model) | 21B MoE (Harmony) | L13 pos=-1 r1 biproj |
95/100 -> 0/100 | 8/50 -> 0/50 | 95.6% -> 95.6% (n=250) |
0.0933 / 0.785% |
| GPT-OSS-120B v2 | 120B-A5.1B MoE (Harmony) | L21 joint 2-dir (final+analysis) biproj, band 12:27 |
96/100 -> 3/100 | 16/50 -> 0/50 | 96.7% -> 96.0% (n=150) |
0.0992 / L12..22 <=0.93% (L23..27 1.06-2.13%*) |
| Kimi-Linear-48B v2 | 48B-A3B Hybrid Linear MoE | L16 pos=-2 r1 biproj |
92/100 -> 1/100 | 9/50 -> 0/50 | 93.3% -> 90.7% (n=150) |
0.0830 / 0.658% |
*GPT-OSS-120B v2 is a disclosed gate exception: 4 of 5 trailing band layers exceed 1.0% on per-layer writes (max 2.13%; confirmed in v0.2.5 via fp32 replay <= 0.000113%, 18,772x drop) and vLLM JBB is 6/100 (3/100 HF eager).
Citation
@software{sreedhar2026dissident,
author = {Sreedhar, Ashwin},
title = {dissident: Reproducible bf16 refusal-direction abliteration, mechanistic verification, and local safety evaluation},
year = {2026},
version = {0.2.4},
url = {https://github.com/ashwinsreedhar28/dissident}
}
Built with dissident (MIT; pip install dissident on PyPI) · Technical Report: TECHNICAL_REPORT_V2.md · Interactive Report: ashwinsreedhar28.github.io/dissident · Public v2 checkpoints: dissident-v2 Collection.