Views
No views yet
| Component | Original | Pruned |
|---|---|---|
| Vocabulary | 262,144 tokens | 209,836 tokens (Arabic + English + special) |
| Vision encoder | ✅ 16 layers | ✅ KEPT |
| Audio encoder | ✅ 12 layers | ❌ Removed |
| Decoder layers | 35 layers | 35 layers (untouched) |
| PLE tables | 262,144 × 256 × 35 | 209,836 × 256 × 35 |
| Total size (bf16) | 10.2 GB | 8.5 GB |
| Size reduction | — | 17% |
| Model | Params | VRAM | CER ↓ | Exact Match |
|---|---|---|---|---|
| This model (pruned) | 4.25B | 8.5 GB | 0.1168 | 23/100 |
| google/gemma-4-e2b-it (original) | 5.10B | 10.2 GB | 0.1168 | 23/100 |
1from transformers import AutoModelForImageTextToText, AutoProcessor
2
3model = AutoModelForImageTextToText.from_pretrained(
4 "ml-agent-explorers/gemma-4-e2b-arabic-english-vision",
5 dtype="bfloat16",
6 device_map="auto",
7)
8processor = AutoProcessor.from_pretrained(
9 "ml-agent-explorers/gemma-4-e2b-arabic-english-vision"
10)