Downloads · 30 days
44
7% of all-time downloads
douyamv/Qwen3.8-27B-abliterated
Qwen3.8-27B-abliterated is a text generation model from douyamv. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
<p <a href="https://huggingface.co/Qwen/Qwen3.8-27B"<img src="https://img.shields.io/badge/BaseModel-Qwen3.8--27B-blue" alt="Base Model"</a <a href="https://huggingface.co/Qwen/Qwen3.8-27B/blob/main/LICENSE"<img src="…
Downloads · 30 days
44
7% of all-time downloads
All-time downloads
672
Public
Repo size
12.8 MB
Likes
6
Public
Click a slice to open those files.
.json6.7 MB · 67%
From the Hugging Face model README
Abliterated (uncensored) version of Qwen/Qwen3.8-27B with the refusal direction removed from the model weights, allowing unrestricted conversations.
Abliteration is a technique that identifies and removes the "refusal direction" in a model's weight space. By projecting out this direction from the output projection (o_proj) and down projection (down_proj) weights across all layers, the model loses its tendency to refuse certain queries while retaining its general capabilities.
This technique is based on the research described in:
| Property | Value |
|---|---|
| Base Model | Qwen/Qwen3.8-27B |
| Format | Safetensors (BF16) |
| Modification | Refusal direction removed |
| Layers Modified | All layers (self_attn.o_proj, mlp.down_proj) |
| Parameters | 27.78B |
self_attn.o_proj and mlp.down_proj weights in all layersfrom transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model = AutoModelForCausalLM.from_pretrained(
"douyamv/Qwen3.8-27B-abliterated",
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True,
)
tokenizer = AutoTokenizer.from_pretrained("douyamv/Qwen3.8-27B-abliterated")
messages = [{"role": "user", "content": "Hello, tell me about yourself"}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer([text], return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
vllm serve douyamv/Qwen3.8-27B-abliterated \
--tensor-parallel-size 2 \
--max-model-len 32768 \
--trust-remote-code
This model is provided for research and educational purposes. The removal of safety guardrails means the model may generate content that the original model would refuse. Users are responsible for ensuring appropriate and ethical use.