LLM Library
Mixture of expertsOpen weightsArchitecture animation
Mixtral 8x7B
An early popular open mixture-of-experts model: 8 experts, 2 used per token.
At a glance
- Made by
- Mistral AI
- Released
- 2023
- Type
- Mixture of experts
- Access
- Open weights
- Parameters
- 46.7B
- Active per token
- about 12.9B
- Context window
- 32,768 tokens
- Attention
- Grouped-query attention
How it works
Each layer has 8 expert feed-forward networks and a router that picks 2 for every token. Total size is about 47B but only about 13B parameters run per token, so it is fast for its quality.
Architecture, step by step
A token travels from text in to prediction out. The boxed layers repeat many times.
Raw text enters the system, for example "The cat sat on the".
- stage:
- 1/13
- part:
- Text in
1/13
The green dot is one token travelling through the model. The boxed section repeats for every layer.
What stands out
- 8 experts, top-2 routing
- Large saving in compute per token
- Apache 2.0 licence
Keep in mind
All experts must still be held in memory.