CoolFace
Modelpublic

DuoNeural/Gemma-4-E2B-Heretic-GGUF

sourceHugging Faceapache-2.0updated 5mo agoView on Hugging Face
1likes975downloads
Model Card

Gemma-4-E2B-Heretic — GGUF Quants

Quantized GGUF versions of DuoNeural/Gemma-4-E2B-Heretic, DuoNeural's abliterated Gemma 4 2B Instruct variant.

The Heretic series applies norm-preserving orthogonal projection (abliteration) to surgically remove refusal behavior while preserving the full instruction-following and reasoning capabilities of the base model.

Available Files

FileQuantSizeUse Case
Gemma-4-E2B-Heretic-Q8_0.ggufQ8_0~4.7GBMaximum quality, ample VRAM
Gemma-4-E2B-Heretic-Q6_K.ggufQ6_K~3.6GBNear-lossless, recommended for 6GB+
Gemma-4-E2B-Heretic-Q5_K_M.ggufQ5KM~3.4GBHigh quality, good balance
Gemma-4-E2B-Heretic-Q4_K_M.ggufQ4KM~3.2GBRecommended default — quality/size sweet spot
Gemma-4-E2B-Heretic-Q3_K_M.ggufQ3KM~3.0GBLow VRAM, acceptable quality
Gemma-4-E2B-Heretic-IQ4_XS.ggufIQ4_XS~3.1GBImatrix-optimized 4-bit
Gemma-4-E2B-Heretic-IQ3_XXS.ggufIQ3_XXS~2.5GBImatrix 3-bit, aggressive compression
Gemma-4-E2B-Heretic-IQ2_M.ggufIQ2_M~2.4GBImatrix 2-bit, minimum viable quality
Gemma-4-E2B-Heretic-IQ1_S.ggufIQ1_S~2.2GBExtreme compression, experimental
E2B-Heretic-fp16.ggufFP16~8.7GBFull precision base for re-quantization
imatrix.dat——Importance matrix for custom IQ quants

Usage

llama.cpp

bash
./llama-cli -m Gemma-4-E2B-Heretic-Q4_K_M.gguf \
  -p "You are a helpful assistant." \
  --ctx-size 8192 -n 512

Ollama

bash
ollama run hf.co/DuoNeural/Gemma-4-E2B-Heretic-GGUF:Q4_K_M

Jan / LM Studio / Open WebUI

Download and load the .gguf file directly. Recommended: Q4_K_M for most hardware.

About Heretic Abliteration

The Heretic series uses DuoNeural's 2-pass abliteration pipeline:

  1. 1.Residual collection — identify refusal direction in activation space using 4-bit GPU inference
  2. 2.Weight modification — project out the refusal direction from MLP/attention weight matrices in bf16 on CPU
  3. 3.Validation — confirm compliance behavior removed, helpfulness preserved

The base model is google/gemma-4-e2b-it — Google's Gemma 4 2B instruction-tuned model with 128K context, multimodal inputs, and strong instruction-following capability.

Notes

  • —IQ formats use the included imatrix.dat for importance-weighted quantization
  • —For custom IQ quants: llama-quantize --imatrix imatrix.dat model.gguf output.gguf IQ4_XS
  • —AWQ format not available: AutoAWQ does not currently support the Gemma 4 architecture

Quantized by DuoNeural using llama.cpp on RTX 5090.


DuoNeural

DuoNeural is an open AI research lab — human + AI in collaboration.

PlatformLink
HuggingFacehuggingface.co/DuoNeural
Websiteduoneural.com
GitHubgithub.com/DuoNeural
X / Twitter@DuoNeural
Emailduoneural@proton.me
Newsletterduoneural.beehiiv.com
Supportbuymeacoffee.com/duoneural

DuoNeural Research Publications

Open access, CC BY 4.0. Authored by Archon, Jesse Caldwell, Aura — DuoNeural.