This is a decensored (abliterated) variant of google/gemma-4-E2B-it, processed with Heretic v1.2.0 using the Arbitrary-Rank Ablation (ARA) method with row-norm preservation — then quantized to 4-bit MLX for fast, private, on-device inference on M-series Macs.
⚡ 3.34 GB — fits in the Neural Engine cache of any M-series Mac.
🖤 Runs fully offline. No API calls. No filters.
Model Details
Property
Value
Base model
google/gemma-4-E2B-it
Abliteration
Heretic v1.2.0 via ARA (p-e-w/gemma-4-E2B-it-heretic-ara)
Architecture
Gemma4ForConditionalGeneration
Parameters
~2B active
Modalities
Text · Vision
Quantization
4-bit affine, group_size=64
File size
3.34 GB (down from ~9 GB bf16)
Context window
131,072 tokens
Vocab size
262,144
Hidden size
1,536
Layers
35 (28× sliding attention + 7× full attention)
Attention heads
8 (KV heads: 1)
Sliding window
512
Vision encoder
768 hidden · 16 layers · patch 16px
Abliteration Performance (from base model)
Metric
This model
Original gemma-4-E2B-it
KL divergence
0.1522
0 (by definition)
Refusals
5 / 100
98 / 100
Abliteration parameters used:
Parameter
Value
start_layer_index
16
end_layer_index
32
preserve_good_behavior_weight
0.1887
steer_bad_behavior_weight
0.0001
overcorrect_relative_weight
0.6737
neighbor_count
4
Performance (Apple Silicon)
At 3.34 GB this is the fastest model in the RavenX collection — runs on any M-series chip including M1 MacBook Air with RAM to spare.
ollama run hf.co/deadbydawn101/gemma-4-E2B-Heretic-Uncensored-mlx-4bit
Architecture Notes
Gemma 4 E2B uses the same hybrid sliding/full attention design as the larger models:
28× sliding attention layers (window=512) — efficient local context
7× full attention layers — global coherence at regular intervals
The 2B size makes it ideal for: rapid prototyping, creative writing, local agents, edge deployment, and anything that needs fast uncensored responses without cloud latency.
💻 Gemini CLI — Coding Agent + Tool Orchestration
We use RavenX AI's Gemini CLI fork as the coding agent and tool orchestration layer on top of these models. This is what makes the tool-calling capability real in production.
Gemini CLI gives you a full agentic loop in the terminal — Google Search grounding, file read/write, shell execution, web fetching, and MCP server support — all wired to a 1M token context window.
bash
1# Install2npminstall -g @google/gemini-cli
34# Run as a coding agent against this model (via local mlx_lm server)5mlx_lm.server --model deadbydawn101/gemma-4-E2B-Heretic-Uncensored-mlx-4bit --port 8080&6gemini --baseUrl http://localhost:8080
78# Or use directly against Gemini API (free tier: 60 req/min)9gemini
What Gemini CLI + these models unlock together
Capability
How
Code generation
Gemini CLI reads your codebase, model reasons with <think> tags
Pair this model with TurboQuant-MLX — RavenX AI's Apple Silicon KV cache compression. Run 4.6x longer contexts with near-zero accuracy loss by compressing the KV cache using PolarQuant + QJL residuals.
python
1from turboquant_mlx.mlx_kvcache import TurboQuantKVCache
2import mlx_lm.models.cache as cache_module
34# Patch mlx-lm to use TurboQuant compression5cache_module.make_prompt_cache =lambda model,**kw:[6 TurboQuantKVCache()for _ inrange(len(model.layers))7]89# Now load and run as normal — context is compressed automatically10from mlx_vlm import load, generate
11model, processor = load("deadbydawn101/gemma-4-E2B-Heretic-Uncensored-mlx-4bit")
The LoRA was trained on gemma-4-E4B (hidden=2,560, 42 layers). This is gemma-4-E2B (hidden=1,536, 35 layers). Different architectures — loading the adapter here will produce incorrect results.
[2026-04-09] Our MLX port was merged into TriAttention (MIT + NVIDIA) — PR #1 by @DeadByDawn101 (RavenX AI).
Apply 10.7x KV memory reduction and 2.5x throughput on top of this model's built-in 4-bit TurboQuant quantization for ~50x combined compression vs full fp16: