In one line: First open-weights SMoE (8 experts, top-2, 13B active/47B total) to match Llama 2 70B and GPT-3.5 at 5x fewer active params, with experts specialising on syntax and position rather than domain; kicked off the open-MoE era.
How far to trust it: Believe the headline against Llama 2 70B: both were re-run on one pipeline and the wins on maths and code are large. Read "matches GPT-3.5" as a comparison with numbers copied from another report, "the speed of a 12.9B model" as true only at batch size 1 or very large batches, and the routing analysis as a small qualitative study with a baseline that assumes uniform expert use. The evidence, point by point.
The idea in one sentence: replace every feed-forward block of Mistral 7B with eight copies and a router that sends each token, at each layer, to its top two, so the model holds 46.7B parameters but each token computes with 12.9B; that bought Llama 2 70B and GPT-3.5 quality at 13B-class compute per token, while memory and mid-batch serving still pay for all 46.7B.
You need: what a sparse MoE layer is in general (routers, load balancing, capacity, expert parallelism), taught on Mixture of experts; and the memory-bound decode step and roofline from Performance math. This page keeps what Mixtral did and what its numbers show.
New terms
By late 2023 the open-weights quality frontier was Llama 2 70B: strong, but with 70B parameters touched for every token, so inference cost scaled with quality. Sparse mixture-of-experts (MoE) layers had long promised to decouple parameter count from per-token compute (Shazeer et al. 2017, GShard, Switch Transformers), but no open-weights MoE had reached state-of-the-art quality; MoE was mostly a Google-internal technique with a reputation for training instability and routing complexity.
The question: can a small, simple sparse MoE recipe (few large experts, top-2 routing, nothing exotic in the paper) deliver 70B-class quality at 13B-class compute, released fully open under Apache 2.0?
The paper's answer is Mixtral 8x7B, "the first mixture-of-experts network to reach a state-of-the-art performance among open-source models" (§6), with a fine-tuned chat model, Mixtral 8x7B Instruct, both under Apache 2.0 (§1). The weights came first: a bare magnet link posted on 8 December 2023, the release post on 11 December, the paper a month later on 8 January 2024. It is a 13-page technical report: no training data, token count, compute budget or training recipe is disclosed (the release-day Hugging Face post: "we have no information about the size of the dataset used for pretraining, its composition, or how it was preprocessed").
Mixtral "has the same architecture as Mistral 7B, with the difference that each layer is composed of 8 feedforward blocks (i.e. experts)" (abstract). Two changes from Mistral 7B: a "fully dense context length of 32k tokens", and every feed-forward (FFN) sub-block replaced by a Mixture-of-Experts layer (§2). The configuration is Table 1:
| dim | n_layers | head_dim | hidden_dim | n_heads | n_kv_heads | context_len | vocab_size | num_experts | top_k_experts |
|---|---|---|---|---|---|---|---|---|---|
| 4096 | 32 | 128 | 14336 | 32 | 8 | 32768 | 32000 | 8 | 2 |
Table 1. 32 query heads share 8 key-value heads (grouped-query attention, owned by Attention variants); each expert is a SwiGLU block of inner width 14,336, Mistral 7B's own FFN. Two differences visible only in the released config.json against Mistral 7B's: the sliding window is gone (sliding_window null against 4096), and the rotary base is 106 instead of 104. The paper mentions neither number.
Why "8x7B" is 47B, not 56B. Only the FFNs are copied eight times; attention, embeddings and norms are shared. Recounted from the configuration: total 46.7B; active per token, with 2 experts per layer instead of 8, 12.9B. That reproduces the abstract's 47B and 13B and the release post's 46.7B and 12.9B independently (recompute.py).The recount, term by term
The MoE layer's output is a weighted sum of expert outputs, the weights coming from a gating network (§2.1, Figure 1):
The generic machinery (one token through a router, top-k styles, load balancing, capacity, expert parallelism) is on Mixture of experts, whose 3D figures step recorded tokens through a router (its Fig. 1 and Fig. 3) and expert loads over training (Fig. 4), and a top-1 Switch layer trains live in the browser on the Switch Transformers page. What is specific to Mixtral is what top-2 of 8 large experts does to the cost of serving, and what its router learned; the next section and the Route text through a toy Mixtral tab take those in turn.
The paper's efficiency claim is careful: the comparison "focuses on the active parameter count, which is directly proportional to the inference compute cost, but does not consider the memory costs and hardware utilization. The memory costs for serving Mixtral are proportional to its sparse parameter count, 47B, which is still smaller than Llama 2 70B." Routing adds overhead, "due to the increased memory loads when running more than one expert per device", so MoE layers "are more suitable for batched workloads where one can reach a good degree of arithmetic intensity" (§3). The introduction puts it as "faster inference speed at low batch-sizes, and higher throughput at large batch-sizes" (§1). The release post goes further: "6x faster inference" than Llama 2 70B, and "it, therefore, processes input and generates output at the same speed and for the same cost as a 12.9B model" (post).
Both are about the same quantity. When a model generates text, each step produces one token for every sequence in the batch, and at small batches the step is limited by reading the weights from GPU memory, not by arithmetic (the roofline and arithmetic intensity are on Performance math). A dense model reads all its weights every step. Mixtral reads its shared weights, plus every expert that at least one token in the batch picked.
About 7.2. A token misses a given expert with probability 6/8, so all eight tokens miss it with probability (3/4)8 = 0.10, and the expected number of experts read is 8 × (1 − 0.758) = 7.2, assuming routing is spread evenly (the paper's Figure 7 shows it roughly is). At batch 1 it is 2; at batch 16 it is 7.9. The card beside steps through these batch sizes.
The card runs that decode step at growing batch sizes for three models on one scale (one layer drawn, block width proportional to parameters; counters for the whole model). Pick a model:
Parameter counts from the configurations (recompute.py); weights in bfloat16 (2 bytes). Which experts the drawn tokens pick is a seeded random draw; the counters use the expected value for uniform routing, 8 × (1 − (6/8)B) experts per layer. Time is an idealised roofline on two H100 SXM GPUs (2 × 3.35 TB/s, 2 × 989 dense bfloat16 TFLOP/s, NVIDIA): the larger of weight bytes ÷ bandwidth and FLOPs ÷ peak, ignoring the KV cache, attention arithmetic, communication and kernel efficiency, so real speeds are lower and the ratios are what to read. Mixtral needs two such GPUs anyway: 46.7B × 2 bytes = 93.4 GB.
What the model says, model by model:
The paper is right on both ends; the release post's unqualified "same speed and cost as a 12.9B model" is true only at the ends.
Two systems pieces made it servable at release (§2.1, §1): Megablocks kernels cast the expert FFNs as block-sparse matrix multiplications, "naturally handling cases where different experts get a variable number of tokens assigned to them" (no token dropping, no capacity factor), and Mistral upstreamed them into vLLM (pull request 2011, by co-author Pierre Stock, merged 11 December 2023); Skypilot deploys vLLM endpoints on any cloud instance. Across GPUs the layer shards by expert parallelism: tokens travel to the GPU holding their expert and back, so balancing load across GPUs becomes the operational concern ("EP introduces challenges in load balancing", §2.1; expert parallelism as a design is on Mixture of experts).
Mixtral is pretrained with multilingual data at a 32k context (§1). On the synthetic passkey retrieval task (a random passkey hidden in a long prompt) it achieves "100% retrieval accuracy regardless of the context length or the position of passkey in the sequence", and its perplexity on a subset of the proof-pile dataset "decreases monotonically as the size of the context increases" (§3.2, Figure 4), so the long context is used, not just tolerated. Both are figures without printed values, and passkey retrieval is the easiest long-context test there is. Beyond the paper, the harder RULER benchmark (13 tasks, 2024) later gave Mixtral base an effective length equal to its full claimed 32K: 91.8 at 4K falling to 85.8 at 32K, above its threshold of 79.4, and 66.9 at 64K, past the trained length (Appendix F).
Every Llama model was "re-run" with Mistral's own evaluation pipeline "for fair comparison" (§3), so Table 2 compares like with like, but its numbers are not those in the Llama 2 paper (the tables tab sets them side by side). Mixtral 8x7B against Llama 2 70B, with 12.9B active parameters against 69.0B (5.4x fewer, "5x" in the paper):
The headline: Llama 2 70B and GPT-3.5 quality with 5x fewer active parameters, fully open under Apache 2.0. Every table, sortable and with deltas, and Figure 3 rebuilt from Table 2, are in The paper's tables, rebuilt.
Supervised fine-tuning on an instruction dataset, followed by Direct Preference Optimization on a paired feedback dataset (§4; the method is on Alignment): no RLHF with PPO anywhere in the pipeline, an early large-scale validation of the SFT plus DPO recipe. Neither dataset nor any hyperparameter is described. It scores 8.30 on MT-Bench, "the best open-weights model as of December 2023". On the LMSys Chatbot Arena it reached an Elo of 1121 in a screenshot of 22 December 2023, above Claude-2.1 (1117), every GPT-3.5-Turbo version (best 1117), Gemini Pro (1111) and Llama-2-70b-chat (1077) (Figure 6): the best open-weights model at release by a large margin. A 4-point Elo gap means winning 50.6% of head-to-head votes instead of 50%; the 44 points over Llama-2-70b-chat mean 56.3% (Elo's 1 / (1 + 10−Δ/400)). The paper prints no confidence intervals.
Section 5, the most interesting part of the paper, asks whether "some experts specialized to some specific domains (e.g. mathematics, biology, philosophy, etc.)", by measuring which experts are selected on subsets of The Pile validation set at layers 0, 15 and 31 (the first, a middle and the last of 32):
No. "Surprisingly, we do not observe obvious patterns in the assignment of experts based on the topic": ArXiv (LaTeX), PubMed and PhilPapers have very similar expert distributions at all three layers; only DM Mathematics differs a little, at the first and last layers (Figure 7). In the toy below, which is not Mixtral, knowing the token predicts its first expert of the time and knowing the domain (averaged over the four layers, held-out text).
The 12.5% baseline assumes every expert is used equally; with each subset's actual first-choice use (decoded Figure 9), independent consecutive tokens would agree of the time at layer 15 and at layer 31, so the locality is real and large at layer 15 (10 to 15 points above that), smaller at layer 31, and for DM Mathematics at layer 31 almost entirely explained by uneven use (19.7% against 18.6%). Figure 10 has every layer: the first-choice repeat rate is near random only at layer 0, already about 20% at layer 1, peaks at layer 9 () and drifts down to about 20 to 25% in the last layers. Figure 10 is charted against the toy in the tables tab.
The toy, which is not Mixtral. Mixtral's router cannot run in a browser, and the paper released no routing data, so the Route text through a toy Mixtral tab repeats Section 5 on a 4-layer model built to Mixtral's recipe (every FFN an 8-expert top-2 SwiGLU layer, softmax over the two kept logits), trained for minutes on a laptop CPU on four domains standing in for Pile subsets (Python code, novels, Wikipedia articles, generated maths questions), then measured on held-out text. It adds two controls the paper did not run: a shuffled-order baseline and prediction from token against prediction from domain. In the toy:
The stage beside replays this on that toy and then sets Mixtral's own Table 5 next to the toy's. Its first four steps follow 20 consecutive held-out tokens of Python from the standard library, events.new_event_loop(), a newline, try:, and events.set_event_loop(loop), cut into the toy's tokens (· marks a leading space, ↵ a newline with its indentation).
Toy routing from analyse.py (the aux-loss variant, held-out windows); Mixtral's bars from Table 5, its slabs from Figure 9 decoded in recompute.py. The same toy text, every token tappable, is section 1 of the toy tab.
What holds up.
What is weaker.
Verdict. Believe the headline against Llama 2 70B: both were re-run on one pipeline and the wins on maths and code are large. Read "matches GPT-3.5" as a comparison with numbers copied from another report, "the speed of a 12.9B model" as true only at batch size 1 or very large batches, and the routing analysis as a small qualitative study with a baseline that assumes uniform expert use.
Mixtral was the first open-weights MoE at state-of-the-art quality, and it moved MoE from "exotic Google technique" to the default architecture for efficient frontier models. Qwen's MoE release three months later opens with "Since the surge in interest sparked by Mixtral, research on mixture-of-expert (MoE) models has gained significant momentum" (Qwen1.5-MoE), and Databricks defined DBRX against it: "Compared to other open MoE models like Mixtral and Grok-1, DBRX is fine-grained ... DBRX has 16 experts and chooses 4, while Mixtral and Grok-1 have 8 experts and choose 2" (DBRX). The open-MoE line runs on through DeepSeek-V2 and DeepSeek-V3, Llama 4, Qwen3 and gpt-oss (all compared on Topic: llm-landscape), all following the sparse-FFN template it popularised.
It validated three recipes at once: coarse-grained top-2 sparse MoE as a cost-performance win, SFT plus DPO as a complete post-training pipeline (no PPO), and open weights plus upstreamed inference kernels (vLLM with Megablocks) as a release strategy. Its routing analysis remains the standard citation for the finding that vanilla MoE experts do not specialise by domain. The move to fine-grained experts that followed was argued on similar grounds but not from this paper: DeepSeekMoE, posted three days later (11 January 2024) and not citing Mixtral, made its own case that a few large experts suffer "knowledge hybridity" and "knowledge redundancy", and introduced many small experts plus always-on shared experts to force specialisation (DeepSeekMoE); DBRX and Qwen cite DeepSeekMoE and their own experiments for it. The active against sparse parameter distinction the paper foregrounded is now the vocabulary everyone uses to price MoE inference.
Section 5 of the paper is the only part about what Mixtral's router learned, and it rests on one model nobody outside Mistral could probe in the browser. This tab repeats the section on a toy built to the paper's recipe and trained here, on held-out text it never saw, so every claim can be checked against a model whose routing you can inspect token by token. It is not Mixtral: 4 layers instead of 32, about parameters instead of 46.7B, four small domains instead of The Pile. Read it as a test of whether the paper's findings are what a top-2 router tends to learn, not as a measurement of Mixtral.
Try: pick a domain and a layer, then tap any token to see its two experts and their weights at every layer. In code, watch indentation and self; in maths, the words that open each question; then switch layers and see the colours re-sort. The paper's Figure 8 colours by first choice at layers 0, 15 and 31.
Try: step through the layers. If experts specialised by domain, each domain's bars would pile onto its own one or two experts; the dashed line is 1/8, uniform use. The table under the chart measures how far apart the domains are, against how far apart two halves of the same domain are (sampling noise).
Try: compare the measured repeat rate with the three baselines. The paper compares only against uniform random choice. Shuffled keeps every token's own routing but scrambles the order, so it removes position and keeps the fact that some experts are used more than others; different tokens only drops pairs where the same token appears twice in a row (two spaces, two newlines), which repeat their expert trivially.
A direct test of "syntax, not domain" that the paper does not run: guess each held-out token's first-choice expert from its token alone (the expert that token most often got), from its domain alone, or from nothing (the most used expert). The guesses are fitted on half the held-out windows and scored on the other half.
Every table of the paper transcribed from the arXiv HTML with the printed precision (229 cells, each checked against the paper's text by check_tables.py), plus the numbers the page derives from them in recompute.py.
Each count sums embedding and output head, attention (query, key, value, output projections with grouped-query attention), the SwiGLU FFN or experts (3 × width × inner width each), the router and the norms, from each model's released config.json. Defaults reproduce the paper's 47B and 13B and the release post's 46.7B and 12.9B independently.
Try: pick a reference model; every other cell shows its difference from that row (green ahead, orange behind). Click a column header to sort by it.
Table 2. Shots: MMLU 5; HellaSwag, WinoGrande, PIQA, ARC 0; NaturalQuestions and TriviaQA 5 (no Wikipedia context); HumanEval 0; MBPP 3 (hand-verified subset); MATH 4 with maj@4; GSM8K 8 with maj@8 (§3). "LLaMA 1 33B" is printed as 33B in the table and called "Llama 1 34B" in the footnote.
Try: step through the benchmarks. The line joins Llama 2 7B, 13B and 70B; the question is how far above it Mistral 7B and Mixtral sit.
The paper's Figure 3 groups benchmarks into categories that include tasks not printed in Table 2 (SIQA, OpenBookQA, CommonsenseQA, BoolQ, QuAC, BBH, AGI Eval), so the categories cannot be rebuilt; this chart shows Table 2's twelve benchmarks one at a time instead. Active parameters as the paper prints them (Mixtral 13B).
Mistral re-ran every Llama model. Where the Llama 2 paper prints the same benchmark, the two numbers for Llama 2 70B differ, sometimes by a lot, which is why only comparisons inside one table are fair.
Llama 2 paper (arXiv 2307.09288): MMLU and GSM8K from Table 4, the commonsense set from Table 20, NaturalQuestions and TriviaQA (5-shot, TriviaQA on the Wiki validation subset) from Table 22, code from Table 21. The paper names two protocol differences itself: MBPP on the hand-verified subset, TriviaQA without Wikipedia contexts (§3); GSM8K differs because this paper reports maj@8.
Table 3. The GPT-3.5 provenance column is ours: five values match the GPT-3.5 column of the GPT-4 technical report's Table 2 (March 2023) exactly; MBPP's source is not given in either report; MT-Bench is gpt-3.5-turbo-1106 per §3.
Table 4. Difference row: Mixtral minus Llama 2 70B, in points.
The paper prints no numbers for its routing figures, but they are vector graphics in the arXiv HTML: every bar is a path with exact coordinates and every tick label is a glyph carrying its character, so decode_figs.py turns them into numbers by fitting each panel's gridlines to its labels. Checks: each subset's eight shares sum to 1.000 in every panel, and Figure 10 decoded at layers 0, 15 and 31 matches Table 5's printed values within points.
Mixtral: Figure 10 decoded, eight Pile subsets at all 32 layers (Table 5 prints layers 0, 15 and 31). Toy: the four held-out domains at its layers 0 to 3 (aux loss 0.02), with its shuffled-order baseline; the toy's layers are placed at the same relative depth. Dashed: the paper's uniform random baselines, 1/8 and 1 − (6/8)(5/7) = 46.4%. The same Mixtral numbers are charted on the Mistral AI page.
Figure 6, LMSys leaderboard on 22 December 2023. Expected share of votes Mixtral 8x7B Instruct wins against each model under the Elo model, 1 / (1 + 10−(1121 − R)/400). The screenshot's confidence intervals are not printed.
Every link opens in a new tab. Reading time of the resources below: 3h 40m.
arXiv preprint (technical report), the paper itself (13 pages, 6 sections and two appendix figures); the HTML version has the anchors this page links to. abstract page, PDF.
(45 min)
the reference inference code linked from the paper (repo, about 20 minutes for the README and entry path); it now redirects to mistral-inference, Apache 2.0, archived.
(20 min)
Hugging Face blog: the canonical MoE explainer, written for the Mixtral release; covers routing, load balancing, expert parallelism, and MoE fine-tuning gotchas (instability, router sensitivity) directly relevant to anyone tuning these models.
(30 min)
Maarten Grootendorst: the best diagrams of the router, top-K gating, and capacity concepts; ends with a Mixtral walkthrough.
(30 min)
Cameron R. Wolfe: traces the lineage from sparsely-gated MoE and Switch through Mixtral to modern fine-grained designs, with the math for sparse vs active parameter counts.
(40 min)
Mistral AI, 11 December 2023: concise statement of the cost-performance claim and the serving story (vLLM + Megablocks, Skypilot deployment); the paper's webpage link, and the source of the "6x faster inference" and "same speed as a 12.9B model" claims this page tests.
(10 min)
Hugging Face blog, 11 December 2023: release-day guide: what is unknown (pretraining data, fine-tuning data and hyperparameters), memory needed at each precision (over 90 GB in float16, over 23 GB in 4-bit), inference and fine-tuning code.
(15 min)
Eliseev and Mazur, December 2023: the paper's reference [11]: runs Mixtral on consumer GPUs by caching recently used experts, the use of temporal locality that Section 5 points to; code at github.com/dvmazur/mixtral-offloading.
(30 min)
2021: the top-1 MoE predecessor, with a Switch layer you can train live; Mixtral's top-2, every-layer, no-fuss variant is what finally made the idea land in open weights.
2024: the next generation of open MoE; fine-grained experts, shared experts and auxiliary-loss-free balancing, a different answer to the coarse-expert regime documented here.
2023: Mixtral Instruct was among the first flagship models aligned with SFT plus DPO only.
2023: Mistral upstreamed Megablocks-based MoE kernels into vLLM to make the model servable at release.
2017: the Transformer whose feed-forward sub-block the MoE layer replaces.
2025: an open MoE family two years on (128 experts, 8 active), the fine-grained design that replaced eight big experts.
the memory side of training MoE models: total parameters set the bill, which Mixtral's 47B against 13B makes concrete.
the generic MoE layer: router, top-k styles, load balancing, capacity, expert parallelism, decode arithmetic.
the lab page: Mixtral's block animated against Mistral 7B and Small 4 at one scale, Table 5 charted, and where Mistral went next.
SFT and DPO, expert parallelism and distributed training.
serving MoE models: batching, expert parallelism, offloading.
This page is one row of the Papers database; its properties (Paper, Takeaway, Topics, Year) live there.