ApX logoApX logo

Gemma 4 E4B

Parameters

8B

Context Length

128K

Modality

Multimodal

Auxiliary Parameters

400M

Architecture

Dense

KV Cache Rate

84 KB/tok

License

Apache 2.0

Release Date

2 Apr 2026

Knowledge Cutoff

-

API Pricing (per 1M)

Input: $0.02 · Output: $0.10

Hardware & System Requirements

Precision

Native

Context

Workload Memory: 6.88 GB

INT4 · 8K context

Base Weights: 3.73 GB

KV Cache: 0.66 GB

Runtime & Graphs: 2.50 GB

Minimum Required Hardware

1x NVIDIA L4 24GB

6.9 / 21.6 GB usable

1x RTX 3060 12GB

6.9 / 10.8 GB usable

Apple M4 24GB

6.9 / 18.0 GB usable

Determine requirements for your specific workload:

Open in VRAM Calculator

Runtime requirements

Checkpoint format

FP16

CUDA

>= 11.8

PyTorch

>= 2.1

Transformers

>= 5.5.0.dev0

ArchitecturePrecisionAttention kernel

Blackwell, Hopper

Native FP16

FlashAttention-3

Ada Lovelace, Ampere

Native FP16

FlashAttention-2

Architecture Diagram

Input TokensToken EmbeddingPosition: RoPEHidden: 10.2k · Context: 128K · Vocab: 262.1kx 42 layersRMSNormPre-AttentionGrouped-Query Attention8Q / 2KV heads · SW: 512Head dim: 256+RMSNormPre-FFNFeed-Forward NetworkGELUIntermediate: 10.2k+Final RMSNormOutput Logits

Evaluation Benchmarks

Rank

#159

BenchmarkScoreRank

Professional Knowledge

MMLU Pro

0.694

43

Graduate-Level QA

GPQA

0.586

97

auto

0.09

148

Intelligence Index

Artificial Analysis
auto

0.09

Standard

0.07

253

267

Rankings

Overall Rank

#159

Coding Rank

#159

About Gemma 4 E4B

Gemma 4 E4B is an edge-optimized model with 4.5B effective parameters (8B with Per-Layer Embeddings) for mobile and edge deployments. Supports multimodal input (text, image, audio) with 128K context window. Delivers enhanced performance over E2B while maintaining efficient on-device execution. Features thinking mode and native function calling.

Specifications

Attention

Attention Structure

Grouped-Query Attention

Attention Heads

8

Key-Value Heads

2

Attention Head Dimension

256

Position Embedding

ROPE

RoPE Theta

10,000

Sliding Window Attention

Yes

Sliding Window Size

512

Sliding Window Ratio

83.3%

Normalization

RMS Normalization

Activation Function

GELU

Dimensions

Base Precision

FP16

Auxiliary Parameters

400M

Hidden Dimension Size

10,240

Number of Layers

42

FFN Intermediate Size (Dense)

10,240

Tokenizer

Vocabulary Size

262,144

About Gemma 4

Gemma 4 is Google DeepMind's most advanced open model family, built from Gemini 3 research and technology. Featuring both Dense and Mixture-of-Experts (MoE) architectures, these multimodal models handle text, images, and audio (on smaller variants), with context windows up to 256K tokens. Designed for frontier-level performance across reasoning, coding, and agentic workflows, Gemma 4 delivers unprecedented intelligence-per-parameter from mobile devices to enterprise servers. Released under Apache 2.0 license.


Other Gemma 4 Models
Gemma 4 E4B - VRAM Requirements, Specs & Benchmarks