Downloads · 30 days
41
22% of all-time downloads
prithivMLmods/gemma-4-E4B-it-qat-heretic_decensored
gemma-4-E4B-it-qat-heretic_decensored is a any-to-any model from prithivMLmods. Use it for the any-to-any 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.
Downloads · 30 days
41
22% of all-time downloads
All-time downloads
185
Public
Parameters
7.9B
15.9 GB on disk
Likes
6
Public
Click a slice to open those files.
.safetensors15.9 GB · 100%
From the Hugging Face model README

gemma-4-E4B-it-qat-heretic_decensored is a reasoning-capable language model built on top of google/gemma-4-E4B-it-qat-q4_0-unquantized and modified using the Heretic abliteration toolkit. The model applies refusal-direction analysis and targeted weight-space interventions to reduce internal refusal behaviors while preserving instruction-following, reasoning capabilities, and general conversational performance.
[!IMPORTANT] This model is intended strictly for research and learning purposes. Due to reduced internal refusal mechanisms, it may generate sensitive or unrestricted content. Users assume full responsibility for how the model is used. The authors and hosting platform disclaim any liability for generated outputs.
[!NOTE] This model is experimental and may generate unexpected behaviors or artifacts in certain scenarios.
| Parameter | Value |
|---|---|
| direction_index | 33.23 |
| attn.o_proj.max_weight | 1.37 |
| attn.o_proj.max_weight_position | 32.40 |
| attn.o_proj.min_weight | 1.16 |
| attn.o_proj.min_weight_distance | 15.15 |
| mlp.down_proj.max_weight | 1.23 |
| mlp.down_proj.max_weight_position | 35.47 |
| mlp.down_proj.min_weight | 0.89 |
| mlp.down_proj.min_weight_distance | 24.37 |
| Metric | This model | Original model (google/gemma-4-E4B-it-qat-q4_0-unquantized) |
|---|---|---|
| KL divergence | 0.0140 | 0 (by definition) |
| Refusals | 40/100 | 99/100 |
pip install transformers
pip install accelerate
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model = AutoModelForCausalLM.from_pretrained(
"prithivMLmods/gemma-4-E4B-it-qat-heretic_decensored",
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(
"prithivMLmods/gemma-4-E4B-it-qat-heretic_decensored"
)
messages = [
{
"role": "user",
"content": "Explain how a transformer model processes text."
}
]
inputs = tokenizer.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_tensors="pt"
).to(model.device)
outputs = model.generate(
inputs,
max_new_tokens=512
)
print(
tokenizer.decode(
outputs[0][inputs.shape[-1]:],
skip_special_tokens=True
)
)
| Resource | Link |
|---|---|
prithivMLmods/gemma-4-E4B-it-qat-heretic_decensored-GGUF | https://huggingface.co/prithivMLmods/gemma-4-E4B-it-qat-heretic_decensored-GGUF |
Important Note: This model intentionally reduces built-in refusal mechanisms.