Main Point
Sparse expert routing can reduce the parameter computation used for a token while retaining a much larger parameter collection. A deployment decision needs the complete weight/runtime arrangement and workload measurements.
Key Points
- A dense model uses relevant dense blocks; a sparse MoE selects expert blocks under its routing method.
- An expert is a computational component, not a verified human profession.
- A token’s selected experts can differ across positions and layers.
- Total parameters, active parameters and runtime memory answer different questions.
- Expert placement introduces communication and load-balancing considerations.
- Compare actual task quality and serving behavior rather than declaring a winner from parameter headlines.
1. Route an internal representation
In the supplied layer sketch, 8 feedforward experts are available. A router sends the current token representation to experts 2 and 6, whose transformed outputs are combined under the rule. Other tokens or layers can select different blocks. This numbered route is illustrative.
The router selects internal computation. Output-token decoding selects a vocabulary continuation later in the model. Keep these objects separate.
2. Inspect a historical architecture
The January 2024 Mixtral paper describes 2 of 8 feedforward experts selected per token at a layer, with their outputs combined. Its approximate reporting convention distinguishes 47 billion total parameters and 13 billion active parameters. Shared model components also contribute; the product name is not a parameter-count formula.
This historical architecture explains sparse computation. No benchmark ranking or speed guarantee is imported into the deployment exercise.
3. Calculate the complete raw-weight amount
Use this hypothetical model and precision:
| Quantity | Supplied count | At 2 bytes per parameter |
|---|---|---|
| Total parameter collection | 60 billion | 120 billion bytes = 120 GB decimal |
| Active parameter amount | 12 billion | 24 billion bytes = 24 GB decimal |
The active calculation accounts only for that selected amount. It is insufficient for storing the full model. These figures exclude cache, activations, buffers, metadata and other storage/runtime overhead. Quantization and alternative representations require their own accounting.
4. Make weights accessible
Unselected experts still belong to the model and may be selected by other tokens. A system can distribute them across devices or use a designed movement/offload arrangement. Both approaches have costs and constraints that require an actual deployment plan.
Add the temporary key/value state discussed in L12 and other runtime needs. Raw weights alone do not establish whether a particular batch/context fits a device or service.
5. Trace a workload bottleneck
Suppose device A hosts an expert receiving most tokens in a batch while device B’s expert receives little work. Tokens and expert results must move to the appropriate computation locations. Device A may become the bottleneck while B remains underused.
That is a supplied workload scenario. Measure communication, memory, throughput, latency and task quality under the actual batch and hardware configuration before comparing with a dense alternative. A reduced active count describes only part of the work.
6. Test meaningful specialization claims
The Mixtral paper’s limited routing analysis did not find obvious topic-based assignment patterns across its examined data subsets. A component’s number therefore supplies no evidence for calling it the biology or coding expert. Define a behavioral test before making such a specialization claim.
7. Closing
You can now separate token routing, active computation, retained weights and runtime workload. The next lesson examines additional work during answering, such as proposing and checking a result, rather than assuming all computation is summarized by an active-parameter headline.
8. Learning Checks
Attempt the questions before opening their explanations. The worksheet leaves the calculations and comparison record blank.
M14-L13-Q01
A hypothetical model has 60 billion total parameters and 12 billion active parameters, with 2 bytes per stored parameter. Calculate each parameter amount’s raw storage in decimal GB. Which is the whole-weight amount? What else is needed to decide whether a service fits?
Your calculation/explanation: ____________________
Show explanation after your attempt
All 60 billion parameters require 120 billion bytes, or 120 GB decimal, for raw weights at 2 bytes each. The 12-billion active amount corresponds to 24 GB; it does not account for the full weight collection. Inspect where all relevant weights reside or how they move, and add cache, activations, buffers and overhead. Distribution can spread storage across devices, but it requires a specified design and measurements.
M14-L13-P01
A batch routes most tokens to an expert on device A while device B receives little work. A colleague says the model’s lower active parameter count guarantees faster service than a dense alternative. Identify the possible bottleneck and propose a comparison that could test the claim.
Your calculation/explanation: ____________________
Show explanation after your attempt
Uneven routing can overload device A while device B remains underused. Expert transfers can also add communication cost. Compare task quality, memory, throughput and latency on specified hardware, batch settings and workload against the dense alternative. The active count alone does not determine the observed speed or service winner.
Sources
- Jiang, Albert Q., and colleagues, Mistral AI. *Mixtral of Experts*. Preprint v1, 8 January 2024. Primary paper, abstract, section 2.1 and Figure 1 for routing/count convention/expert parallelism; section 5 for the bounded routing analysis; metadata. Retrieved 30 October 2026. Historical architecture, not a current benchmark or serving guarantee. The 60-billion/12-billion memory example and device workload are supplied illustrations.