gpt2 vs Qwen3.5-4B

Try Try

gpt2 has 137M parameters (137M active per token) and takes 548 MB on disk; Qwen3.5-4B has 4.66B (4.33B active) and takes 9.32 GB. Compare them layer by layer.

At a glance

openai-community/gpt2Qwen/Qwen3.5-4B
Repo createdMar 2, 2022updated Feb 19, 2024Feb 27, 2026updated Mar 2, 2026
Model typeDenseFull attention (MHA)DenseHybrid attention: 24 linear + 8 full (GQA)
InputsTextText + images334M vision encoder
Total parameters137M34× less4.66B34× more
Active per token137M32× less100% of the model4.33B32× more93% of the model
ExpertsNone (dense)None (dense)
Max context (from config)1K tokens256× less256K tokens256× more
Layers122.7× less322.7× more24 linear + 8 full attention
On disk548 MB17× less1 file9.32 GB17× more2 files
PrecisionFP32 (100%)BF16 (100%)
QuantizationNoneoriginal precision (FP32)Noneoriginal precision (BF16)
Fewest GPUs1× RTX 4060a single 8 GB card · weights only1× RTX 3060 12 GBa single 12 GB card · weights only
Licensemitapache-2.0
GitHubopenai/gpt-2Not linked