Compare

Gemma 3 4B vs Qwen3 4B

Qwen3 4B has 4.02B parameters and Gemma 3 4B 3.88B, about the same. In BF16 the weights take 7.8 GB and 8.0 GB.

Gemma 3 4BQwen3 4BRatio
Parameters3.88B 3,880,263,1684.02B 4,022,468,0961.04×
Active per tokenall (dense)all (dense)1.04×
Layers34361.06×
Hidden size (d)2,5602,560same
Attention8 heads, 4 KV heads × 25632 heads, 8 KV heads × 128
FFNGeGLU, 10,240SwiGLU, 9,728
Vocabulary262,208151,9360.58×
Tied embeddingsyesyes
Max context128K40K0.31×
Weights, BF167.8 GB8.0 GB1.04×
Weights, 4-bit1.9 GB2.0 GB1.04×
KV cache per token (BF16)139.3 KB147.5 KB1.06×
KV cache at 32K tokens4.6 GB4.8 GB1.06×
FLOPs per token (4K context)8.2 GFLOPs10.5 GFLOPs1.28×

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