gpt2 vs MiniCPM5-2B

Try Try

gpt2 has 137M parameters (137M active per token) and takes 548 MB on disk; MiniCPM5-2B has 2.52B (2.25B active) and takes 5.03 GB. Compare them layer by layer.

At a glance

openai-community/gpt2openbmb/MiniCPM5-2B
Repo createdMar 2, 2022updated Feb 19, 2024Sep 6, 2026updated Sep 12, 2026
Model typeDenseFull attention (MHA)DenseFull attention (GQA)
InputsTextText
Total parameters137M18× less2.52B18× more
Active per token137M16× less100% of the model2.25B16× more89% of the model
ExpertsNone (dense)None (dense)
Max context (from config)1K tokens128× less128K tokens128× more
Layers123.5× less423.5× more
On disk548 MB9.2× less1 file5.03 GB9.2× more1 file
PrecisionFP32 (100%)BF16 (100%)
QuantizationNoneoriginal precision (FP32)Noneoriginal precision (BF16)
Fewest GPUs1× RTX 4060a single 8 GB card · weights only1× RTX 4060a single 8 GB card · weights only
Licensemitapache-2.0
GitHubopenai/gpt-2OpenBMB/MiniCPM