NeFut Logo NeFut
Admin Login

[DeepMind] Introducing Gemma 3n: A Developer's Guide

Published at: 2026-06-15 22:00 Last updated: 2026-06-16 12:15
#AI #Machine Learning #Open Source

The launch of Gemma 3n marks a significant advancement in on-device AI, supporting image, audio, video, and text inputs and outputs, showcasing powerful multimodal capabilities. Gemma 3n offers two model sizes, E2B and E4B, with parameter counts of 5B and 8B respectively, yet through architectural innovations, they maintain memory footprints comparable to traditional 2B and 4B models, requiring only 2GB and 3GB of memory.

At the core is the MatFormer (🪆Matryoshka Transformer) architecture, enabling developers to utilize pre-extracted models or create custom-sized models through a method called Mix-n-Match. By adjusting the hidden dimension of the feed-forward network per layer, developers can flexibly switch between E2B and E4B. The MatFormer Lab tool will assist in retrieving these optimal models.

Gemma 3n also introduces Per-Layer Embeddings (PLE), significantly improving memory efficiency, allowing a substantial portion of parameters to be efficiently computed on the CPU, with only core transformer weights occupying accelerator memory. Additionally, the KV Cache Sharing feature accelerates processing of long inputs, enhancing performance for streaming applications.

In audio processing, Gemma 3n employs an audio encoder based on the Universal Speech Model (USM), supporting high-quality speech-to-text and speech translation capabilities, providing developers with powerful tools.

The newly introduced MobileNet-V5-300M vision encoder supports multiple input resolutions, enabling efficient multimodal task processing on constrained hardware.

Gemma 3n's openness and community contributions will undoubtedly drive the growth of this ecosystem, while the Gemma 3n Impact Challenge encourages developers to leverage its unique capabilities to create a better future.

Getting Started with Gemma 3n

Blogger's Review: The launch of Gemma 3n showcases the potential of on-device AI technology, especially in multimodal processing and memory optimization. With support from the open-source community, it paves the way for innovative applications. Developers should seize this opportunity to explore the limitless possibilities of Gemma 3n.

Original Source: https://deepmind.google/blog/introducing-gemma-3n-the-developer-guide/

[h] Back to Home