gpt2 vs Qwen2.5-1.5B-Instruct

Try Try

gpt2 has 137M parameters (137M active per token) and takes 548 MB on disk; Qwen2.5-1.5B-Instruct has 1.54B (1.54B active) and takes 3.09 GB. Compare them layer by layer.

At a glance

openai-community/gpt2Qwen/Qwen2.5-1.5B-Instruct
Repo createdMar 2, 2022updated Feb 19, 2024Sep 17, 2024updated Sep 25, 2024
Model typeDenseFull attention (MHA)DenseFull attention (GQA)
InputsTextText
Total parameters137M11× less1.54B11× more
Active per token137M11× less100% of the model1.54B11× more100% of the model
ExpertsNone (dense)None (dense)
Max context (from config)1K tokens32× less32K tokens32× more
Layers122.3× less282.3× more
On disk548 MB5.6× less1 file3.09 GB5.6× 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