Compare
DeepSeek-V3 vs Llama 3.1 70B
DeepSeek-V3 has 671B parameters, 9.5 times the 70.6B of Llama 3.1 70B. In BF16 the weights take 1.34 TB and 141 GB. Llama 3.1 70B needs 4.7 times as much KV cache per token (327.7 KB against 70.3 KB): GQA against MLA.
| DeepSeek-V3 | Llama 3.1 70B | Ratio | |
|---|---|---|---|
| Parameters | 671B 671,026,419,200 | 70.6B 70,553,706,496 | 0.11× |
| Active per token | 37.6B | all (dense) | 1.88× |
| Layers | 61 | 80 | 1.31× |
| Hidden size (d) | 7,168 | 8,192 | 1.14× |
| Attention | MLA, 128 heads | 64 heads, 8 KV heads × 128 | |
| FFN | 256 experts × 2,048, top 8 + 1 shared | SwiGLU, 28,672 | |
| Vocabulary | 129,280 | 128,256 | 0.99× |
| Tied embeddings | no | no | |
| Max context | 160K | 128K | 0.80× |
| Weights, BF16 | 1.34 TB | 141 GB | 0.11× |
| Weights, 4-bit | 336 GB | 35.3 GB | 0.11× |
| KV cache per token (BF16) | 70.3 KB | 327.7 KB | 4.66× |
| KV cache at 32K tokens | 2.3 GB | 10.7 GB | 4.66× |
| FLOPs per token (4K context) | 95.6 GFLOPs | 151.8 GFLOPs | 1.59× |
The full workings: DeepSeek-V3 · Llama 3.1 70B · change the models