Gemma 4 E2B traced to bidirectional Gemma 4 continuation, not T5Gemma-2

tomaarsen · x · 2026-10-29

Responding to questions about the google/gemma-4-E2B-it architecture, tomaarsen explains that it is not based on the T5Gemma-2 encoder at all — it's more a continuation of the Gemma 4 family turned bidirectional.

Inspecting the transformers architecture files, the "modular" file (used to generate the runnable "modeling" file) shows heavy code reuse from Gemma 4 and Gemma 3, suggesting Google may have done some layer trimming since existing T5Gemma checkpoints are too large to continue from.

Related event: EmbeddingGemma2 Revealed as Bidirectional Gemma 4 Successor(3 posts)→

Original post →

More from Models

Models channel →