Gemma 4 includes two smaller models for on-device use and two larger models for demanding tasks: a 26B mixture-of-experts model and a 31B dense model. Hardin says the larger models ranked among the top six open-source models on LM Arena. Gemma 4 also moves to an Apache 2.0 license.
Gemma 4 Deep Dive
Speaker
Cassidy Hardin, researcher at Google DeepMind, explains Gemma 4’s model sizes, architecture, multimodal features, and ways to get started at an AI Engineer talk.
The models use interleaved local and global attention layers. Local layers use sliding windows of 512 tokens in the smaller models and 1,024 in the larger ones; global layers attend to all preceding tokens. The 26B model activates eight of its 128 experts per forward pass, while per-layer embeddings help the smaller models reduce reliance on VRAM.
All four models have multimodal capabilities, with vision encoders ranging from 150 million parameters in the smaller models to 550 million in the larger ones. Developers can choose among five image resolutions and adjust the token budget. Higher budgets can help with OCR and object recognition, while smaller budgets suit applications that use less image detail.
The E2B and E4B models accept audio for translation and speech recognition, using an audio tokenizer and a 305-million-parameter conformer. Developers can download and self-host the models through Hugging Face, Kaggle, or Ollama. The 31B and 26B models are also available through AI Studio and Vertex for prototyping and testing agentic workflows and function calling.
Takeaways
- Choose a smaller Gemma 4 model when local phone or laptop deployment matters.
- Use the 26B MoE when lower active parameter count is useful: eight of its 128 experts activate per pass.
- Tune image resolution and token budget to the task, especially for OCR and object recognition.
- The E2B and E4B support audio input for translation and speech recognition.
- Start locally through Hugging Face, Kaggle, or Ollama, or prototype the larger models through AI Studio or Vertex.
Mentioned in this talk
Search inside this talk
What was claimed 22
- launched
Google DeepMind launched
Gemma 4“just seven days ago, we released Gemma 4”
0:15inGemma, DeepMind's Family of Open ModelsYouTube Verified3 sources· Talk
- role atCassidy Hardin is Researcher at
Google DeepMind
“I'm a researcher at Google DeepMind.”
YouTube Unverified1 source· Talk
- metric
Gemma 4: Four model sizes“Gemma 4 comes in four sizes.”
YouTube Unverified1 source· Talk
- metric
Gemma 4: 31B dense model and 26B mixture-of-experts model“a 26B mixture-of-experts model ... Our largest model is the 31B dense model.”
YouTube Unverified1 source· Talk
- feature
Gemma 4: Apache 2.0 license“the move to an Apache 2.0 license”
YouTube Unverified1 source· Talk
- metric
Gemma 4: 31B model has a 256K context length“The 31B has a 256K context length.”
YouTube Unverified1 source· Talk
- feature
Gemma 4: 31B model supports thinking, function calling, and structured JSON outputs“native support for thinking, function calling, and structured JSON outputs”
YouTube Unverified1 source· Talk
- metric
Gemma 4: 26B model uses 3.8 billion parameters per forward pass, with 128 experts and eight activated per pass“It requires only 3.8 billion parameters during any forward pass.”
YouTube Unverified1 source· Talk












