Downloads · 30 days
10
3% of all-time downloads
ikarius/Qwen3-8B-Abliterated-NF4
Qwen3-8B-Abliterated-NF4 is a text generation model from ikarius. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This repository contains a quantized version (NF4, using BitsAndBytes) of the Qwen3-8B-Abliterated-v2 model. The original model is an uncensored variant of Qwen/Qwen3-8B, created using the abliteration technique to re…
Downloads · 30 days
10
3% of all-time downloads
All-time downloads
358
Public
Parameters
8.2B
6.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors6.1 GB · 100%
How the weights are stored.
U87.2B · 85%
From the Hugging Face model README
This repository contains a quantized version (NF4, using BitsAndBytes) of the Qwen3-8B-Abliterated-v2 model.
The original model is an uncensored variant of Qwen/Qwen3-8B, created using the abliteration technique to remove refusal behaviors (see remove-refusals-with-transformers).
This quantization was performed by ikarius to reduce model size and enable efficient inference on consumer hardware, while preserving the uncensored capabilities of the base model.
Key Features:
Warning: This model is uncensored and may generate sensitive or harmful content—use responsibly.
pip install transformers torch bitsandbytes accelerate
Ensure you have a compatible CUDA setup for GPU acceleration.
(Optional) For CPU-only inference:bash
pip install optimum[exporters]
Load and run the model using Hugging Face Transformers.
Python Example
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
# Load tokenizer and model
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
model = AutoModelForCausalLM.from_pretrained(
MODEL_ID,
device_map="auto",
trust_remote_code=True,
)
prompt = "Hello, how are you?"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=128,
temperature=0.7,
do_sample=True,
pad_token_id=tokenizer.eos_token_id,
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
VRAM: ~8 GB required for 8B NF4 on a single GPU. Batch Size: Start with 1. Thinking Mode: v2 supports step-by-step reasoning prompts. Streaming: Use TextStreamer for real-time output.
Method: BitsAndBytes NF4 (normal float 4-bit) Quantizer: ikarius Benefits: ~75% size reduction vs BF16, minimal quality loss Trade-offs: Slight perplexity increase
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
original_model = AutoModelForCausalLM.from_pretrained(
"huihui-ai/Huihui-Qwen3-8B-abliterated-v2",
torch_dtype=torch.bfloat16,
device_map="auto",
)
quant_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.bfloat16,
bnb_4bit_use_double_quant=True,
)
quantized_model = AutoModelForCausalLM.from_pretrained(
"huihui-ai/Huihui-Qwen3-8B-abliterated-v2",
quantization_config=quant_config,
device_map="auto",
)
quantized_model.save_pretrained("Qwen3-8B-Abliterated-v2-nf4")
tokenizer.save_pretrained("Qwen3-8B-Abliterated-v2-nf4")
May amplify training data biases. Not suitable for production without alignment. For commercial use: review original licenses.
Open an issue or reach out to ikarius on Hugging Face.
Last updated: December 18, 2025
Abliteration:huihui-ai
Support the project
Base Model:Qwen/Qwen3-8B