HomeModelsgemma4-e4b

Model sheet

gemma4-e4b

Architecture dense42 LayersLicense apache-2.0Maximum context 128kVocabulary 262,144

At Q4_K_M this is a 4.63 GiB file and it fits on 10 of the 10 machine profiles we measure. What it costs to run is not the file: it is the context — and the same content in German costs ×1.33 what it costs in English.

At a glance
Size at Q4_K_M4.63 GiB
Context memory at 8k0.14 GiB
Fits on10 / 10
German cost×1.33
Smallest machine that takes itPC with an RTX 4060 8 GB
4.63 GiB

Model size at Q4_K_M

Measured by Local AI Scope

0.14 GiB

Context memory at 8k tokens

Measured by Local AI Scope

×1.33

What German costs versus English

Measured by Local AI Scope

Sizes

Sizes of the real published files

These are the sizes of the files actually published by the author, added up when the model ships split into parts. Not an estimate from the parameter count.

Size of the published file for each compression
Compression Model size
Q8_0 7.63 GiB
Q6_K 6.59 GiB
Q5_K_M 5.11 GiB
Q5_K_S 5.03 GiB
Q4_K_M 4.63 GiB
Q4_K_S 4.51 GiB
IQ4_XS 4.39 GiB
Q3_K_M 3.78 GiB
Context

Context memory

Computed from the attention pattern this model declares layer by layer, not from the generic formula. That is why the figure is often far smaller than other calculators tell you.

  • 8k tokens → 0.14 GiB
  • 32k tokens → 0.47 GiB
  • 128k tokens → 1.78 GiB
Languages

What it costs in each language

Measured by running this model’s own tokenizer over the same content in four languages. Tokens are what you pay for in context, in memory and in your cloud bill.

Token cost per kind of text and language, with English as the baseline
Kind of text EN ES FR DE
Code ×1.16 ×1.25 ×1.39
Contracts ×1.15 ×1.22 ×1.36
Business email ×1.11 ×1.21 ×1.21
Support tickets ×1.20 ×1.40 ×1.32

English is the baseline: every figure is how many times more tokens the same content costs in that language. Average across the whole corpus: DE ×1.33.

Machines

Where it fits

Fits means the model, its context memory and the working headroom all fit at the stated context, leaving the system its share. 10 of the 10 machine profiles tested (Q4_K_M, 8k tokens).

The ten machine profiles, with the memory each one leaves and the largest context this model holds on it
Machine Fits Memory left Largest context that fits
PC with an RTX 4060 8 GB yes 7.20 GiB 32k
PC with an RTX 3060 12 GB yes 11.20 GiB 128k
PC with an RTX 4070 12 GB yes 11.20 GiB 128k
Mac with M4 and 16 GB unified memory yes 13.00 GiB 128k
Office laptop, CPU only, 16 GB yes 13.00 GiB 128k
Mac with M4 Pro and 24 GB yes 21.00 GiB 128k
Workstation with an RTX 4090 24 GB yes 23.20 GiB 128k
Mini-PC with an NPU and 32 GB LPDDR5X yes 29.00 GiB 128k
Server with 2× RTX 3090 (48 GB) yes 47.20 GiB 128k
Mac with M4 Max and 64 GB yes 61.00 GiB 128k