Active Parameters
6B
Context Length
33K
Modality
Text
Architecture
Mixture of Experts (MoE)
License
Google Gemma License
Release Date
20 May 2025
Knowledge Cutoff
Jun 2024
VRAM requirements for different quantization methods and context sizes
1,024 tokens
Consumer
1x RTX 4090
24GB VRAM
Datacenter
1x NVIDIA A100
80GB VRAM
Apple Silicon
1x Apple M3 Max
128GB VRAM
32,768 tokens
Consumer
1x RTX 4090
24GB VRAM
Datacenter
1x NVIDIA A100
80GB VRAM
Apple Silicon
1x Apple M3 Max
128GB VRAM
Rank
#117
| Benchmark | Score | Rank |
|---|---|---|
General Knowledge MMLU | 0.601 | 35 |
Web Development WebDev Arena | 1319 | 73 |
General Text Text Arena | 1318 | 80 |
Overall Rank
#117
Coding Rank
#82
Gemma 3n E2B IT is a member of the Google Gemma 3n model family, engineered for efficient deployment and execution on resource-constrained devices, including mobile phones, laptops, and workstations. This model is designed to facilitate highly capable, real-time artificial intelligence inference directly at the edge. The E2B variant is specifically instruction-tuned for diverse applications.
The architectural foundation of Gemma 3n E2B IT is the Matryoshka Transformer, or MatFormer. A central innovation in this architecture is the implementation of selective parameter activation technology. This enables the model to operate with an effective memory footprint of approximately 2 billion parameters, even though the total number of parameters loaded during standard execution is 6 billion. This flexible parameter management allows for dynamic optimization of performance relative to computational resources. Furthermore, the model incorporates multimodal understanding capabilities, processing not only textual input but also images, video, and audio to generate textual outputs. For visual data, it employs a SigLIP vision encoder, which integrates a "Pan & Scan" algorithm to robustly handle varying image resolutions and aspect ratios. The attention mechanism within the model is structured with an interleaved pattern, alternating between five local layers, each utilizing a constrained sliding window of 1024 tokens, and one global layer. This design optimizes Key-Value (KV) cache management, which is essential for efficient processing of long contexts. Positional encoding is managed through Rotary Position Embeddings (RoPE), and the model leverages Grouped-Query Attention (GQA) along with RMSNorm for normalization.
In terms of operational characteristics, Gemma 3n E2B IT supports a context length of 32,768 tokens. It features comprehensive multilingual capabilities, having been trained on data encompassing over 140 languages, and utilizes a tokenizer optimized for broad language coverage. The model is applicable to a range of generative AI tasks, including question answering, summarization, and reasoning. Its efficient architecture makes it particularly suitable for integration into systems requiring low-resource deployment, such as content analysis tools, automated documentation systems, and interactive multimodal assistants. The model also supports function calling, enabling the construction of natural language interfaces for programmatic control.
Attention
Attention Structure
Multi-Head Attention
Attention Heads
-
Key-Value Heads
-
Attention Head Dimension
-
Position Embedding
Absolute Position Embedding
RoPE Theta
-
Sliding Window Attention
-
Sliding Window Size
-
Sliding Window Ratio
-
Linear Attention
-
Linear Attention Ratio
-
Normalization
RMS Normalization
Activation Function
-
Dimensions
Hidden Dimension Size
2,560
Number of Layers
30
FFN Intermediate Size (Dense)
-
Multi-Token Prediction Heads
-
Tokenizer
Vocabulary Size
-
Mixture of Experts
Total Expert Parameters
2.0B
Number of Experts
-
Active Experts
-
Shared Experts
-
FFN Intermediate Size (per Expert)
-
Dense Layers Before MoE
-
Total Score
67
/ 100
Gemma 3n E2B IT demonstrates strong transparency in its architectural design and hardware requirements, particularly regarding its innovative memory-saving techniques. While it provides extensive technical documentation on its tokenizer and model structure, it remains opaque concerning the specific proportions of its training data and the total compute resources consumed during its development. The model's identity is well-defined, though its reliance on a custom license and limited environmental disclosure are notable gaps.
Architectural Provenance
The model's architecture is extensively documented as a 'Matryoshka Transformer' (MatFormer) with specific innovations like Per-Layer Embeddings (PLE) and selective parameter activation. Technical documentation and the Gemma 3 Technical Report (arXiv:2503.19786) detail the 5:1 interleaved pattern of local (sliding window of 1024 tokens) and global attention layers. It also specifies the use of a SigLIP vision encoder with a 'Pan & Scan' algorithm and a MobileNet-v5 based encoder for audio. While the high-level methodology is clear, the exact weights for the 'Mix-and-Match' sub-model extraction are facilitated through a tool (MatFormer Lab) rather than being fully static in the base weights.
Dataset Composition
Google discloses that the model was trained on approximately 11 trillion tokens across 140+ languages, including web text, code, mathematics, and multimodal data (images/audio). However, specific percentage breakdowns of the dataset composition are not provided. While filtering methodologies for CSAM and sensitive data are mentioned, the exact sources of the 'diverse collection of web text' remain proprietary, and the labeling methods for instruction tuning are undisclosed.
Tokenizer Integrity
The model uses a SentencePiece tokenizer with a vocabulary size of 262,144 entries, which is consistent with Gemini 2.0. It supports byte-level encodings and split digits, specifically optimized for multilingual balance across 140+ languages. The tokenizer is publicly accessible via Hugging Face and official Google repositories, allowing for direct verification of tokenization behavior and vocabulary alignment.
Parameter Density
There is significant transparency regarding the distinction between 'raw' and 'effective' parameters. The E2B variant has a total of approximately 5-6 billion parameters but is designed to operate with an effective footprint of ~2 billion (specifically 1.91B) through PLE and parameter skipping. However, the '6B' total count in the provided metadata slightly conflicts with some technical reports citing 5B for E2B, and the exact active parameter count during multimodal inference vs. text-only inference is described qualitatively rather than with a precise per-task breakdown.
Training Compute
The technical report mentions the use of TPUv5e hardware for training the Gemma 3 family, but specific compute hours, total energy consumption, or carbon footprint data for the E2B variant are not disclosed. While the hardware type is known, the lack of detailed resource metrics or environmental impact calculations results in a low score.
Benchmark Reproducibility
Google provides a comprehensive list of benchmark results (MMLU, GSM8K, HumanEval, etc.) with specified shot counts (e.g., 0-shot, 5-shot). However, the exact evaluation code and specific prompts used for the multimodal benchmarks are not fully public in a single reproducible repository. Third-party verification is available through platforms like LMSYS (LMArena), but the internal 'MatFormer Lab' results for custom slices are harder to verify independently.
Identity Consistency
The model consistently identifies itself as 'Gemma' and is transparent about its versioning (Gemma 3n) and capabilities. It does not exhibit identity confusion with competitor models like GPT-4. Documentation clearly outlines its role as an edge-optimized multimodal model, and it maintains a coherent identity across various deployment platforms (Ollama, Hugging Face, LiteRT).
License Clarity
The model is released under the 'Google Gemma License,' which allows for both commercial and non-commercial use, subject to specific usage guidelines and redistributable terms. While the license is permissive and clear, it is a custom 'open weights' license rather than a standard OSI-approved open-source license (like Apache 2.0), which imposes some restrictions on redistribution and attribution.
Hardware Footprint
Hardware requirements are well-documented, specifically highlighting the 2GB VRAM target for the E2B variant when using quantization and PLE. Documentation provides specific guidance for deployment on mobile (LiteRT) and consumer GPUs. There is also clear disclosure regarding the memory scaling for its 32,768 token context window and the trade-offs between full-precision (BF16) and quantized (GGUF) execution.
Versioning Drift
The model uses basic versioning (v1.0), and changelogs are available on Hugging Face. However, as a relatively new release, there is limited historical data on performance drift or a formal long-term deprecation policy. The 'Mix-and-Match' nature of the architecture also introduces potential for 'silent' variation if users deploy different sub-model slices without clear version tracking of the specific slice configuration.
Gemma 3 is a family of open, lightweight models from Google. It introduces multimodal image and text processing, supports over 140 languages, and features extended context windows up to 128K tokens. Models are available in multiple parameter sizes for diverse applications.
APX AI
Online