gpt2 vs Xing4.0-29B-A4B

Try Try

gpt2 has 137M parameters (137M active per token) and takes 548 MB on disk; Xing4.0-29B-A4B has 31.2B (3.93B active) and takes 62.4 GB. Compare them layer by layer.

At a glance

openai-community/gpt2XingChen-AGI/Xing4.0-29B-A4B
Repo createdMar 2, 2022updated Feb 19, 2024Sep 16, 2026updated Sep 18, 2026
Model typeDenseFull attention (MHA)Mixture of expertsFull attention (MLA)
InputsTextText
Total parameters137M228× less31.2B228× more
Active per token137M29× less100% of the model3.93B29× more13% of the model
ExpertsNone (dense)4 of 64 activeplus 1 shared, always on
Max context (from config)1K tokens256× less256K tokens256× more
Layers123.3× less403.3× moreplus 1 extra prediction layer
On disk548 MB114× less1 file62.4 GB114× more41 files
PrecisionFP32 (100%)BF16 (100%)
QuantizationNoneoriginal precision (FP32)Noneoriginal precision (BF16)
Fewest GPUs1× RTX 4060a single 8 GB card · weights only1× NVIDIA H100a single 80 GB card · weights only
Licensemitapache-2.0
GitHubopenai/gpt-2XingChen-AGI/Xing4.0-29B-A4B