DeepSeek · 2024-01 · MoE épars
DeepSeekMoE 16B
DeepSeekMoE 16B est un Transformer à attention multi-tête (MHA) publié par DeepSeek en 2024-01, avec 28 couches, une dimension cachée de 2048 et une fenêtre de contexte de 4,096 tokens.
Pile de couches
Attention ×28 · Couches 28
Faits clés
| Laboratoire | DeepSeek |
|---|---|
| Publication | 2024-01 |
| Paramètres | 16.2 Md |
| Actifs | 2.6 Md |
| Contexte | 4,096 tokens |
| Attention | MHA (16:16) |
| Couches | 28 |
| Dimension cachée | 2,048 |
| Têtes d'attention | 16 |
| Vocabulaire | 102,400 |
| Encodage positionnel | RoPE |
| Normalisation | RMSNorm |
| Activation | silu |
| Précision | bf16 |
| Classe d'architecture | DeepseekForCausalLM |
Vue d'ensemble de l'architecture
Attention
attention multi-tête (MHA) — 16 q-heads / 16 kv-heads. RoPE θ=10,000.
FFN / MoE
C’est un mélange d’experts épars : 64 experts routés avec routage top-6 ; environ 2.6Md de paramètres sont actifs par token.
Comparaison champ à champ
Comparé au modèle précédent du même labo ; à défaut, au modèle structurellement le plus proche. La colonne ratio = ce modèle ÷ le modèle comparé.
Comparaison complète avec le prédécesseur DeepSeek LLM 7B
| Modèle | DeepSeekMoE 16B | DeepSeek LLM 7B | Ratio |
|---|---|---|---|
| model_type | deepseek | llama | ≠ |
| architectures | DeepseekForCausalLM | LlamaForCausalLM | ≠ |
| hidden_size | 2048 | 4096 | ×0.500 |
| num_hidden_layers | 28 | 30 | ×0.933 |
| num_attention_heads | 16 | 32 | ×0.500 |
| num_key_value_heads | 16 | 32 | ×0.500 |
| intermediate_size | 10944 | 11008 | ×0.994 |
| hidden_act | silu | silu | = |
| n_routed_experts | 64 | — | |
| num_experts_per_tok | 6 | — | |
| n_shared_experts | 2 | — | |
| moe_intermediate_size | 1408 | — | |
| rope_theta | 10000 | 10000 | ≈1 |
| max_position_embeddings | 4096 | 4096 | ≈1 |
| rms_norm_eps | 0.000001 | 0.000001 | ≈1 |
| vocab_size | 102400 | 102400 | ≈1 |
| torch_dtype | bfloat16 | bfloat16 | = |
| attention_bias | false | — | |
| attention_dropout | 0 | — | |
| bos_token_id | 100000 | 1 | ×100000.00 |
| eos_token_id | 100001 | 2 | ×50000.50 |
| first_k_dense_replace | 1 | — | |
| initializer_range | 0.02 | 0.02 | ≈1 |
| moe_layer_freq | 1 | — | |
| norm_topk_prob | false | — | |
| pretraining_tp | 1 | 1 | ≈1 |
Architectures les plus proches
- DeepSeek LLM 7B (DeepSeek, 2023-11) 0.874
- DeepSeek-Coder 6.7B (DeepSeek, 2023-11) 0.873
- Qwen1.5 7B (Qwen, 2024-02) 0.872
- Qwen3.6 35B A3B (Qwen, 2026-04) 0.832
- Kimi Linear 48B A3B (Kimi, 2025-10) 0.831
- GPT-OSS 120B (OpenAI, 2025-08) 0.831
La similarité varie de 0 (aucune caractéristique catégorielle commune) à 1 (profils identiques).
Champs bruts du config.json
30 champs
| architectures | DeepseekForCausalLM |
|---|---|
| attention_bias | false |
| attention_dropout | 0 |
| bos_token_id | 100000 |
| eos_token_id | 100001 |
| first_k_dense_replace | 1 |
| hidden_act | silu |
| hidden_size | 2048 |
| initializer_range | 0.02 |
| intermediate_size | 10944 |
| max_position_embeddings | 4096 |
| model_type | deepseek |
| moe_intermediate_size | 1408 |
| moe_layer_freq | 1 |
| n_routed_experts | 64 |
| n_shared_experts | 2 |
| norm_topk_prob | false |
| num_attention_heads | 16 |
| num_experts_per_tok | 6 |
| num_hidden_layers | 28 |
| num_key_value_heads | 16 |
| pretraining_tp | 1 |
| rms_norm_eps | 0.000001 |
| rope_theta | 10000 |
| scoring_func | softmax |
| tie_word_embeddings | false |
| torch_dtype | bfloat16 |
| transformers_version | 4.36.0 |
| use_cache | true |
| vocab_size | 102400 |