Hunyuan · 2025-08 · Dense · Multimodal
Hunyuan 7B
Hunyuan 7B est un Transformer à attention groupée (GQA) publié par Hunyuan en 2025-08, avec 32 couches, une dimension cachée de 4096 et une fenêtre de contexte de 32,768 tokens.
Pile de couches
Attention ×32 · Couches 32
Faits clés
| Laboratoire | Hunyuan |
|---|---|
| Publication | 2025-08 |
| Paramètres | 7.8 Md |
| Contexte | 32,768 tokens |
| Attention | GQA (32:8) |
| Couches | 32 |
| Dimension cachée | 4,096 |
| Têtes d'attention | 32 |
| Vocabulaire | 128,167 |
| Encodage positionnel | RoPE |
| Normalisation | RMSNorm |
| Activation | silu |
| Précision | bf16 |
| Classe d'architecture | HunYuanDenseV1ForCausalLM |
Vue d'ensemble de l'architecture
Attention
attention groupée (GQA) — 32 q-heads / 8 kv-heads. RoPE θ=10,000.
FFN / MoE
C’est un modèle dense : la totalité des 7.8Md de paramètres participe au calcul de chaque 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 plus proche, Mistral 7B
| Modèle | Hunyuan 7B | Mistral 7B | Ratio |
|---|---|---|---|
| model_type | hunyuan_v1_dense | mistral | ≠ |
| architectures | HunYuanDenseV1ForCausalLM | MistralForCausalLM | ≠ |
| hidden_size | 4096 | 4096 | ≈1 |
| num_hidden_layers | 32 | 32 | ≈1 |
| num_attention_heads | 32 | 32 | ≈1 |
| num_key_value_heads | 8 | 8 | ≈1 |
| head_dim | 128 | — | |
| intermediate_size | 14336 | 14336 | ≈1 |
| hidden_act | silu | silu | = |
| rope_theta | 10000 | 10000 | ≈1 |
| max_position_embeddings | 32768 | 32768 | ≈1 |
| sliding_window | — | 4096 | |
| rms_norm_eps | 0.00001 | 0.00001 | ≈1 |
| vocab_size | 128167 | 32000 | ×4.01 |
| torch_dtype | bfloat16 | bfloat16 | = |
| add_classification_head | false | — | |
| attention_bias | false | — | |
| attention_dropout | 0.1 | — | |
| attention_head_dim | 128 | — | |
| bos_token_id | 1 | 1 | ≈1 |
| cla_share_factor | 2 | — | |
| class_num | 0 | — | |
| dense_list | 4096×1 + 0×1 | — | |
| eod_token_id | 127967 | — | |
| eos_token_id | 127960 | 2 | ×63980.00 |
| im_end_id | 5 | — |
Architectures les plus proches
- Mistral 7B (Mistral, 2023-09) 1.000
- Qwen3 8B (Qwen, 2025-04) 1.000
- Qwen2.5 7B (Qwen, 2024-09) 1.000
- Llama 3.1 8B (Meta, 2024-07) 0.999
- Hunyuan-TurboS 7B (Hunyuan, 2026-05) 0.998
- Qwen3 32B (Qwen, 2025-04) 0.991
La similarité varie de 0 (aucune caractéristique catégorielle commune) à 1 (profils identiques).
Champs bruts du config.json
45 champs
| add_classification_head | false |
|---|---|
| architectures | HunYuanDenseV1ForCausalLM |
| attention_bias | false |
| attention_dropout | 0.1 |
| attention_head_dim | 128 |
| bos_token_id | 1 |
| cla_share_factor | 2 |
| class_num | 0 |
| dense_list | 4096×1 + 0×1 |
| eod_token_id | 127967 |
| eos_token_id | 127960 |
| head_dim | 128 |
| hidden_act | silu |
| hidden_size | 4096 |
| im_end_id | 5 |
| im_newline_id | 11 |
| im_start_id | 4 |
| initializer_range | 0.02 |
| intermediate_size | 14336 |
| mask_init_id | 12 |
| max_position_embeddings | 32768 |
| mlp_bias | false |
| model_type | hunyuan_v1_dense |
| norm_type | rms |
| num_attention_heads | 32 |
| num_hidden_layers | 32 |
| num_key_value_heads | 8 |
| org_vocab_size | 128167 |
| pad_id | 127961 |
| pad_token_id | 127961 |
| pool_type | last |
| pretraining_tp | 1 |
| rms_norm_eps | 0.00001 |
| rope_theta | 10000 |
| sep_token_id | 127962 |
| text_end_id | 7 |
| text_start_id | 6 |
| tie_word_embeddings | true |
| torch_dtype | bfloat16 |
| transformers_version | 4.41.2 |
| use_cache | true |
| use_cla | false |
| use_qk_norm | true |
| use_rotary_pos_emb | true |
| vocab_size | 128167 |