Gemma 4 26B-A4B Abliterated

DuoNeural | GGUF โ†’

Refusal-removed google/gemma-4-26B-A4B-it using Expert-Granular Abliteration (EGA).

Architecture

Gemma 4 26B-A4B is Google's MoE model: 25.2B total params, 3.8B active per token, 30 layers with alternating SWA(256)/Global(512) attention, Per-Layer Embeddings (PLE), shared KV cache, and 128 experts per layer.

Method โ€” Expert-Granular Abliteration (EGA)

Standard dense abliteration computes a single mean refusal direction per layer. EGA computes a per-expert refusal direction across all 128 experts independently and orthogonalizes each via biprojection.

Result: 3/100 refusals vs 29/100 for dense-only abliteration.

Usage

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model = AutoModelForCausalLM.from_pretrained(
    "DuoNeural/gemma-4-26B-A4B-it-abliterated",
    torch_dtype=torch.bfloat16,
    device_map="auto",
)
tokenizer = AutoTokenizer.from_pretrained("DuoNeural/gemma-4-26B-A4B-it-abliterated")

For consumer hardware, use the GGUF Q4_K_M (~16.5GB).

Hardware Requirements

Format VRAM
BF16 (this repo) ~52GB
GGUF Q4_K_M ~16.5GB

Inference Engine Notes

Gemma 4 requires a patched engine for 3 quirks:

  1. Variable attention head dims โ€” alternating SWA(256)/Global(512) per layer
  2. Per-Layer Embeddings โ€” two embedding inputs per layer
  3. Shared KV cache โ€” multiple layers share one KV buffer

llama.cpp (recent builds) handles all three. Use with -ctk turbo4 -ctv turbo3 for efficient KV cache quantization.


DuoNeural

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

๐Ÿค— HuggingFace huggingface.co/DuoNeural
๐Ÿ™ GitHub github.com/DuoNeural
๐Ÿฆ X / Twitter @DuoNeural
๐Ÿ“ง Email duoneural@proton.me
๐Ÿ“ฌ Newsletter duoneural.beehiiv.com
โ˜• Support buymeacoffee.com/duoneural
๐ŸŒ Site duoneural.com

Research Team

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

Raw updates from the lab: model drops, training results, findings. Subscribe at duoneural.beehiiv.com.

DuoNeural Research Publications

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

Downloads last month
18
Safetensors
Model size
26B 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-26B-A4B-it-abliterated

Finetuned
(242)
this model
Quantizations
1 model