HF maintainer: EmbeddingGemma2 is actually a bidirectional continuation of Gemma 4

tomaarsen · x · 2026-10-29

Hugging Face transformers maintainer tomaarsen says EmbeddingGemma2 is not based on embeddinggemma-300m as docs suggest, but a bidirectional continuation of the Gemma 4 family. He points to modularembeddinggemma2.py in the repo, which generates the actual modeling file and shows heavy code reuse from Gemma 4 and Gemma 3. Questioner vncntrsnlt notes the causal-to-bidi adaptation is odd given Gemma 4 models aren't released yet and suggests inspecting weight shapes for lineage clues.

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

Original post →

More from Models

Models channel →