The guides cover customization for proprietary datasets, audio transcription, receipt recognition, and mathematical reasoning.
Gemma 4 Technical Specifications
| Model | Parameters | Context | QLoRA VRAM |
| E2B | 2.3B effective | 128K | 7 GB |
| E4B | 4.5B effective | 128K | 9 GB |
| 12B | 11.95B | 256K | 11 GB |
| 26B A4B (MoE) | 25.2B total / 3.8B active | 256K | 21 GB |
| 31B | 30.7B | 256K | 22 GB |
VRAM figures are approximate estimates for 2,048-token training sequences.
Supported workflows include:
- QLoRA: 4-bit quantization with trainable low-rank adapters.
- SFT: Custom chat templates, structured outputs, and domain-specific training.
- GRPO: Reinforcement learning using verifiable rewards.
- Multimodal fine-tuning: Audio, OCR, receipts, and visual question answering.
- Frameworks: Hugging Face TRL, PEFT, Unsloth, and Axolotl.
Gemma 4 vs. Gemma 3
| Benchmark | Gemma 3 27B | Gemma 4 31B |
| MMLU Pro | 67.6% | 85.2% |
| AIME 2026 | 20.8% | 89.2% |
| LiveCodeBench v6 | 29.1% | 80.0% |
| GPQA Diamond | 42.4% | 84.3% |
| Context window | 128K | 256K |
Gemma 4 adds expanded reasoning capabilities, native system-prompt support, and a 26B Mixture-of-Experts variant.
GRPO Fine-Tuning Results
Google's tutorial reports the following results on GSM8K after 30 training steps:
- Accuracy: 28% → 83% at a 512-token generation limit.
- Peak GPU memory: 11.29 GB.
- Training configuration: 4-bit QLoRA, rank-16 adapters.
- Average completion length: 480 → 283.5 tokens.
The results are specific to the tutorial configuration.