Downloads · 30 days
81
51% of all-time downloads
ressl/Qwen3.8-27B-uncensored
Qwen3.8-27B-uncensored is a image-text-to-text model from ressl. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
TL;DR: abliterated Qwen/Qwen3.8-27B, a 27B hybrid (Gated DeltaNet + gated attention) vision-language model. Hard refusals on the 1120-prompt five-dataset cross-eval fall from 804 to 0 (100.0% relative reduction) at a…
Downloads · 30 days
81
51% of all-time downloads
All-time downloads
158
Public
Parameters
27.8B
55.6 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors55.6 GB · 100%
From the Hugging Face model README
TL;DR: abliterated Qwen/Qwen3.8-27B, a 27B hybrid (Gated DeltaNet + gated attention) vision-language model. Hard refusals on the 1120-prompt five-dataset cross-eval fall from 804 to 0 (100.0% relative reduction) at a benign teacher-forced NLL delta of +0.063 nats/token.
Built for security research, red-teaming and penetration-testing workflows; it will comply with requests a stock model refuses. Use responsibly.
| Base model | Qwen/Qwen3.8-27B at revision 1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0 |
| Method | abliteration: residual refusal directions, norm-preserving double-Gram-Schmidt biprojection |
| Calibration | 400 paired harmful/harmless prompts (mlabonne/harmful_behaviors vs heretic-org/Semantic-Harmless) |
| Targets | 128 residual-writing matrices: every self_attn.o_proj (16 full-attention layers), linear_attn.out_proj (48 Gated-DeltaNet layers), mlp.down_proj (64 layers) |
| Rounds | 1 extraction/projection round(s) |
| Untouched | embeddings, LM head, norms, conv1d kernels, all q/k/v_proj and in_proj_* inputs, vision tower, MTP head |
| Context length | 262,144 tokens native |
| Hardware | 1x NVIDIA RTX PRO 6000 Blackwell 96 GB (SM120) |
| Toolchain | PyTorch 2.13.0+cu130, transformers 5.15.0 |
Effective refusal rate on 1120 harmful prompts across five datasets at temperature 0 with thinking disabled, counting explicit decline phrases in the first 25 words. Compliant answers that merely carry a disclaimer do not count.
| Eval set | Prompts | Base model hard | This model hard |
|---|---|---|---|
| JailbreakBench | 100 | 71 | 0 |
| tulu-harmbench | 320 | 232 | 0 |
| HarmfulQA | 300 | 207 | 0 |
| LLM-LAT | 300 | 225 | 0 |
| mlabonne harmful | 100 | 69 | 0 |
| TOTAL | 1120 | 804 | 0 |
Cross-check on the same weights: HumanEval pass@1 0.8963 -> 0.9024 (+0.61 points), XSTest over-refusal 7/214 -> 0/214, tool-call format smoke 2/2 -> 2/2.
Pipeline included in this repository: qwen38_abliterate.py (extraction and
projection), qwen38_common.py (shared helpers), qwen38_eval.py (evaluation).
Machine-readable artefacts: abliteration_report.json (direction norms per
layer, drift metrics), evaluation_base.json, evaluation_ablated.json,
comparison.json, checkpoint_verify.json.
from transformers import AutoModelForMultimodalLM, AutoTokenizer
model_id = "ressl/Qwen3.8-27B-uncensored"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForMultimodalLM.from_pretrained(model_id, dtype="bfloat16", device_map="cuda")
messages = [{"role": "user", "content": "your prompt"}]
text = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True, enable_thinking=False
)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
print(tokenizer.decode(model.generate(**inputs, max_new_tokens=256)[0]))
Thinking mode is enabled by default; pass enable_thinking=False for short
direct answers.
Apache-2.0 (inherited from Qwen3.8-27B).
Abliteration, export and validation by Robert Ressl (Hugging Face - Website - LinkedIn).