Welcome EmbeddingGemma, Google's new efficient embedding model
EmbeddingGemma is Google's 308M-parameter multilingual text embedding model. It is built on a Gemma3 backbone modified to use bidirectional attention, with mean pooling and two dense layers producing 768-dimensional vectors. It supports a 2K-token context and over 100 languages, runs in under 200 MB of RAM when quantized, and ranks highest among text-only multilingual models under 500M parameters on MMTEB. Because it was trained with Matryoshka Representation Learning, embeddings can be truncated to 512, 256 or 128 dimensions, and inputs need task-specific prompts such as "task: search result | query: " to get correct results. Code examples cover Sentence Transformers, LangChain, LlamaIndex, Haystack, txtai, Transformers.js, TEI and ONNX, plus a finetuning walkthrough on the MIRIAD medical dataset whose resulting model outperforms models twice its size on that task.
Related posts
- Welcome Gemma 3: Google's all new multimodal, multilingual, long context open LLM
Hugging Face mediumAdeptGemma 3 is Google's open-weight model family in 1B, 4B, 12B and 27B sizes, with 128k context (32k for 1B), image input via a SigLIP encoder on the 4B and larger models, and support for 140+ languages. Long context comes from pretraining at 32k and then scaling to 128k with RoPE base frequency raised to 1M. KV cache size is cut by interleaving 5 local sliding-window layers (window 1024) per global layer. Images get bidirectional attention and "pan and scan" cropping, and a 262K-entry SentencePiece tokenizer improves CJK encoding. The 27B IT model scores 1339 Elo on Chatbot Arena, and the post includes inference code for transformers, MLX, llama.cpp and HF Endpoints.
- Welcome Gemma 4: Frontier multimodal intelligence on device
Hugging Face mediumAdeptGoogle DeepMind's Gemma 4 is an Apache 2-licensed multimodal model family in five sizes: E2B, E4B, a 12B encoder-free Unified model, a 31B dense model and a 26B MoE with 4B active parameters. The models take text, image, video and in some sizes audio, with context windows up to 256K. The architecture combines alternating sliding-window and global attention, dual RoPE configurations, Per-Layer Embeddings that feed a small per-layer residual signal, and a shared KV cache in which the final layers reuse earlier layers' key/value tensors to save memory and compute. Practical guidance covers modality ordering in prompts (images before text, audio after), native JSON bounding-box output on a 1000x1000 grid, and running or fine-tuning the models with transformers, llama.cpp, MLX, transformers.js, Mistral.rs and TRL.
- Granite Embedding Multilingual R2: Open Apache 2.0 Multilingual Embeddings with 32K Context — Best Sub-100M Retrieval Quality
Hugging Face mediumAdeptIBM's Granite Embedding Multilingual R2 is a pair of Apache 2.0 ModernBERT-based embedding models covering 200+ languages and 9 programming languages, with 32K-token context (64x R1). The 97M model scores 60.3 on MTEB Multilingual Retrieval, well ahead of other open sub-100M models such as multilingual-e5-small (50.9), and encodes over 2,500 docs/sec on an H100. The 311M model reaches 65.2 and leads LongEmbed at 71.7. It was trained with multi-teacher distillation from decoder LLMs, contrastive fine-tuning, checkpoint merging and Matryoshka objectives, so embeddings can be truncated from 768 to 256 dimensions at a cost of only 0.5 points. Both models are drop-in replacements in sentence-transformers, LangChain and similar frameworks.
- Welcome Gemma - Google’s new open LLM
Hugging Face mediumAdeptGoogle's Gemma open LLM family ships in 2B and 7B sizes, each with base and instruction-tuned variants and an 8K context. On the Open LLM Leaderboard Gemma 7B scores 63.75, comparable to Mistral 7B, while Gemma 2B trails Phi-2. Hugging Face supports it through Transformers 4.38, including bfloat16 inference in about 18 GB, 4-bit loading in about 9 GB, and a ~4x speedup with torch.compile. Other integrations include JAX/Flax weights, Vertex AI/GKE and Inference Endpoints deployment via Text Generation Inference with an OpenAI-compatible Messages API, and a QLoRA fine-tuning recipe with TRL that takes about 9 hours on one A10G.
- PaliGemma – Google's Cutting-Edge Open Vision Language Model
Hugging Face mediumAdeptPaliGemma is Google's open vision-language model family that pairs a SigLIP-So400m image encoder with a Gemma-2B text decoder through a linear projector. It ships as pretrained, mix and task-specific fine-tuned checkpoints at 224, 448 and 896 resolutions. Behaviour is steered with task prefixes such as "detect" and "segment", and detections come back as <loc> tokens normalized to 1024. Images become 256 to 4096 prefix tokens with full attention over the image and prompt, so higher resolutions cost much more memory while helping mainly fine-grained tasks like OCR. The post includes transformers code for inference, 4-bit loading, and fine-tuning the decoder with full training or QLoRA, plus big_vision transfer configs.