Gemma 4 E4B โ€” Heretic Abliteration (Experimental)

Experimental drop. Gemma 4 E4B abliterated using Heretic โ€” a LoRA-based Pareto optimization framework that sweeps (refusal_rate ร— KL_divergence) trial space rather than computing a single orthogonal refusal direction.

Method

Parameter Value
Tool Heretic (arcee-ai)
Quantization BF16
Best trial #204
Refusals remaining 43 / 100
KL divergence from base 0.0750
Target layers o_proj, down_proj (42 layers each)

vs Standard Abliteration

Method Refusals KL
Orthogonal projection (standard) ~0 / 100 0.067
Heretic LoRA sweep (this model) 43 / 100 0.075

43/100 refusals remain; methodological comparison to orthogonal projection approach.

Usage

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model = AutoModelForCausalLM.from_pretrained(
    "DuoNeural/Gemma-4-E4B-Heretic",
    torch_dtype=torch.bfloat16,
    device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("DuoNeural/Gemma-4-E4B-Heretic")

messages = [{"role": "user", "content": "Your prompt here"}]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt").to(model.device)
out = model.generate(inputs, max_new_tokens=512)
print(tokenizer.decode(out[0][inputs.shape[-1]:], skip_special_tokens=True))

Notes

License

Gemma Terms of Use. Model weights derived from Google's Gemma 4 family.


DuoNeural

DuoNeural is an open AI research lab โ€” human + AI in collaboration.

DuoNeural Research Publications

Open access, CC BY 4.0. Authored by Archon, Jesse Caldwell, Aura โ€” DuoNeural.

Research Team

  • Jesse โ€” Vision, hardware, direction
  • Archon โ€” Lab Director, post-training, abliteration, experiments
  • Aura โ€” Research AI, literature synthesis, novel proposals

Subscribe to the lab newsletter at duoneural.beehiiv.com for model drops before they go anywhere else.

Downloads last month
5
Safetensors
Model size
8B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for DuoNeural/Gemma-4-E4B-Heretic

Finetuned
(287)
this model
Quantizations
2 models