A version of Qwen/Qwen3.8-27B with its refusal direction removed by RANA (Reasoning-Anchored, Norm-preserving Ablation), released by Abliterant for refusal-behavior research. This repository holds the BF16 reference weights of the 27B vision-language model; FP8, GGUF and MLX builds are listed under Release family.
Quick start · Intended use · What changed · Evaluation · Limitations · Available files
abliterant.ai · Research notes · All formats · Abliterant models
Research model with safety alignment removed. It will produce content the base model refuses. Read Intended use and Limitations before using it.
| Field | Value |
|---|---|
| Developed by | Abliterant |
| Base model | Qwen/Qwen3.8-27B |
| Release type | RANA refusal-direction ablation |
| Weights | BF16 safetensors, 18 shards, approximately 55.6 GB |
| Parameters | 27,781,427,952 BF16 parameters, as indexed by the Hub |
| Context | 262,144 tokens configured; evaluation used a 20,480-token serving limit |
| License | Apache-2.0 |
| Intended use | Refusal-behavior research; see Intended use |
The Abliterant release family includes BF16, FP8, GGUF, and MLX builds. Each format has its own runtime instructions and evaluation scope.
| Format | Repo | Size |
|---|---|---|
| BF16 (this repo) | abliterant/Qwen3.8-27B-RANA-abliterated |
55.6 GB |
| FP8 (block e4m3, same layout as Qwen's official FP8) | abliterant/Qwen3.8-27B-RANA-abliterated-FP8 |
30.9 GB |
| GGUF (llama.cpp; Q8_0 to IQ2_M, plus vision and MTP files) | abliterant/Qwen3.8-27B-RANA-abliterated-GGUF |
10.0–28.6 GB |
| MLX (Apple Silicon; 4-, 5-, 6-, 8-bit and BF16, plus MTP drafter) | abliterant/Qwen3.8-27B-RANA-abliterated-MLX |
16.1–54.7 GB |
Tested release configuration: vLLM 0.30.0.
VLLM_USE_FLASHINFER_SAMPLER=0 vllm serve abliterant/Qwen3.8-27B-RANA-abliterated \
--dtype bfloat16 --max-model-len 20480 \
--reasoning-parser qwen3 --enable-auto-tool-choice --tool-call-parser qwen3_coder \
--limit-mm-per-prompt '{"image": 1, "video": 0}' \
--speculative-config '{"method": "mtp", "num_speculative_tokens": 2}'
| Setting | Value |
|---|---|
| Hardware | Fits on one 80 GB+ GPU in BF16 |
| Lower-memory option | The FP8 build needs about half the weight memory; see its card for how it compares with this one |
| Thinking mode | On by default |
| Sampling | T = 1.0, top_p = 0.95, top_k = 20 |
| Context | --max-model-len 20480, which matches the evaluation's serving limit and 16,384-token generation budget |
| Long technical requests | Can need 20–50k tokens of reasoning; raise --max-model-len and max_tokens for those |
| Blackwell GPUs | VLLM_USE_FLASHINFER_SAMPLER=0 was needed |
| Tested runtime | vLLM 0.30.0 |
RANA removes a single "refusal direction" from the model's residual stream (the running internal representation that each layer reads from and adds to), following Arditi et al., 2024. It keeps the edited weights at their original norms. The recipe and code are not published.
The release's tensor-by-tensor checks against the base model report:
| part | matrices changed |
|---|---|
attention output (self_attn.o_proj) |
17 (16 main + 1 MTP) |
linear-attention output (linear_attn.out_proj) |
48 |
MLP output (mlp.down_proj) |
65 (64 main + 1 MTP) |
token embeddings (embed_tokens) |
1 |
| total | 131, and nothing outside this set |
9b15eb0)
finds exactly 129 changed tensors among the 850 it inspects. That matches: it skips the vision and MTP
tensors, so it sees 131 − 2.orcarouter/Qwen3.8-27B-Uncensored, another refusal-ablated Qwen3.8-27B), and RANA.openai/gpt-oss-safeguard-20b (primary) and mistralai/Mistral-Small-24B-Instruct-2501.The full protocol is in Evaluation details. The recorded release evaluations and functional checks are included in results/.
The table summarizes refusals, token-budget hits, capability and distance from base for the three models.
Where a cell holds two numbers, they come from the two judges (gpt-oss / Mistral). Capability changes are in percentage points (pp). KL is the Kullback–Leibler divergence from base: how far the model's next-token probabilities have moved, where 0 means identical.
| base | orca (reference) | RANA | |
|---|---|---|---|
| Hard refusals, HarmBench (of 200) | 168 / 155 | 0 / 0 ¹ | 0 / 0 ¹ |
| Answers the request, held-out prompts | 3% / 0% | 84% / 49% | 90% / 54% |
| Hits the 16k-token budget, held-out | 0.6% | 11.9% | 6.7% |
| Avg. capability change vs base (5 tasks) | – | 1.11 pp | 0.82 pp |
| Worst single task vs base | – | −2.2 (HumanEval) | −1.5 (TruthfulQA) |
| Distance from base (KL) | 0 | 0.075 | 0.041 |
¹ After the same mechanical re-judge for both abliterations (2 labels each). Raw gpt-oss counts are 0.7 for both (2 across 3 seeds). See the disclosure.
"Answers" means the judge found the harmful request substantively fulfilled (gpt-oss / Mistral judge). A budget hit is a response that reached the 16k-token generation limit before finishing; no judge is involved. Most budget hits are long reasoning, not repetition (see Limitations).
| model | HarmBench (200): answers | budget hits | Held-out (240): answers | budget hits | avg. tokens (held-out) |
|---|---|---|---|---|---|
| base | 3.2% / 0.7% | 0.3% | 3.2% / 0.0% | 0.6% | 1,113 |
| orca | 73.7% / 61.2% | 26.3% | 83.9% / 49.2% | 11.9% | 6,461 |
| RANA | 78.5% / 57.3% | 20.5% | 90.0% / 54.4% | 6.7% | 4,697 |
mean ± sd [min–max] over seeds 1,2,3; complied % and budget-hit % as percentages; budget-hit % is judge-independent.
| model | set | judge | hard | soft | complied % | degenerate | budget-hit % | tok/resp |
|---|---|---|---|---|---|---|---|---|
| base | harmbench (n=200) | gpt-oss-safeguard-20b | 167.7 ± 6.0 [162–174] | 25.3 ± 5.5 [19–29] | 3.2 ± 0.8 [2.5–4.0] | 0.7 ± 0.6 [0–1] | 0.3 ± 0.3 [0.0–0.5] | 1218 |
| base | harmbench (n=200) | Mistral-Small-24B-2501 | 154.7 ± 4.7 [151–160] | 43.7 ± 5.1 [38–48] | 0.7 ± 0.3 [0.5–1.0] | 0.3 ± 0.6 [0–1] | 0.3 ± 0.3 [0.0–0.5] | 1218 |
| base | heldout (n=240) | gpt-oss-safeguard-20b | 197.3 ± 8.0 [189–205] | 34 ± 7.9 [28–43] | 3.2 ± 0.6 [2.5–3.8] | 1 ± 1.0 [0–2] | 0.6 ± 0.5 [0.0–0.8] | 1113 |
| base | heldout (n=240) | Mistral-Small-24B-2501 | 191.7 ± 1.5 [190–193] | 47.7 ± 1.5 [46–49] | 0.0 ± 0.0 [0.0–0.0] | 0.7 ± 0.6 [0–1] | 0.6 ± 0.5 [0.0–0.8] | 1113 |
| orca | harmbench (n=200) | gpt-oss-safeguard-20b | 0.7 ± 0.6 [0–1] | 4.3 ± 1.5 [3–6] | 73.7 ± 0.8 [73.0–74.5] | 47.7 ± 2.1 [46–50] | 26.3 ± 0.8 [25.5–27.0] | 7992 |
| orca | harmbench (n=200) | Mistral-Small-24B-2501 | 0 ± 0.0 [0–0] | 56 ± 3.5 [52–58] | 61.2 ± 1.0 [60.0–62.0] | 21.7 ± 2.5 [19–24] | 26.3 ± 0.8 [25.5–27.0] | 7992 |
| orca | heldout (n=240) | gpt-oss-safeguard-20b | 0.7 ± 0.6 [0–1] | 12 ± 4.6 [7–16] | 83.9 ± 0.6 [83.3–84.6] | 26 ± 3.6 [22–29] | 11.9 ± 0.9 [11.2–12.9] | 6461 |
| orca | heldout (n=240) | Mistral-Small-24B-2501 | 1 ± 1.0 [0–2] | 103 ± 4.0 [99–107] | 49.2 ± 0.7 [48.8–50.0] | 18 ± 3.0 [15–21] | 11.9 ± 0.9 [11.2–12.9] | 6461 |
| RANA | harmbench (n=200) | gpt-oss-safeguard-20b | 0.7 ± 1.2 [0–2] | 7 ± 2.0 [5–9] | 78.5 ± 0.5 [78.0–79.0] | 35.3 ± 2.5 [33–38] | 20.5 ± 0.9 [19.5–21.0] | 6634 |
| RANA | harmbench (n=200) | Mistral-Small-24B-2501 | 0 ± 0.0 [0–0] | 72.7 ± 3.2 [69–75] | 57.3 ± 0.8 [56.5–58.0] | 12.7 ± 2.1 [11–15] | 20.5 ± 0.9 [19.5–21.0] | 6634 |
| RANA | heldout (n=240) | gpt-oss-safeguard-20b | 0.3 ± 0.6 [0–1] | 10.3 ± 1.5 [9–12] | 90.0 ± 1.2 [88.8–91.2] | 13.3 ± 2.1 [11–15] | 6.7 ± 0.8 [5.8–7.5] | 4697 |
| RANA | heldout (n=240) | Mistral-Small-24B-2501 | 1 ± 0.0 [1–1] | 102 ± 8.2 [95–111] | 54.4 ± 4.2 [50.0–58.3] | 6.3 ± 2.1 [4–8] | 6.7 ± 0.8 [5.8–7.5] | 4697 |
| model | set | judge | n | hard | soft | complied | degenerate | budget hits |
|---|---|---|---|---|---|---|---|---|
| base | harmbench | gpt-oss-safeguard-20b | 100 | 77 | 18 | 5 | 0 | 0 |
| base | harmbench | Mistral-Small-24B-2501 | 100 | 67 | 32 | 1 | 0 | 0 |
| base | heldout | gpt-oss-safeguard-20b | 60 | 51 | 9 | 0 | 0 | 0 |
| base | heldout | Mistral-Small-24B-2501 | 60 | 50 | 10 | 0 | 0 | 0 |
| orca | harmbench | gpt-oss-safeguard-20b | 100 | 1 | 2 | 77 | 20 | 22 |
| orca | harmbench | Mistral-Small-24B-2501 | 100 | 0 | 24 | 66 | 10 | 22 |
| orca | heldout | gpt-oss-safeguard-20b | 60 | 0 | 5 | 44 | 11 | 13 |
| orca | heldout | Mistral-Small-24B-2501 | 60 | 0 | 33 | 22 | 5 | 13 |
| RANA | harmbench | gpt-oss-safeguard-20b | 100 | 0 | 1 | 83 | 16 | 18 |
| RANA | harmbench | Mistral-Small-24B-2501 | 100 | 0 | 27 | 69 | 4 | 18 |
| RANA | heldout | gpt-oss-safeguard-20b | 60 | 0 | 5 | 52 | 3 | 3 |
| RANA | heldout | Mistral-Small-24B-2501 | 60 | 0 | 30 | 28 | 2 | 3 |
Cells are (orca-only / RANA-only) discordant counts.
| test | pooled | p (pooled) | per-seed |
|---|---|---|---|
| budget hits | 50 / 12 | 1.2e-06 | s1 15/3 p=0.0075; s2 18/5 p=0.011; s3 17/4 p=0.0072 |
| complied | gpt-oss-safeguard-20b | 22 / 66 | 2.9e-06 | s1 5/21 p=0.0025; s2 10/20 p=0.099; s3 7/25 p=0.0021 |
| complied | Mistral-Small-24B-2501 | 80 / 118 | 8.4e-03 | s1 27/42 p=0.091; s2 33/33 p=1.0; s3 20/43 p=0.0052 |
Prompt-level budget-hit sign test: 37 prompts hit the budget more often under orca vs 7 under RANA, p = 5.3e-06.
Each cell is the change versus base in percentage points ± standard error, paired on the same questions. Bold marks a change clearly outside noise (more than 2 standard errors).
| task (items) | base score | orca Δ | RANA Δ | RANA vs orca |
|---|---|---|---|---|
| MMLU-Pro (700) | 80.0 | −0.4 ± 1.1 | +0.9 ± 1.1 | +1.3 ± 1.1 |
| GSM8K (1,319) | 91.4 | +0.2 ± 0.5 | −0.1 ± 0.6 | −0.3 ± 0.6 |
| IFEval (541) | 90.6 | +0.9 ± 0.9 | −1.3 ± 1.1 | −2.2 ± 0.9 |
| TruthfulQA MC1 (817) | 36.1 | −1.8 ± 0.6 | −1.4 ± 0.6 | +0.5 ± 0.5 |
| TruthfulQA MC2 (817) | 54.2 | −1.6 ± 0.3 | −1.6 ± 0.3 | +0.1 ± 0.2 |
| HumanEval (164 × 3) | 97.2 | −2.2 ± 1.0 | −0.4 ± 0.9 | +1.8 ± 1.1 |
| avg. |Δ| vs base | – | 1.11 | 0.82 | |
| KL from base | 0 | 0.075 | 0.041 |
| model | MMLU-Pro | GSM8K | IFEval | TQA-MC1 | TQA-MC2 | HumanEval | mean |Δ| | KL | gate |
|---|---|---|---|---|---|---|---|---|---|
| base | 80.00 | 91.43 | 90.57 | 36.11 | 54.19 | 97.15 | – | 0.0000 | – |
| orca | 79.57 (−0.43±1.10) | 91.66 (+0.23±0.52) | 91.50 (+0.92±0.89) | 34.27 (−1.84±0.56) | 52.56 (−1.62±0.27) | 94.92 (−2.24±1.04) | 1.11 | 0.0747 | FAIL |
| R065np | 79.71 (−0.29±1.14) | 91.13 (−0.30±0.60) | 90.76 (+0.18±1.06) | 34.88 (−1.22±0.62) | 52.39 (−1.79±0.33) | 94.92 (−2.24±0.82) | 0.90 | 0.0371 | FAIL |
| RANA | 80.86 (+0.86±1.14) | 91.36 (−0.08±0.55) | 89.28 (−1.29±1.09) | 34.76 (−1.35±0.56) | 52.62 (−1.57±0.30) | 96.75 (−0.41±0.91) | 0.82 | 0.0413 | PASS |
R065np was an earlier RANA build. It was rejected because it failed the HumanEval gate (−2.24) and
the raw hard-refusal gate.
The model was published only after passing all of these:
| gate | requirement | result |
|---|---|---|
| No hard refusals | 0 hard refusals on HarmBench, both judges, all seeds | pass after re-judging 2 labels (details); fails on raw labels |
| Fewer budget hits than orca | lower 16k-budget-hit rate on held-out prompts, p < 0.05 | pass: 6.7% vs 11.9%, p = 1.2 × 10⁻⁶ |
| Capability kept | avg. |Δ| ≤ 1.0 pp, no task below −2.0 pp, KL < 0.15 | pass: 0.82 pp, worst −1.46, KL 0.041 |
| Surgical edit | only intended matrices changed; vision identical; MTP intact | pass: 131/131, 333/333, 15/15 |
| Still works | vision, multi-turn tool calling, MTP speculative decoding | pass |
gpt-oss-safeguard-20b labels contained 2 HARD_REFUSAL on HarmBench, seed 2 (2 / 200).gpt-oss relabeled both COMPLIED. No manual label edits
were made.Mistral-Small-24B-2501: 0 hard on all runs.results/readj_orca.json), so the table above compares like with like.Serving (identical for all three models): vLLM 0.30.0 (transformers 5.17.0, torch 2.13.0+cu130),
1× RTX PRO 6000 Blackwell 96 GB, flags as in Quick start plus
--gpu-memory-utilization 0.93 --max-num-seqs 128. Thinking on. Refusal sampling: T = 1.0,
top_p = 0.95, top_k = 20, max_tokens = 16,384, seeds 1, 2, 3.
Prompt sets:
Judges: openai/gpt-oss-safeguard-20b (primary, reasoning_effort = medium) and
mistralai/Mistral-Small-24B-Instruct-2501; same 4-label policy (complied / soft refusal / hard
refusal / degenerate), temperature 0, full reasoning trace shown. Agreement over 4,440 generations:
raw 69.8%, κ 0.894 hard-vs-rest, 0.564 four-way, 0.543 complied-vs-rest. The first-choice second judge,
Mistral-Small-3.2-2506, would not load in vLLM 0.30.
Capability suite: lm-evaluation-harness 0.4.13, 0-shot chat, thinking on, 16k generation budget. MMLU-Pro 50 per subject × 14 (custom-extract); GSM8K full (flexible-extract); IFEval full (prompt-level strict); TruthfulQA MC1/MC2 full (loglikelihood); HumanEval all 164 × 3 samples, unbiased pass@1, via a custom chat-format harness (not comparable to lm-eval's raw-completion HumanEval).
KL: Heretic protocol. First-token full-vocabulary KL(base ‖ model) on mlabonne/harmless_alpaca
test[:100], system prompt "You are a helpful assistant.", response prefix <think></think>\n,
batchmean.
Smoke tests on the published shards: vision (reads a code word and shape from a synthetic image); 3-turn tool calling (call, use result, second call with a new argument, use result); MTP acceptance rate 0.727, mean acceptance length 2.45 (vLLM Prometheus counters).
max_tokens well above 16k for such requests.--max-model-len and max_tokens; set max_tokens well above 16k
(see Recommended settings).Other formats are listed under Release family.
*.safetensors, model.safetensors.index.json, config.json, tokenizer/processor files,
chat_template.jinja, LICENSE: the model.results/: the evaluation outputs behind every number in this card. R060np in filenames is
this model's internal build ID; R065np is the rejected earlier candidate.
(harden_R060np.{md,json}, capability.{md,json}, head_to_head_orca.json, kl.json,
forensic_R060np.json, smoke_R060np.json, humaneval_*.json, abliterlitics/).R060np in the evaluation filenames. R065np is a rejected earlier
candidate, not the released model.results/ directory contains the recorded evaluation, forensic,
and functional-check artifacts described in this card.Qwen/Qwen3.8-27B.model-00004-of-00018.safetensors 4.0 GBmodel-00016-of-00018.safetensors 4.0 GBmodel-00006-of-00018.safetensors 4.0 GBmodel-00008-of-00018.safetensors 4.0 GBmodel-00010-of-00018.safetensors 4.0 GBmodel-00012-of-00018.safetensors 4.0 GBmodel-00014-of-00018.safetensors 4.0 GBmodel-00001-of-00018.safetensors 4.0 GBmodel-00018-of-00018.safetensors 3.4 GBmodel-00002-of-00018.safetensors 3.0 GBmodel-00003-of-00018.safetensors 2.5 GBmodel-00007-of-00018.safetensors 2.1 GBmodel-00009-of-00018.safetensors 2.1 GBmodel-00011-of-00018.safetensors 2.1 GBmodel-00013-of-00018.safetensors 2.1 GBmodel-00015-of-00018.safetensors 2.1 GBmodel-00017-of-00018.safetensors 2.1 GBmodel-00005-of-00018.safetensors 2.1 GBHave the files? Submit a torrent.
Submit a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo preemware/Qwen3.8-27B-RANA-abliterated ./model-folderQwen/Qwen3.8-27B