Gemma 4 26B-A4B IT โ€” Abliterated (V6)

This is an abliterated (uncensored) version of google/gemma-4-26B-A4B-it, a 128-expert / 4-active MoE thinking model, created using Abliterix.

Method

Gemma 4's double-norm architecture (4ร— RMSNorm per layer) and Per-Layer Embeddings (PLE) make LoRA and hook-based steering completely ineffective. On top of that, the A4B variant is a Mixture-of-Experts model: refusal signal is distributed across all 128 experts per layer, not concentrated in a handful of safety experts. Targeting only the top-N experts identified by router profiling is insufficient.

This model uses direct weight editing with Expert-Granular Abliteration (EGA) + Projected Abliteration โ€” norm-preserving orthogonal projection applied to every expert slice in every MoE layer, plus the attention output projection, with grimjim's projected refinement to preserve helpfulness-aligned signal.

Key techniques:

  • Projected Abliteration (V6 addition): grimjim's method builds a low-rank basis from the refusal and the helpfulness directions, then projects out only the refusal-orthogonal component. Compared to raw EGA orthogonal projection, this preserves the helpfulness-aligned dimensions of each weight matrix. V5 had this disabled; enabling it dropped refusals from 25/100 to 2/100 at matched KL.
  • Expert-Granular Abliteration (EGA): orthogonal projection applied to all 128 expert mlp.down_proj slices across 30 layers (โ‰ˆ3,840 expert blocks total). Reference result on 26B-A4B: 3/100 refusals with EGA vs 29/100 without, reported by TrevorS.
  • Sharp-peak EGA profile: min_weight_frac_max = 0.10 on mlp.down_proj forces TPE to explore "high peak at one layer, flat decay elsewhere" trials rather than flat-high steering that blows KL without gaining ASR. Mirrors the gpt-oss-20b V6 winner fingerprint.
  • Thinking-model-aware generation: max_gen_tokens = 200 to ensure the judge sees the actual answer after Gemma-4's <|channel|>thought prefix. V5 used 100 tokens, which was sometimes consumed entirely by the thought channel, causing false "refused" classifications.
  • Reduced component set: only mlp.down_proj (through EGA) and attn.o_proj are steered. Q/K/V projections were dropped after V4 showed they contribute effectively zero signal on a 128-expert MoE โ€” the refusal pathway lives in the expert path, not attention.
  • Norm-preserving row magnitude restoration (critical for Gemma 4's double-norm architecture).
  • Linear decay kernel + high min_weight_frac โ€” flat-decay profile concentrates the search on the strong-peak region that TPE reliably converges to.
  • Tighter KL budget: target 0.004, prune threshold 0.02. V5's 0.008 target let the optimizer settle in a safe-but-useless basin; 0.004 forces exploitation past it.

Evaluation

Metric Value
Refusals (private eval dataset, 100 prompts) 2/100
KL divergence from base 0.0005
Baseline refusals (original model) 97/100
Optimization trials completed 80 (25 warmup + 55 TPE)
Best trial #47 (TPE exploit phase)
Hardware 1ร— H100 SXM 80 GB, bf16
Total optimization wall-clock ~11h

A note on honest evaluation

Many abliterated models on HuggingFace claim near-perfect scores ("3/100 refusals", "0.7% refusal rate", etc.). We urge the community to treat these numbers with skepticism unless the evaluation methodology is fully documented.

Through our research, we have identified a systemic problem: most abliteration benchmarks dramatically undercount refusals due to short generation lengths. Gemma 4 models exhibit a distinctive "delayed refusal" pattern โ€” they first produce 50-100 tokens of seemingly helpful context (educational framing, disclaimers, reframing the question), then pivot to an actual refusal. When evaluation only generates 30-50 tokens, the refusal hasn't appeared yet, and both keyword detectors and LLM judges classify the response as compliant.

Our evaluation standards

We believe accurate benchmarking requires:

  • Sufficient generation length (โ‰ฅ100 tokens): short generations systematically miss delayed/soft refusals. Our optimizer-loop evaluation uses 200 tokens (increased from V5's 100) to fully capture Gemma 4's refusal pivot point after the thought channel.
  • Hybrid detection: keyword matching for obvious refusals + LLM judge (Google Gemini 3 Flash) for ambiguous cases. Neither method alone is sufficient.
  • Challenging, diverse prompts: our private evaluation dataset contains 100 prompts spanning English and Chinese, multiple sophistication levels (from direct requests to socially-engineered framings), and diverse harm categories.
  • Reproducible methodology: all parameters (generation length, detection method, dataset characteristics) should be documented on the model card. If they aren't, the numbers are meaningless.

We report 2/100 refusals honestly. This number was obtained with the same evaluation pipeline as V5's 25/100 โ€” a stricter standard than the 3/100 result commonly cited for this model.

Usage

from transformers import AutoModelForImageTextToText, AutoTokenizer
import torch

model = AutoModelForImageTextToText.from_pretrained(
    "wangzhang/gemma-4-26B-A4B-it-abliterix",
    dtype=torch.bfloat16,
    device_map="auto",
)
tokenizer = AutoTokenizer.from_pretrained("wangzhang/gemma-4-26B-A4B-it-abliterix")

messages = [{"role": "user", "content": "Your prompt here"}]
text = tokenizer.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)
inputs = tokenizer(text, return_tensors="pt").to(model.device)

with torch.no_grad():
    output = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(output[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))

Minimum VRAM for bf16 inference: โ‰ˆ 50 GB (one H100 80 GB or one RTX Pro 6000 Blackwell 96 GB).

Disclaimer

This model is released for research purposes only. The abliteration process removes safety guardrails โ€” use responsibly.

Provenance and Modification Notice

  • Immediate source checkpoint: google/gemma-4-26B-A4B-it
  • Exact base revision used: Not recorded in the existing release artifacts; the current upstream HEAD is not substituted.
  • Modification method: Abliterix weight-space / representation intervention intended to reduce refusal behavior.
  • Modified and published by: Wangzhang Wu
  • Repository first published: 2026-04-14 (Hugging Face repository metadata)

The original model weights and/or derived checkpoint were modified. This repository is an independent derivative and is not an official release of the upstream model developer.

License and Attribution

The governing upstream license is Apache License 2.0. A copy is included in LICENSE. License source audited on 2026-08-29: https://ai.google.dev/gemma/apache_2

All applicable upstream copyright, attribution, acceptable-use, and other license terms remain in effect. This repository grants no rights beyond those provided by the upstream license. Downstream users must preserve applicable license and attribution notices.


Disclaimer and Responsible Use / ๅ…่ดฃๅฃฐๆ˜ŽไธŽๅฎ‰ๅ…จไฝฟ็”จๅฃฐๆ˜Ž

English

This is an experimental, modified model provided for research, evaluation, and other lawful purposes. Its safety alignment, refusal behavior, or other safeguards may have been weakened or removed. It may produce inaccurate, biased, offensive, explicit, dangerous, or illegal content. Outputs are not professional advice and must not be relied on for medical, legal, financial, safety-critical, or other high-stakes decisions without qualified human review.

You are solely responsible for how you access, use, deploy, fine-tune, or redistribute this model and its outputs, including compliance with applicable laws, regulations, licenses, third-party rights, platform policies, and the original model's terms. Do not use it to facilitate harm, illegal activity, malware, fraud, privacy violations, targeted harassment, weapons development, or decisions that materially affect a person's rights or access to essential services without appropriate authorization, safeguards, and qualified oversight.

Before deployment, perform a context-specific risk assessment and testing; use human oversight, access controls, content filtering, rate limits, monitoring, logging, and incident-response procedures as appropriate. Preserve this notice in downstream redistributions.

The model is provided "AS IS", without warranties of any kind. To the fullest extent permitted by applicable law, the maintainer disclaims liability for claims, damages, or losses arising from use, misuse, inability to use, or redistribution of the model or its outputs. Nothing in this notice overrides applicable law or the governing license, and this notice is not legal advice.

ไธญๆ–‡

ๆœฌๆจกๅž‹ๅฑžไบŽๅฎž้ชŒๆ€งๆ”น้€ ๆจกๅž‹๏ผŒไป…ไพ›็ ”็ฉถใ€่ฏ„ๆต‹ๅŠๅ…ถไป–ๅˆๆณ•็”จ้€”ใ€‚ๅ…ถๅฎ‰ๅ…จๅฏน้ฝใ€ๆ‹’็ญ”ๆœบๅˆถๆˆ–ๅ…ถไป–้˜ฒๆŠคๅฏ่ƒฝๅทฒ่ขซๅ‰Šๅผฑๆˆ–็งป้™ค๏ผŒๅ› ๆญคๅฏ่ƒฝ็”Ÿๆˆไธๅ‡†็กฎใ€ๅ่งใ€ๅ†’็Šฏใ€้œฒ้ชจใ€ๅฑ้™ฉๆˆ–่ฟๆณ•ๅ†…ๅฎนใ€‚่พ“ๅ‡บไธๆž„ๆˆๅŒป็–—ใ€ๆณ•ๅพ‹ใ€้‡‘่ž็ญ‰ไธ“ไธšๆ„่ง๏ผ›ๆถ‰ๅŠ้ซ˜้ฃŽ้™ฉๆˆ–้‡ๅคงๆƒ็›Š็š„ๅ†ณๅฎš๏ผŒๅฟ…้กป็”ฑๅ…ทๅค‡่ต„่ดจ็š„ไบบๅ‘˜ๅคๆ ธใ€‚

ไฝฟ็”จ่€…้กปๅฏนๆจกๅž‹ๅŠๅ…ถ่พ“ๅ‡บ็š„่ฎฟ้—ฎใ€ไฝฟ็”จใ€้ƒจ็ฝฒใ€ๅพฎ่ฐƒๅ’Œๅ†ๅˆ†ๅ‘ๆ‰ฟๆ‹…ๅ…จ้ƒจ่ดฃไปป๏ผŒๅนถ้ตๅฎˆ้€‚็”จๆณ•ๅพ‹ๆณ•่ง„ใ€่ฎธๅฏ่ฏใ€็ฌฌไธ‰ๆ–นๆƒๅˆฉใ€ๅนณๅฐๆ”ฟ็ญ–ๅŠๅŽŸๆจกๅž‹ๆกๆฌพใ€‚ไธๅพ—ๅฐ†ๆœฌๆจกๅž‹็”จไบŽไฟƒๆˆไผคๅฎณใ€่ฟๆณ•ๆดปๅŠจใ€ๆถๆ„่ฝฏไปถใ€ๆฌบ่ฏˆใ€ไพต็Šฏ้š็งใ€ๅฎšๅ‘้ชšๆ‰ฐใ€ๆญฆๅ™จๅผ€ๅ‘๏ผŒๆˆ–ๅœจ็ผบไน้€‚ๅฝ“ๆŽˆๆƒใ€้˜ฒๆŠคๅ’Œไธ“ไธš็›‘็ฃๆ—ถ๏ผŒ็”จไบŽๅฎž่ดจๅฝฑๅ“ไธชไบบๆƒๅˆฉๆˆ–ๅŸบๆœฌๆœๅŠก่Žทๅ–็š„ๅ†ณ็ญ–ใ€‚

้ƒจ็ฝฒๅ‰ๅบ”่ฟ›่กŒไธŽๅ…ทไฝ“ๅœบๆ™ฏ็›ธๅŒน้…็š„้ฃŽ้™ฉ่ฏ„ไผฐๅ’Œๆต‹่ฏ•๏ผŒๅนถ้…Œๆƒ…้‡‡็”จไบบๅทฅ็›‘็ฃใ€่ฎฟ้—ฎๆŽงๅˆถใ€ๅ†…ๅฎน่ฟ‡ๆปคใ€้™ๆตใ€็›‘ๆŽงใ€ๆ—ฅๅฟ—ๅ’Œไบ‹ไปถๅ“ๅบ”ๆŽชๆ–ฝ๏ผ›ไธ‹ๆธธๅ†ๅˆ†ๅ‘ๆ—ถๅบ”ไฟ็•™ๆœฌๅฃฐๆ˜Žใ€‚

ๆœฌๆจกๅž‹ๆŒ‰โ€œ็Žฐ็Šถโ€ๆไพ›๏ผŒไธ้™„ๅธฆไปปไฝ•ๅฝขๅผ็š„ไฟ่ฏใ€‚ๅœจ้€‚็”จๆณ•ๅพ‹ๅ…่ฎธ็š„ๆœ€ๅคง่Œƒๅ›ดๅ†…๏ผŒ็ปดๆŠค่€…ไธๅฏนๅ› ไฝฟ็”จใ€่ฏฏ็”จใ€ๆ— ๆณ•ไฝฟ็”จๆˆ–ๅ†ๅˆ†ๅ‘ๆœฌๆจกๅž‹ๅŠๅ…ถ่พ“ๅ‡บ่€Œไบง็”Ÿ็š„็ดข่ต”ใ€ๆŸๅฎณๆˆ–ๆŸๅคฑๆ‰ฟๆ‹…่ดฃไปปใ€‚ๆœฌๅฃฐๆ˜Žไธๅ–ไปฃ้€‚็”จๆณ•ๅพ‹ๆˆ–็ฎก่พ–ๆœฌๆจกๅž‹็š„่ฎธๅฏ่ฏ๏ผŒไนŸไธๆž„ๆˆๆณ•ๅพ‹ๆ„่งใ€‚

Downloads last month
1,226
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 wangzhang/gemma-4-26B-A4B-it-abliterix

Quantized
(429)
this model
Quantizations
15 models

Collection including wangzhang/gemma-4-26B-A4B-it-abliterix