Hunyuan · 2026-08 · MoE épars
Hunyuan 4 Preview
Hunyuan 4 Preview est un Transformer à attention latente multi-tête (MLA) publié par Hunyuan en 2026-08, avec 78 couches, une dimension cachée de 6144 et une fenêtre de contexte de 1,048,576 tokens.
Pile de couches
Faits clés
| Laboratoire | Hunyuan |
|---|---|
| Publication | 2026-08 |
| Paramètres | 770 Md |
| Actifs | 49 Md |
| Contexte | 1,048,576 tokens |
| Attention | MLA · kv_lora_rank 512 |
| Couches | 78 |
| Dimension cachée | 6,144 |
| Têtes d'attention | 64 |
| Vocabulaire | 120,832 |
| Encodage positionnel | learned/absolute |
| Normalisation | RMSNorm |
| Activation | silu |
| Précision | fp8 |
| Classe d'architecture | HYV4ForCausalLM |
Vue d'ensemble de l'architecture
Attention
attention latente multi-tête (MLA). kv_lora_rank=512.
FFN / MoE
C’est un mélange d’experts épars : 256 experts routés avec routage top-8 ; environ 49Md de paramètres sont actifs par token.
La configuration embarque 1 couches supplémentaires de prédiction multi-tokens (MTP) servant à accélérer le décodage.
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 Hunyuan 3
| Modèle | Hunyuan 4 Preview | Hunyuan 3 | Ratio |
|---|---|---|---|
| model_type | hy_v4 | hy_v3 | ≠ |
| architectures | HYV4ForCausalLM | HYV3ForCausalLM | ≠ |
| hidden_size | 6144 | 4096 | ×1.50 |
| num_hidden_layers | 78 | 80 | ×0.975 |
| num_attention_heads | 64 | 64 | ≈1 |
| num_key_value_heads | 8 | 8 | ≈1 |
| head_dim | 64 | 128 | ×0.500 |
| intermediate_size | 18432 | 13312 | ×1.38 |
| hidden_act | silu | silu | = |
| n_routed_experts | 256 | — | |
| num_experts_per_tok | 8 | 8 | ≈1 |
| n_shared_experts | 1 | — | |
| moe_intermediate_size | 2048 | 1536 | ×1.33 |
| kv_lora_rank | 512 | — | |
| qk_rope_head_dim | 64 | — | |
| q_lora_rank | 2048 | — | |
| max_position_embeddings | 1048576 | 262144 | ×4.00 |
| rms_norm_eps | 0.00001 | 0.00001 | ≈1 |
| vocab_size | 120832 | 120832 | ≈1 |
| torch_dtype | bfloat16 | — | |
| num_nextn_predict_layers | 1 | 1 | ≈1 |
| attention_bias | false | — | |
| attention_dropout | 0 | — | |
| bitwise_backward_align | false | — | |
| bos_token_id | 120000 | 120000 | ≈1 |
| dtype | bfloat16 | bfloat16 | = |
Architectures les plus proches
- GLM-5.2 (GLM, 2026-06) 1.000
- GLM-5.3 (GLM, 2026-08) 1.000
- GLM-5 (GLM, 2026-02) 0.999
- GLM-5.1 (GLM, 2026-04) 0.999
- GLM-5.3-Flash (GLM, 2026-08) 0.994
- Kimi K2 0905 (Kimi, 2025-09) 0.938
La similarité varie de 0 (aucune caractéristique catégorielle commune) à 1 (profils identiques).
Champs bruts du config.json
58 champs
| architectures | HYV4ForCausalLM |
|---|---|
| attention_bias | false |
| attention_dropout | 0 |
| bitwise_backward_align | false |
| bos_token_id | 120000 |
| dtype | bfloat16 |
| enable_ihc | true |
| enable_lm_head_fp32 | true |
| eos_token_id | 120025 |
| gated_mla | true |
| gating_type | elementwise |
| hc_eps | 0.000001 |
| hc_magnitude | 2 |
| hc_mult | 4 |
| head_dim | 64 |
| hidden_act | silu |
| hidden_size | 6144 |
| index_head_dim | 128 |
| index_n_heads | 32 |
| index_topk | 2048 |
| indexer_types | full×21 + shared×57 |
| initializer_range | 0.006 |
| intermediate_size | 18432 |
| kv_lora_rank | 512 |
| layer_types | deepseek_sparse_attention×78 |
| learnable_sink | true |
| learnable_sink_init | 0 |
| max_position_embeddings | 1048576 |
| mlp_layer_types | dense×1 + sparse×77 |
| model_type | hy_v4 |
| moe_intermediate_size | 2048 |
| mtp_loss_factor | 0.1 |
| n_group | 1 |
| n_routed_experts | 256 |
| n_shared_experts | 1 |
| norm_topk_prob | true |
| num_attention_heads | 64 |
| num_experts_per_tok | 8 |
| num_hidden_layers | 78 |
| num_key_value_heads | 8 |
| num_nextn_predict_layers | 1 |
| pad_token_id | 120002 |
| q_lora_rank | 2048 |
| qk_head_dim | 256 |
| qk_nope_head_dim | 192 |
| qk_rope_head_dim | 64 |
| rms_norm_eps | 0.00001 |
| routed_scaling_factor | 2.827 |
| swiglu_limit | 10 |
| tie_word_embeddings | false |
| topk_group | 1 |
| transformers_version | 5.16.2 |
| use_cache | true |
| use_dsa | true |
| use_mla | true |
| v_head_dim | 256 |
| vocab_size | 120832 |
| torch_dtype | bfloat16 |