Gemma 4 E4B

Language Google Partly verified Released May 20, 2025
  • In Input modalities: TextImageAudio Out Output modalities: Text
  • Reasoning
  • 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

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

Run locally

Weights: google/gemma-4-E4B
  • Parameters 8B
  • Dense
  • Native precision BF16
  • Layers 42
  • KV cache per token 84 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 31–47 tok/sOne GPU
WeightsKV cacheOverheadUsable
Needs
≈ 15.8 GB (weights 14.9 (maker’s file) + KV cache 0.1 + overhead 0.7)
Usable
21.6 GB (90% of its memory)
Generation speed
31–47 tok/s
Longest context
125K (the model’s limit)
First token
about 0.26–0.39 s for a 2K prompt
PrecisionWeightsNeeds at 8KOn your hardwareLongest context
BF16 (native)maker’s file14.9 GB≈ 15.8Runs well 31–47 tok/s125K
Q8_07.9 GB≈ 8.6Runs well 58–87 tok/s125K
FP87.4 GB≈ 8.1Runs well 62–93 tok/s125K
Q6_K6.1 GB≈ 6.8Runs well 75–112 tok/s125K
Q5_K_M5.3 GB≈ 5.9Runs well 86–129 tok/s125K
Q5_05.1 GB≈ 5.8Runs well 89–134 tok/s125K
Q4_K_M4.5 GB≈ 5.2Runs well 101–151 tok/s125K
Q4_04.2 GB≈ 4.8Runs well 108–163 tok/s125K
IQ4_XS4.0 GB≈ 4.6Runs well 114–172 tok/s125K
Q3_K_Mquality drops3.6 GB≈ 4.3Runs well 124–186 tok/s125K
IQ3_XXSquality drops2.8 GB≈ 3.5Runs well 157–235 tok/s125K
Q2_Kquality drops2.8 GB≈ 3.4Runs well 160–240 tok/s125K
IQ2_XXSquality drops1.9 GB≈ 2.6Runs well 228–342 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-E4B --max-model-len 8192
Memory to fine-tune
Full≈ 122.2 GBDoesn’t fit your hardware
LoRA≈ 18.1 GBFits your hardware
QLoRA≈ 7.4 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.

  1. New language model
  2. New language model

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