Mistral · 2023-09 · Dense
Mistral 7B
Mistral 7B is a grouped-query attention (GQA) transformer released by Mistral in 2023-09, with 32 layers, hidden size 4096 and a context window of 32,768 tokens.
Layer stack
Attention ×32 · Layers 32
Key facts
| Family | Mistral |
|---|---|
| Released | 2023-09 |
| Params | 7.24 B |
| Context | 32,768 tokens |
| Attention | GQA (32:8) |
| Layers | 32 |
| Hidden | 4,096 |
| Heads | 32 |
| Vocab | 32,000 |
| Position | RoPE |
| Norm | RMSNorm |
| Activation | silu |
| Dtype | — |
| Architecture class | MistralForCausalLM |
Architecture overview
Attention
grouped-query attention (GQA) — 32 q-heads / 8 kv-heads. RoPE θ=10,000.
Feed-forward / MoE
It is a dense model: all 7.24B parameters participate in computing every token.
Field-level comparison
Compared against the previous model of the same lab; where none exists, against the structurally closest model. The ratio column is this model divided by the comparison model.
Full-field comparison vs most-similar Hunyuan 7B
| Model | Mistral 7B | Hunyuan 7B | Ratio |
|---|---|---|---|
| model_type | mistral | hunyuan_v1_dense | ≠ |
| architectures | MistralForCausalLM | HunYuanDenseV1ForCausalLM | ≠ |
| 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 | 32000 | 128167 | ×0.250 |
| torch_dtype | bfloat16 | bfloat16 | = |
| bos_token_id | 1 | 1 | ≈1 |
| eos_token_id | 2 | 127960 | ×0.000 |
| initializer_range | 0.02 | 0.02 | ≈1 |
| tie_word_embeddings | false | true | ≠ |
| transformers_version | 4.34.0.dev0 | 4.41.2 | ≠ |
| use_cache | true | true | = |
Most similar architectures
- Hunyuan 7B (Hunyuan, 2025-08) 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.990
Similarity values range from 0 (no shared categorical features) to 1 (identical profiles).
Raw config fields
20 fields
| architectures | MistralForCausalLM |
|---|---|
| bos_token_id | 1 |
| eos_token_id | 2 |
| hidden_act | silu |
| hidden_size | 4096 |
| initializer_range | 0.02 |
| intermediate_size | 14336 |
| max_position_embeddings | 32768 |
| model_type | mistral |
| num_attention_heads | 32 |
| num_hidden_layers | 32 |
| num_key_value_heads | 8 |
| rms_norm_eps | 0.00001 |
| rope_theta | 10000 |
| sliding_window | 4096 |
| tie_word_embeddings | false |
| torch_dtype | bfloat16 |
| transformers_version | 4.34.0.dev0 |
| use_cache | true |
| vocab_size | 32000 |