Llama’s layers
Drawn at Llama 3’s numbers
DeepSeek LLMNov 20237B · 67B
Numbers · 6.91B, 67.4B parameters
SizeLayers 30 Width 4,096 Query heads 32 Key/value heads 32 Head width 128 MLP width 11,008 Vocabulary 102,400 Context 4,096 RoPE base 10,000 Parameters Token embedding 419,430,400 Layers 6,071,500,800 Final RMSNorm 4,096 Output projection 419,430,400 Total 6,910,365,696 Tensors summed 273 Pinned weights 7683fea The total equals the sum over the pinned weights, from the bytes of its PyTorch index, 2 per bfloat16 weight (13,820,731,392 bytes).
Unlike Llama 3’s drawing
- A key and value for every query head, none shared
Layers 95 Width 8,192 Query heads 64 Key/value heads 8 Head width 128 MLP width 22,016 Vocabulary 102,400 Context 4,096 RoPE base 10,000 Parameters Token embedding 838,860,800 Layers 65,747,271,680 Final RMSNorm 8,192 Output projection 838,860,800 Total 67,425,001,472 Tensors summed 858 Pinned weights c3f813a The total equals the sum over the pinned weights, from the bytes of its PyTorch index, 2 per bfloat16 weight (134,850,002,944 bytes).
Training · 2T tokens · chat: SFT, DPO
Pre-training Tokens 2T Data Mostly Chinese and English Trained context 4K Batch 2,304 sequences (7B) · 4,608 sequences (67B) Precision bf16, gradients accumulated in fp32 Optimizer AdamW Post-training Method Supervised fine-tuning and direct preference optimization (the chat models) Data About 1.5 million instruction instances in English and Chinese Read: deepseek-llm-7b-base card, deepseek-llm-67b-base card, DeepSeek LLM paper