ApX logoApX logo
CalculatorCoursesPricing

Gemma 3 4B

Closed Source
Open Weights

Parameters

4B

Context Length

131K

Modality

Multimodal

Auxiliary Parameters

430M

Architecture

Dense

KV Cache Rate

60 KB/tok

License

Gemma License

Release Date

12 Mar 2025

Knowledge Cutoff

Aug 2024

API Pricing (per 1M)

Input: $0.05 · Output: $0.10

Hardware & System Requirements

Precision

Context

Workload Memory: 4.83 GB

vLLM

INT4 · 8K context · 1 user

Base Weights: 1.86 GB

KV Cache: 0.47 GB

Runtime & Graphs: 2.50 GB

Minimum Required Hardware

1x NVIDIA L4 24GB

vLLM

4.8 / 21.6 GB

1x RTX 3060 12GB

llama.cpp

4.8 / 11.2 GB

Apple M4 24GB

llama.cpp

4.8 / 18.0 GB

Determine requirements for your specific workload:

Runtime requirements

Checkpoint format

FP16

CUDA

>= 11.8

PyTorch

>= 2.1

Transformers

>= 4.40.1

ArchitecturePrecisionAttention kernel

Blackwell, Hopper

Native FP16

FlashAttention-3

Ada Lovelace, Ampere

Native FP16

FlashAttention-2

Architecture Diagram

Evaluation Benchmarks

Rank

#224

BenchmarkScoreRank

Professional Knowledge

MMLU Pro

0.436

#60

Graduate-Level QA

GPQA

0.308

#120

0.03

#156

General Text

Text Arena

1303.25

#170

Intelligence Index

Artificial Analysis

0.05

#281

Rankings

Overall Rank

#224

Coding Rank

#175

About Gemma 3 4B

Gemma 3 4B is a lightweight vision-language model by Google optimized for efficient execution on consumer GPUs, laptops, and edge devices. It supports multimodal inputs, function calling, and over 140 languages across a 128K context window.

Specifications

Attention

Attention Structure

Grouped-Query Attention

Attention Heads

32

Key-Value Heads

8

Position Embedding

ROPE

Normalization

RMS Normalization

Dimensions

Base Precision

FP16

Auxiliary Parameters

430M

Hidden Dimension Size

2,048

Number of Layers

30

About Gemma 3

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.


Other Gemma 3 Models
Gemma 3 4B Size, VRAM & Hardware Requirements