Compare

Gemma 4 31B vs Gemma 3 27B

Gemma 4 31B has 30.7B parameters, 1.1 times the 27B of Gemma 3 27B. In BF16 the weights take 61.4 GB and 54.0 GB. Gemma 4 31B needs 1.8 times as much KV cache per token (901.1 KB against 507.9 KB): GQA against GQA.

Gemma 4 31BGemma 3 27BRatio
Parameters30.7B 30,697,345,34027B 27,009,346,3040.88×
Active per tokenall (dense)all (dense)0.88×
Layers60621.03×
Hidden size (d)5,3765,376same
Attention32 heads, 4 KV heads × 51232 heads, 16 KV heads × 128
FFNGeGLU, 21,504GeGLU, 21,504
Vocabulary262,144262,208same
Tied embeddingsyesyes
Max context256K128K0.50×
Weights, BF1661.4 GB54.0 GB0.88×
Weights, 4-bit15.3 GB13.5 GB0.88×
KV cache per token (BF16)901.1 KB507.9 KB0.56×
KV cache at 32K tokens29.5 GB16.6 GB0.56×
FLOPs per token (4K context)65.8 GFLOPs55.6 GFLOPs0.84×

The full workings: Gemma 4 31B · Gemma 3 27B · change the models