gpt2 vs Qwen2.5-3B-Instruct

Try Try

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

At a glance

openai-community/gpt2Qwen/Qwen2.5-3B-Instruct
Repo createdMar 2, 2022updated Feb 19, 2024Sep 17, 2024updated Sep 25, 2024
Model typeDenseFull attention (MHA)DenseFull attention (GQA)
InputsTextText
Total parameters137M23× less3.09B23× more
Active per token137M23× less100% of the model3.09B23× more100% of the model
ExpertsNone (dense)None (dense)
Max context (from config)1K tokens32× less32K tokens32× more
Layers123.0× less363.0× more
On disk548 MB11× less1 file6.17 GB11× more2 files
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
Licensemitqwen-research (custom)
GitHubopenai/gpt-2QwenLM/Qwen2.5