Mixtral (Mixtral 8x7B) is a language model that uses the same decoder as Mistral 7B but replaces the feed-forward block in every layer with a mixture-of-experts (MoE) layer that "picks 2 of 8 experts". Jiang et al. at Mistral AI introduced it in 2024 in the paper "Mixtral of Experts" and released it under the Apache 2.0 license.
Language models tend to improve as they get more parameters, but the compute needed to process each token grows as well. Sparsely-Gated MoE prepares many "experts" (small networks) and uses only some of them for each input, so parameters can grow with almost no increase in compute. Mixtral applies this idea to Mistral 7B.
The key points of Mixtral are as follows (paper abstract and Section 1).
- In every layer and for every token, a router picks 2 of 8 experts and sums their outputs with weights.
- The model has 47 billion (47B) parameters in total, but uses only 13 billion (13B) to process each token.
- The context is 32,768 tokens (32k), and the training data includes a larger share of multilingual text.
- On every benchmark evaluated, it outperforms or matches Llama 2 70B and GPT-3.5. It beats Llama 2 70B by a wide margin in mathematics, code, and multilingual tasks.
Mixtral 8x7B Instruct, fine-tuned to follow instructions, outperformed GPT-3.5 Turbo, Claude-2.1, Gemini Pro, and Llama 2 70B Chat in human preference evaluations.

