Mixture of experts (MoE)
Definition
A model architecture that routes each token through a few specialised sub-networks, so only part of the model runs per token.
In more detail
MoE models can have a very large total parameter count while keeping inference cost closer to that of a smaller model. All experts still have to fit in memory, which matters for running them locally.
A router inside each MoE layer picks a small number of experts for each token. Mixtral 8x7B, for example, uses two of eight experts per token, so only part of the model runs at each step. The result is a model with the knowledge capacity of a large one and the per-token compute of a smaller one, but the memory footprint of the full parameter count.
Related terms
Inference
Running a trained model to produce outputs, as opposed to training it. Inference cost and speed decide what an AI feature costs to run.
Transformer
The neural network architecture, built on attention, that underlies most current language models. Google researchers introduced it in 2017.
Model parameters
The numbers learned in training that determine what a model outputs; a model's size is usually quoted as how many of them it has.
Read more about Mixture of experts (MoE)
- Local models
Running open-weight models on your own hardware for privacy, cost or offline use.
- Inference
Running a trained model to produce outputs, as opposed to training it. Inference cost and speed decide what an AI feature costs to run.
- Open-weight model
A model whose trained weights are published for download, whatever the licence terms on their use. Training data and code may stay private.