Compare

Mixtral 8x7B vs Llama 3.1 70B

Llama 3.1 70B has 70.6B parameters, 1.5 times the 46.7B of Mixtral 8x7B. In BF16 the weights take 93.4 GB and 141 GB. Llama 3.1 70B needs 2.5 times as much KV cache per token (327.7 KB against 131.1 KB): GQA against GQA.

Mixtral 8x7BLlama 3.1 70BRatio
Parameters46.7B 46,702,792,70470.6B 70,553,706,4961.51×
Active per token12.9Ball (dense)5.48×
Layers32802.50×
Hidden size (d)4,0968,1922.00×
Attention32 heads, 8 KV heads × 12864 heads, 8 KV heads × 128
FFN8 experts × 14,336, top 2SwiGLU, 28,672
Vocabulary32,000128,2564.01×
Tied embeddingsnono
Max context32K128K4.00×
Weights, BF1693.4 GB141 GB1.51×
Weights, 4-bit23.4 GB35.3 GB1.51×
KV cache per token (BF16)131.1 KB327.7 KB2.50×
KV cache at 32K tokens4.3 GB10.7 GB2.50×
FLOPs per token (4K context)27.9 GFLOPs151.8 GFLOPs5.44×

The full workings: Mixtral 8x7B · Llama 3.1 70B · change the models