gemma-4-E2B-it-AB — Precision-Optimized GGUF Quantization

Engineered exclusively with GGUF Editor D++
Custom RMSE/MAD optimization | Per-tensor quantization mapping | Maximum quality/size ratio

This repository contains a scientifically optimized quantization of Google's Gemma 4 E4B-it. Unlike standard auto-quantizers, every tensor was individually analyzed and mapped to a specific quantization type to preserve critical reasoning pathways while minimizing memory footprint. The entire pipeline runs on GGUF Editor D++ with custom presets pushed to their theoretical limits.


⚙️ Quantization Pipeline & Custom Parameters

The weights were generated through a multi-stage optimization process within GGUF Editor D++:

  • Algorithm Pushed to Limits: Utilized the internal Impl mode with highly customized RMSE search parameters (Rmin, Rdelta, Nstep tuned for dense grid coverage across all sensitivity tiers).
  • Error Smoothing: UseMAD (Mean Absolute Deviation) was enabled to flatten error distribution, preventing outlier-induced degradation in attention heads and MLP gates.
  • Per-Tensor Mapping: Instead of uniform bit-depths, each tensor was assigned the optimal quantization type (Q4_S, Q4_M, Q5_S, Q5_M, etc.) based on its statistical sensitivity and contribution to model coherence.
  • Real-Time Validation: All conversions were verified using the built-in Tensor Visualizer to ensure distribution stability and detect anomalies before export.

📊 Comparative Analysis & Error Metrics

One of the primary goals of this release was to demonstrate the superiority of the GGUF Editor D++ (GED++) quantization engine compared to standard implementations (Google's default and Unsloth).

📉 Quantization Fidelity (RMSE/MAE Analysis)

Our testing shows that the "Impl" mode in GGUF Editor D++ provides a significantly cleaner quantization than the standard llama.cpp approach used by other providers.

Implementation MAE (Mean Absolute Error) RMS (Root Mean Square) Accuracy Note
Google (Standard Q4_0) 0.000774 0.001906 High error/loss
Unsloth (RMSE Optimized) 0.000088 0.000147 Good precision
GGUF Editor D++ (Our Build) 0.000056 0.000108 Superior Fidelity
Google Quant Error Comparison Unsloth vs GED++ Comparison GED++ Quant Error Comparison

Visual comparison of error distribution and weight stability.


📈 Quality vs. Size Hierarchy

Internal benchmarking confirms a clear quality gradient across quantization tiers. The hierarchy follows the established rule: Q6 > Q5 > Q4 in terms of perplexity stability, logical coherence, and instruction-following accuracy.

Variant Quantization Quality Retention File Size Best Use Case
gemma-4-E2B-it-AB-Q6_K_M Q6_K_M ⭐⭐⭐⭐⭐ (95-100%) ~4.13 GB Research, maximum reasoning fidelity
gemma-4-E2B-it-AB-Q6_K_S Q6_K_S ⭐⭐⭐⭐⭐ (94-99%) ~3.58 GB Research, maximum reasoning fidelity
gemma-4-E2B-it-AB-Q5_K_M Q5_K_M ⭐⭐⭐⭐ (92-95%) ~3.22 GB High-end local inference, sweet spot
gemma-4-E2B-it-AB-Q5_K_S Q5_K_S ⭐⭐⭐⭐ (90-93%) ~3.04 GB High-end local inference, sweet spot
gemma-4-E2B-it-AB-Q4_K_M Q4_K_M ⭐⭐⭐ (88-92%) ~2.91 GB Balanced deployment, speed-focused
gemma-4-E2B-it-AB-Q4_K_S Q4_K_S ⭐⭐⭐ (87-90%) ~2.79 GB Ultra-constrained environments

🛠️ Reproducing This Quantization

Exact reproduction is guaranteed using the provided configuration:

  1. Download GGUF Editor D++ v1.0.2.1 - (GGUF.Editor.D++.v1.0.2.1-WinX64.zip)
  2. Load the base gemma-4-E2B-it model
  3. Apply the custom preset: QuantPresets.ini
  4. Run quantization in Impl mode with optimized parameters
  5. Save as GGUF

The QuantPresets.ini file contains all tuned parameters (Rmin, Rdelta, Nstep, UseMAD, per-quant targets) required to replicate this exact weight distribution.


📦 Available Variants

  • gemma-4-E2B-it-AB-Q6_K_M
  • gemma-4-E2B-it-AB-Q6_K_S
  • gemma-4-E2B-it-AB-Q5_K_M
  • gemma-4-E2B-it-AB-Q5_K_S
  • gemma-4-E2B-it-AB-Q4_K_M
  • gemma-4-E2B-it-AB-Q4_K_S

💻 Inference Usage

Compatible with llama.cpp, llama-cpp-python, Ollama, and any GGUF-compatible runtime.


📜 License & Credits

  • Base Model: Google Gemma 4 E2B-it (License)
  • Quantization Tool: GGUF Editor D++ by ABBN
  • Methodology: Custom RMSE/MAD optimization pipeline, per-tensor mapping, v1.0.2 presets

Precision engineering for every bit. Quantized by ABBN.

Downloads last month
-
GGUF
Model size
5B params
Architecture
gemma4
Hardware compatibility
Log In to add your hardware

4-bit

5-bit

6-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for ABBNDZ/gemma-4-E2B-it-AB-GGUF-Editor

Quantized
(314)
this model