Gemma's Unrivaled Quantization Resilience

Gemma models demonstrate superior tolerance to quantization; for instance, Gemma 3 at Q4 quantization shows a 0.7% perplexity improvement, while Llama 3.1 experiences a 2.8% degradation.

The top 3

  1. Gemma's QAT Edge: Training for Quantization Resilience: Gemma models, including Gemma 3 and 4, leverage Quantization-Aware Training (QAT) by simulating low-precision operations during the training phase, significantly reducing performance degradation upon quantization compared to traditional post-training methods.
  2. 4-bit Gemma: Near FP16 Quality, Under 1GB Footprint: Gemma models maintain near-FP16 accuracy with 8-bit quantization and experience only minor degradation at 4-bit, enabling Gemma-3-1B to be under 1GB and Gemma 4 E2B to be reduced to 1GB using a mobile-optimized format, making them highly efficient for memory-constrained devices.
  3. Gemma's KV-Cache Efficiency: 3.1x Better than Llama 3.1: Gemma 3's hybrid sliding-window architecture achieves a KV-cache efficiency of 23,273 tokens per GB, making it 3.1 times more memory-efficient than Llama 3.1. Additionally, Gemma 3 shows a unique 0.7% perplexity improvement with Q4 cache quantization, whereas Llama 3.1 degrades by 2.8%.

Sources

Open the full topic