gpt2 vs Qwen-72B

Try Try

gpt2 has 137M parameters (137M active per token) and takes 548 MB on disk; Qwen-72B has 72.3B (71.0B active) and takes 145 GB. Compare them layer by layer.

At a glance

openai-community/gpt2Qwen/Qwen-72B
Repo createdMar 2, 2022updated Feb 19, 2024Nov 26, 2023updated Oct 9, 2024
Model typeDenseFull attention (MHA)DenseFull attention (MHA)
InputsTextText
Total parameters137M528× less72.3B528× more
Active per token137M518× less100% of the model71.0B518× more98% of the model
ExpertsNone (dense)None (dense)
Max context (from config)1K tokens32× less32K tokens32× more
Layers126.7× less806.7× more
On disk548 MB264× less1 file145 GB264× more82 files
PrecisionFP32 (100%)BF16 (100%)
QuantizationNoneoriginal precision (FP32)Noneoriginal precision (BF16)
Fewest GPUs1× RTX 4060a single 8 GB card · weights only1× NVIDIA B200a single 180 GB card · weights only
Licensemittongyi-qianwen-license-agreement (custom)
GitHubopenai/gpt-2QwenLM/Qwen