WhoBuilt

Gemma 4 Deep Dive

Apr 27, 2026· 19 min· 45K views·Watch on YouTube

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.

Four models for different workloads

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.

Attention and efficient model designs

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.

Vision with flexible image budgets

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.

Audio and getting started

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

Show all 22 facts

Related talks