gpt2 vs Qwen2.5-0.5B-Instruct

Try Try

gpt2 has 137M parameters (137M active per token) and takes 548 MB on disk; Qwen2.5-0.5B-Instruct has 494M (494M active) and takes 988 MB. Compare them layer by layer.

At a glance

openai-community/gpt2Qwen/Qwen2.5-0.5B-Instruct
Repo createdMar 2, 2022updated Feb 19, 2024Sep 16, 2024updated Sep 25, 2024
Model typeDenseFull attention (MHA)DenseFull attention (GQA)
InputsTextText
Total parameters137M3.6× less494M3.6× more
Active per token137M3.6× less100% of the model494M3.6× more100% of the model
ExpertsNone (dense)None (dense)
Max context (from config)1K tokens32× less32K tokens32× more
Layers122.0× less242.0× more
On disk548 MB1.8× less1 file988 MB1.8× 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-2QwenLM/Qwen2.5