Gemma 4 E2B

Language Google Partly verified
  • In Input modalities: TextImageAudio Out Output modalities: Text
  • Reasoning
  • Reasoning can be off
  • Tool use
  • Open weights

Prices

0 offerings · prices as listed

No priced offering is listed for this model yet.

Details

Licence
apache-2.0
Family
gemma-e2b

Not stated on Google’s pages: max input, reasoning efforts, max thinking budget, structured output, built-in tools, knowledge cutoff, aliases.

Run locally

Weights: google/gemma-4-E2B
  • Parameters 5.1B
  • Dense
  • Native precision BF16
  • Layers 35
  • KV cache per token 35 KB
  • Config positions 128K (config.json max_position_embeddings)
  • API context 125K (maker’s API)
My hardware GeForce RTX 4090 24 GB · 1008 GB/s · 64 GB DDR5 dual channel · 89.6 GB/s
On your hardware · GeForce RTX 4090
Runs well BF16 (native) (automatic) 8K context 49–73 tok/sOne GPU
WeightsKV cacheOverheadUsable
Needs
≈ 10.1 GB (weights 9.5 (maker’s file) + KV cache 0.1 + overhead 0.5)
Usable
21.6 GB (90% of its memory)
Generation speed
49–73 tok/s
Longest context
125K (the model’s limit)
First token
about 0.17–0.25 s for a 2K prompt
PrecisionWeightsNeeds at 8KOn your hardwareLongest context
BF16 (native)maker’s file9.5 GB≈ 10.1Runs well 49–73 tok/s125K
Q8_05.1 GB≈ 5.6Runs well 91–137 tok/s125K
FP84.8 GB≈ 5.3Runs well 97–145 tok/s125K
Q6_K3.9 GB≈ 4.5Runs well 118–177 tok/s125K
Q5_K_M3.4 GB≈ 4.0Runs well 136–203 tok/s125K
Q5_03.3 GB≈ 3.8Runs well 140–210 tok/s125K
Q4_K_M2.9 GB≈ 3.5Runs well 158–237 tok/s125K
Q4_02.7 GB≈ 3.3Runs well 171–256 tok/s125K
IQ4_XS2.5 GB≈ 3.1Runs well 180–270 tok/s125K
Q3_K_Mquality drops2.3 GB≈ 2.9Runs well 196–293 tok/s125K
IQ3_XXSquality drops1.8 GB≈ 2.4Runs well 248–372 tok/s125K
Q2_Kquality drops1.8 GB≈ 2.4Runs well 253–379 tok/s125K
IQ2_XXSquality drops1.2 GB≈ 1.8Runs well 362–543 tok/s125K

Click a row to choose a precision. “Maker’s file” sizes are the maker’s own files; others are parameters × bits per weight.

Compared with other hardware

Each at the highest precision it runs. Click one for details.

Smallest that runs it (Q4_K_M, 8K): GPU GeForce RTX 3080; unified memory Apple M5 · 16 GB.

Run commands

vLLM
vllm serve google/gemma-4-E2B --max-model-len 8192
Memory to fine-tune
Full≈ 79.1 GBDoesn’t fit your hardware
LoRA≈ 12.4 GBFits your hardware
QLoRA≈ 5.6 GBFits your hardware

Batch 1, 2,048-token sequences, gradient checkpointing; LoRA and QLoRA train rank-16 adapters on the attention projections.

Estimates; facts from the maker’s Hugging Face repositories, as of 2026-11-06. How it’s estimated

Cited scores

From third-party leaderboards, not measured by us

This model isn’t on any leaderboard we cite yet.

No changes recorded yet.

Sources

Google’s official policies: data use, privacy, terms →

Some values on this page are still waiting to be checked against official pages: a filled dot is verified, a hollow one is not yet (with or without a source on file). How we verify data

Google · United States · ai.google.dev

Snapshots, the same family and other models from this provider