Compare

Gemma 2 27B vs Qwen2.5 72B

Qwen2.5 72B has 72.7B parameters, 2.7 times the 27.2B of Gemma 2 27B. In BF16 the weights take 54.5 GB and 145 GB.

Gemma 2 27BQwen2.5 72BRatio
Parameters27.2B 27,227,128,32072.7B 72,706,203,6482.67×
Active per tokenall (dense)all (dense)2.67×
Layers46801.74×
Hidden size (d)4,6088,1921.78×
Attention32 heads, 16 KV heads × 12864 heads, 8 KV heads × 128
FFNGeGLU, 36,864SwiGLU, 29,568
Vocabulary256,000152,0640.59×
Tied embeddingsyesno
Max context8K128K16.00×
Weights, BF1654.5 GB145 GB2.67×
Weights, 4-bit13.6 GB36.4 GB2.67×
KV cache per token (BF16)376.8 KB327.7 KB0.87×
KV cache at 32K tokens– (max 8K)10.7 GB3.48×
FLOPs per token (4K context)57.5 GFLOPs156.1 GFLOPs2.71×

The full workings: Gemma 2 27B · Qwen2.5 72B · change the models