gpt2 vs tiny-Qwen2ForCausalLM-2.5

Try Try

gpt2 has 137M parameters (137M active per token) and takes 548 MB on disk; tiny-Qwen2ForCausalLM-2.5 has 2.44M (1.22M active) and takes 4.87 MB. Compare them layer by layer.

At a glance

openai-community/gpt2trl-internal-testing/tiny-Qwen2ForCausalLM-2.5
Repo createdMar 2, 2022updated Feb 19, 2024Nov 25, 2024updated Sep 8, 2026
Model typeDenseFull attention (MHA)DenseFull attention (GQA)
InputsTextText
Total parameters137M56× more2.44M56× less
Active per token137M112× more100% of the model1.22M112× less50% of the model
ExpertsNone (dense)None (dense)
Max context (from config)1K tokens32× less32K tokens32× more
Layers126.0× more26.0× less
On disk548 MB113× more1 file4.87 MB113× less1 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
LicensemitNot stated
GitHubopenai/gpt-2Not linked