# MoE Inference Engineering Explained: From Token Routing to Expert Parallelism

> This in-depth guide breaks down the core mechanisms of Mixture of Experts (MoE) inference engines. It covers token routing, expert parallelism, grouped GEMM, cross-GPU weight distribution, load balancing, memory optimization, and the key performance trade-offs in production MoE systems.

- Source: https://www.waytoagi.com/en/kb/learning-path/moe-inference-engineering
- Original (Feishu, Chinese): https://waytoagi.feishu.cn/wiki/BbB6wj9Vyik2AbktTkccEG2RnDg
- Updated: 2026-10-23

---

**MoE Inference Engineering, Clearly Explained**

> 🔗 Original link: [MoE inference engineering, clearly explained](https://x.com/_avichawla/status/2100876555409039605)

> Avi Chawla · X · @_avichawla · 2026-09-18 17:16

> 📌 This article is reposted. All rights belong to the original author. Please refer to the original link for the full text.

![](https://www.waytoagi.com/api/kb-media/BYY9bobipoQjcFx1vtscWachngd)

Everything you need to know about how MoE serving engines route tokens, batch expert computation, distribute weights across GPUs, and manage communication and load imbalance. Covers expert parallelism, grouped GEMM, topology-aware placement, memory requirements, inference optimizations, and the trade-offs that determine latency and throughput.

---

Dense Transformers apply the same feed-forward network to every token. Batching changes the dimensions of the input matrix but does not change which weights are executed.

MoE layers replace that feed-forward network with multiple experts. A router scores each token against these experts. Only the selected experts execute on that token.

This reduces the amount of expert computation performed per token. However, it does not determine in advance which weights the next token will need, so the serving system must be prepared for every possible expert.

The Qwen3-30B-A3B model card reports 30.5 billion total parameters and 3.3 billion activated parameters. Each token selects 8 experts out of 128 routing experts.

The server must still serve the full model. It needs attention weights, embeddings, expert weights, temporary buffers, and a continuously growing key-value cache. The 3.3 billion figure roughly describes active computation. It does not describe deployment memory footprint or expert weights alone.

![](https://www.waytoagi.com/api/kb-media/SzZWbar8voN0jYxE8uZc0Ricnah)

> Activated parameters estimate the execution path of a single token. Resident parameters determine the weight memory required for deployment.

In this article, we will follow a single token through the MoE serving path. We will examine how the router selects experts, how the runtime groups tokens into expert batches, how local kernels execute them, and how activations move between GPUs.

We will then cover expert placement, load imbalance, capacity constraints, quantization, and profiling techniques that reveal whether compute, memory bandwidth, or interconnect traffic is the performance bottleneck.

---

## MoE Layer Structure and Token Routing

A Transformer layer applies attention before computing the feed-forward pass. Attention mixes information across token positions. The feed-forward network then transforms each token position independently.

An MoE layer replaces the single dense feed-forward network with multiple experts. Each expert is an independent feed-forward network.

Attention still processes every token. The router only controls the expert branch. Therefore, sparse expert activation does not make the attention path sparse.

![](https://www.waytoagi.com/api/kb-media/XsoibIlyQocieIx3PwRcTmFUn76)

Consider a toy layer with four experts. Its router scores each token vector against every expert. The layer selects the two highest-scoring experts.

These two experts independently process the same token vector. The layer then combines their outputs. Model-specific routing weights determine each expert’s contribution.

The weighted expert output can be written as follows:

![](https://www.waytoagi.com/api/kb-media/IQC5bLwa7ogVbJx84fQcEpt7nSc)

Where:

- x is the input vector of the token.
- S(x) is the set of selected experts for that token.
- E_e is expert e, and w_e(x) is its routing weight.
- The output vector is y.

The summation only covers the selected experts. Each expert transforms the same input vector. Its routing weight scales that expert’s contribution before the addition.

The router selects several expert functions. The layer weights and sums their outputs. Different architectures use different normalization rules for these weights.

![](https://www.waytoagi.com/api/kb-media/C6pIbKRoko9krPxvX0Echj7Bngg)

> Token-to-expert routing happens inside each MoE layer. This is different from application-level model routing, which selects one LLM for an entire request.

The toy layer uses top-two routing for readability. Qwen3-30B-A3B selects 8 experts per token out of 128. Its model card also reports 48 layers.

Some architectures include shared experts. These experts process every token regardless of the router’s scores. DeepSeekMoE uses shared experts in addition to routing experts for isolation.

Shared experts execute for every token. Routing experts execute conditionally. Only models explicitly designed with shared experts use this split.

> Do not assume every model has shared experts. Always check its architecture and serving implementation.

The router changes the feed-forward computation inside each MoE layer. Batched inference must then schedule token-to-expert assignments that have different target experts and matrix sizes.

---

**How Batches Become Expert-Specific Matrices**

The router makes a decision for each token. However, GPUs cannot efficiently run tiny expert operations one at a time. The serving engine therefore converts routing decisions into larger expert-specific matrices.

Consider four tokens entering a four-expert layer using top-two routing. The router makes the following choices:

- T1 selects E1 with weight 0.7 and E3 with weight 0.3.
- T2 selects E1 with weight 0.4 and E3 with weight 0.6.
- T3 selects E1 with weight 0.7 and E2 with weight 0.3.
- T4 selects E2 with weight 0.8 and E4 with weight 0.2.

At runtime there are now eight assignments instead of four. Each assignment carries three pieces of information: the token vector, the selected expert, and the routing weight.

![](https://www.waytoagi.com/api/kb-media/GFiAbOiPnoPMdwxGDoGcBLyznHT)

The runtime groups these assignments by expert. E1 receives T1, T2, and T3. E2 receives T3 and T4. E3 receives T1 and T2. E4 receives T4. These groups become matrices with three, two, two, and one rows respectively.

Each expert processes its own matrix. The runtime keeps the original token ID next to each row. This ID tells it where each result must be returned.

- T1 receives one result from E1 and another from E3.
- The runtime multiplies them by 0.7 and 0.3 respectively.
- It then adds the two contributions together to obtain the final expert output for T1.
- The same merging step is applied to every token.

This grouping step is called **dispatch**. The step that returns the results is called **combine**. Both operations occur on a single GPU. When multiple GPUs are used, network transfers are added between them.

> Expert batch statistics count the number of assignments, not the number of distinct source tokens. With top-two routing, each token contributes two rows to the expert matrices.

The prefill phase processes a large number of prompt tokens at once. As a result, experts can receive matrices with many rows. Larger matrices generally utilize the GPU more efficiently.

In the decode phase, one new token is added for each active request. At low concurrency, an expert may receive only one or two rows. Launching a matrix kernel for such a small amount of work wastes GPU capacity.

Higher concurrency produces more assignments at each step. Grouped General Matrix Multiplication (grouped GEMM) runs multiple expert matrices in a single kernel launch. It reduces launch overhead even when the row counts differ.

Some engines pad expert matrices to a fixed size. Fixed shapes make kernel scheduling easier, at the cost of computing on padding rows that contain no tokens.

![](https://www.waytoagi.com/api/kb-media/Q9GWbpXljoVaeaxjL3ncWXoEnik)

Prefill and decode do not have fixed performance characteristics. Prompt length and request count change the size of their expert matrices. Hidden width and hardware determine how efficiently these matrices run.

![](https://www.waytoagi.com/api/kb-media/QlqtbyXlNodg1BxCcCzcWlOgnUc)

> Grouped GEMM packs existing expert work into fewer kernel launches. It cannot create work for experts that receive no tokens.

In summary, routing produces assignments. Dispatch groups them into expert matrices. Combine returns the results to the original tokens. The next section will track how these matrices flow on a single GPU.

## Local MoE Execution Pipeline

The MoE layer does more than just expert matrix multiplication. In fact, it must select experts, permute token rows, execute expert computations, and restore the original token order. Each stage can consume significant time.

The router first generates a score for every eligible expert. A top-k operation then retains the selected expert indices and their corresponding weights. The runtime subsequently permutes the token rows so that each expert receives a contiguous matrix.

This permutation step reads token vectors and writes them in expert order. It also records the inverse mapping used in the combine step. With small decode batches, the time spent moving rows can be comparable to the time spent on multiplication itself.

Grouped GEMM executes multiple expert matrices in a single kernel launch. These matrices may have different numbers of rows. Grouping reduces the number of kernel launches without changing their content.

The experts then apply their activation functions and output projections. The runtime uses the inverse mapping to restore the original token order. It applies the routing weights and accumulates contributions from matching token IDs.

![](https://www.waytoagi.com/api/kb-media/WISLbW1gMoY9jkxQsYhcLVL6nmc)

> Grouped GEMM does not change the number of allocations. It executes the existing expert batches with fewer kernel launches.

Kernel fusion combines operations that would otherwise be launched separately. A fused path may avoid writing intermediate activation values to GPU memory. As a result, it can reduce both launch overhead and memory traffic.

Fusion support is conditional. A single kernel may only support certain data types, batch shapes, or quantization formats. Unsupported combinations must fall back to a more modular execution path.

Activation quantization introduces another tradeoff. The runtime can quantize before dispatching and send fewer bytes, or dispatch at higher precision and quantize before the expert computation. The first option saves bandwidth but adds conversion work earlier in the pipeline.

![](https://www.waytoagi.com/api/kb-media/Ob19bXRbTo42kJxgDykc74sOn9b)

The decode phase typically gives each expert a small matrix. Weight loading, row movement, and kernel launches can dominate. Prefill usually provides more rows, making matrix efficiency more important.

The fused path eliminates supported boundaries between operations. It does not increase expert batch sizes, nor does it change the router’s selections or the number of allocations.

Measure routing, permutation, expert GEMM, and combine times separately. A single combined MoE timer cannot identify which stage is slow.

In summary, expert GEMM is only one part of local execution. Small batches often expose the costs of data movement and kernel launches.

**Model Weight Residency and Runtime Memory**

MoE deployments involve three distinct parameter counts. Total parameters describe the checkpoint. Active parameters describe the execution path of a single token. Resident parameters describe the weights currently available to the serving system.

These numbers do not need to be the same. One token touches a small subset of experts. The next token can select an entirely different subset.

A fully resident deployment keeps every possible expert on its GPU. It also stores the attention, embedding, normalization, and output weights. Sparse routing does not remove any of these weights.

Storing Qwen3-30B-A3B’s 30.5 billion parameters at 2 bytes per parameter requires approximately 61 GB (or 56.8 GiB) for weights alone.

The following expression gives the lower bound for weight storage.

![](https://www.waytoagi.com/api/kb-media/HwgFb6gjno21bHx9BBTcI7Jrnse)

- B (weights) is the number of bytes used to store the weights.
- P is the total number of parameters.
- B (stored) is the number of bytes used per stored parameter.

This expression multiplies the parameter count by the bytes per parameter. For Qwen’s numbers, this yields 61 billion bytes. A decimal gigabyte divides this number by one billion. The result covers only the weights.

Deployment also requires temporary activation values and communication buffers. The memory allocator reserves additional space. The key-value cache stores attention state for active sequences. None of these are included in the 61 GB estimate.

![](https://www.waytoagi.com/api/kb-media/IsiIbuliCoiuUCxwvtFcrErmnHc)

> In this estimation, never replace 30.5 billion with 3.3 billion. Active parameters do not determine the number of weight bytes stored in the checkpoint.

Weight quantization stores each parameter in fewer bytes. Sharding distributes weights across multiple GPUs. Neither changes the number of parameters contained in the checkpoint.

Sparse activation reduces the amount of expert computation but does not reduce total weight storage. Even with moderate active FLOPs, the model may still require weight sharding.

Expert offloading keeps some experts in CPU memory. When routing selects an expert, the runtime transfers it to the GPU. This saves GPU memory but introduces a slower transfer path.

Missing experts block decoding while their weights are being moved. Caching helps when the same experts are reused. Prefetching only helps when future selections are predictable.

![](https://www.waytoagi.com/api/kb-media/ZCgJb8R7loLSpVxjQLecPH2nn5d)

> These numbers do not imply a fixed number of GPUs. Precision, sharding, reserved memory, and KV capacity will all change the answer.

In summary, active parameters estimate compute load, while resident parameters determine weight memory. Sharding solves capacity issues by spreading weights across devices, but routed activation may still require cross-GPU transfers.

**Expert-parallel dispatch and combine**

Expert parallelism assigns different experts to different GPUs. Consider a case with four experts across two GPUs. GPU A holds E1 and E2. GPU B holds E3 and E4.

A token starts on GPU A and selects E1 and E3. Its assignment to E1 stays on GPU A. Its assignment to E3 must be transferred to GPU B.

The network packet contains the token vector and routing metadata. The metadata identifies the token, target expert, source GPU, and routing weight. The receiving side needs these fields to correctly return the result.

Each GPU groups its local and received assignments by expert. It performs a matrix operation for each active local expert. Remote results are then sent back to their source GPU.

The source GPU restores the original token order using the saved identifiers. It applies each routing weight and accumulates the matching contributions. This completes the combine step.

![](https://www.waytoagi.com/api/kb-media/SBNCbUfv9oof5UxGXR2crtHQnPh)

With many GPUs, each GPU may send assignments to multiple peer GPUs. This creates an all-to-all communication pattern. After computation, the combine operation sends the expert results back.

Expert weights usually remain on their assigned GPUs. The network only moves token activations and metadata, not expert weights. Padding and temporary buffers increase the number of bytes transferred.

The following upper-bound estimate shows the dispatch activation load.

![](https://www.waytoagi.com/api/kb-media/WoplboSijoStDExbVV3cxGEYnMS)

- B (dispatch) is the dispatched activation load.
- T is the number of tokens entering the MoE layer.
- K is the number of experts chosen per token.
- H is the hidden dimension.
- Finally, b is the number of bytes per activation value.

The product counts one full hidden vector per assignment. This is an upper bound before considering locality. Assignments that remain on the same GPU do not consume network bandwidth.

Actual traffic depends on how many assignments are remote. Metadata and padding further increase byte count. Expert replication can keep some assignments local. The combine operation adds traffic in the return direction.

> This estimate only covers activation load. It excludes protocol overhead and cannot predict latency without topology and message-size measurements.

This exchange is repeated for every MoE layer. Small dispatch delays can accumulate across the model. Overlapping can hide some latency when independent computation is available.

DeepEP provides separate communication paths for large-batch and small-batch scenarios. Its throughput path is optimized for larger transfers. Its low-latency path is designed for decoding steps where launch time matters more.

> Kernel bandwidth is not the same as end-to-end service speed. A complete request also includes attention, scheduling, sampling, cache operations, and the model computation for each layer.

In summary, expert parallelism keeps weights stationary and moves assignments. It increases distributed weight capacity at the cost of repeated activation traffic.

---

**Network topology and expert placement**

Not every GPU link has the same cost. GPUs within the same server may use NVLink or NVSwitch. GPUs across different servers may use InfiniBand or Ethernet.

Cross-server transfers are usually more expensive than intra-server transfers. Expert placement determines which GPU stores which expert. This choice decides how often routing crosses slower links.

One common layout keeps frequent expert traffic within the NVLink domain. Another parallel layout distributes layers across servers. The optimal boundary depends on the model and the cluster.

![](https://www.waytoagi.com/api/kb-media/L8mPbbG4NoqNZKxV21ucR1t7ncd)

Placement changes the physical destination without altering the router’s output. Frequently selected experts can be placed closer to their token sources. The runtime can also create physical copies of a single logical expert.

Routing constraints are different because they limit the model’s choices. DeepSeek-V3 uses node-restricted routing. Each token can only access experts on a limited number of nodes. This rule is part of the trained architecture.

> Node-restricted routing is part of the model’s training architecture. Adding similar constraints after training may change the selected experts and affect model quality.

Placement requires both routing traces and topology measurements. Routing traces show which experts receive work. Topology measurements reveal the cost of each destination. Expert popularity alone cannot capture link costs.

Grouping popular experts together may reduce network traffic, but it can also overload a single server. Spreading them balances compute but may increase cross-server traffic. Replication only helps when spare GPU memory is available.

Measure bytes and time per communication domain. A single cluster-wide traffic counter cannot distinguish cheap intra-node movement from expensive cross-node movement. It is also necessary to record which expert pairs generate the traffic, because placement decisions rely on stable patterns.

In summary, placement tries to keep frequent traffic on fast links. It must also balance work across GPUs. Routing traces reveal whether a single layout can satisfy both goals.

---

## Tensor, Expert, and Data-Parallel Execution Layouts

The three parallel layouts divide different types of work. Tensor parallelism splits a matrix operation across multiple GPUs. Expert parallelism assigns different experts to different GPUs. Data parallelism assigns different requests to different replicas.

Tensor parallelism shards the weight matrix. Each GPU computes a partial result. The GPUs then exchange partial results to complete the layer.

![](https://www.waytoagi.com/api/kb-media/FDbSboykcoqc9fxWu3QczV7Wnbc)

Expert parallelism distributes entire experts or expert shards. Tokens are routed to their chosen experts, so traffic depends on the routing decisions and expert placement.

Data parallelism sends different requests to different replicas. Some engines replicate the attention components within a data-parallel group while distributing experts across a larger group.

Real deployments combine these layouts. The attention layers and expert layers can use different GPU groups. A single parallelism label rarely describes the entire deployment.

Suppose the tensor-parallel size is 2 and the data-parallel size is 4. Attention runs in 4 groups of 2 GPUs each. The expert layer can treat all 8 GPUs as one expert-parallel group.

![](https://www.waytoagi.com/api/kb-media/XtKNbCYzUoPaHLxtbxMcvy2GnyL)

Real deployments combine these layouts. Attention layers and expert layers can use different rank groups. A single label rarely describes the entire model.

The vLLM expert parallelism deployment guide documents this hybrid approach. When expert parallelism is enabled, the EP group size equals tensor-parallel size multiplied by data-parallel size. When TP > 1, attention uses tensor parallelism inside each data-parallel group.

For example, with TP = 2 and DP = 4, four attention groups are created. Each attention group spans 2 ranks. The expert layer can use an EP group of all 8 ranks.

![](https://www.waytoagi.com/api/kb-media/NwGsbrFdtovRWuxxLvAcb5yXn2S)

> The TP2 + DP4 arrangement is one configuration example from vLLM. Other engines may define communication groups differently.

Tensor parallelism communicates inside every matrix operation. Expert parallelism moves post-routed activations. Data parallelism consumes memory to replicate components. Each layout incurs a different cost.

Low concurrency can make expert-parallel transfers inefficient. Weak interconnects produce the same result. When collective communication dominates, tensor parallelism can also struggle.

In summary, tensor parallelism partitions computation, expert parallelism partitions expert ownership, and data parallelism partitions requests. The effective combination depends on memory capacity, traffic patterns, and interconnect speed.

---

## Expert Load Imbalance and Rank-Level Tail Latency

Routing rarely distributes work perfectly. Suppose one expert receives half of the tokens; its GPU must process a much larger matrix than the others.

The other GPUs may finish early and wait. The layer cannot complete until all required contributions return. Therefore, the slowest participating GPU determines the per-step latency.

![](https://www.waytoagi.com/api/kb-media/FZ8Hb8JkbofX4FxtKUTcguDbn3e)

Training on large datasets can encourage balanced routing. However, a single production batch can still exhibit skew. Variations in language and request composition change which experts are selected.

Expert imbalance occurs inside a single model replica. Request imbalance occurs between replicas that receive different workloads. These problems require different measurement techniques and mitigation strategies.

> A balanced daily histogram can hide slow individual steps. Allocation counts and timing should be measured at the individual serving-step level.

Record the allocation count for every serving step. Also record scheduling time, expert execution time, combine time, and GPU idle time. These measurements reveal which expert or link is determining tail latency.

Placement can separate experts that are frequently selected together. Hot experts can be moved to less-loaded GPUs. These changes do not alter the router’s decisions.

Replication creates multiple physical copies of the same logical expert. The router still selects the same logical expert; the runtime dispatches its assignments to available copies.

![](https://www.waytoagi.com/api/kb-media/HASWbeRrooLOLWxKtkAcYgm5nAh)

Replication consumes GPU memory, leaving less room for the KV cache. Moving experts also consumes bandwidth. Short-lived traffic spikes may end before rebalancing completes.

Some runtimes use recent load measurements to rebalance experts and may also support redundant expert copies. Both mechanisms require sufficient spare memory and sufficiently stable workloads to learn from recent history.

👉 Rebalancing changes the physical destination but does not change the logical expert chosen by the model or its expected output.

Average utilization cannot explain MoE tail latency. Measure every step and every GPU. Placement and replication can reduce tail latency, but they consume memory and control bandwidth.

---

**Inference Optimizations and Model-Correctness Boundaries**

MoE optimizations fall into two categories. Some only change the execution method, while others alter the numerical values or the selected computations.

Fusion, grouped GEMM, placement, and communication overlap all preserve the logical expert selection. They only change how the runtime performs the work. Minor floating-point differences may still occur.

Quantization changes the stored weights or the transmitted activations. It can reduce memory and network traffic, but it also introduces numerical error. Quality must therefore be tested on the target workload.

Reducing top-k changes the actual set of experts that are executed. It removes the contribution of certain experts from the weighted sum. Renormalizing the remaining weights further changes the result.

![](https://www.waytoagi.com/api/kb-media/SGfzb2z1toku0vx81RlcoouLnac)

Suppose the model normally selects 8 experts but the runtime only executes 4. The output now contains fewer expert functions, and renormalization also changes their relative scaling.

The paper *Training-Free Halving of Activated Experts* studies this distinction. It executes fewer experts while using a larger reference set to compute the normalization weights.

On Qwen3.6-35B-A3B, reducing from the standard 8 experts to 4 experts caused a drop of 4.65 MMLU points. After adjusting the reference weights, the measured loss fell to 0.35 points. The paper reports that this setting halves the routing expert computation.

The same approach on Qwen3.5-397B-A17B reduced from 10 experts to 5 experts with a loss of 0.55 MMLU points. The authors also found that perplexity and task accuracy sometimes prefer different settings.

> These are results for specific checkpoints and evaluations; they do not establish a universal rule for halving top-k.

Expert parallelism changes *where* the selected computation runs, while lowering top-k changes *what* computation runs. They are not equivalent optimizations.

Capacity limits also require similar caution. Some training systems impose a limit on the number of tokens assigned to one expert. Specific runtimes may also implement inference-time limits.

MoE inference does not automatically drop tokens when experts are busy. Capacity or dropping rules are behaviors specific to a given model or runtime. Always check the implementation before assuming they exist.

> First optimize the computations that remain unchanged. Treat quantization and top-k changes as model modifications that require quality testing.

Execution-only changes require performance testing. Quantization requires both performance and quality testing. Top-k changes require the same tests plus careful output comparison.

---

**Benchmark Design and Bottleneck Diagnosis**

A useful benchmark changes only one serving decision at a time. Keep the checkpoint, precision, prompt, output length limit, and request arrival rate constant. Then vary only the parallel layout or kernel path.

Start with the smallest supported layout that fits the model. Next, add the same-server layout. Only after measuring these baselines should you test expert parallelism across servers.

Memory capacity may prevent one or more configurations from loading the model. Backend support may also rule out certain kernels or communication layouts.

Test both low concurrency and high concurrency. Use both short prompts and long prompts. This separates small decode matrices from prompt-heavy prefilling work.

Record both prefilling and output throughput. Measure time-to-first-token and time-per-output-token. Also record token-to-token latency and p95 request latency. Tail-distribution measurements can reveal latency caused by a single hot GPU.

GPU-level measurements explain these request-level metrics. Record bytes, allocation counts, expert time, and idle time per network domain. Break down routing, permute, dispatch, GEMM, combine, and unpermute times. Also record resident weight memory and remaining KV cache capacity.

![](https://www.waytoagi.com/api/kb-media/TZQEbq1edoRXV4xoBFKc0Gounpe)

Interpret each stage separately. High dispatch time points to topology, locality, or message-size issues. A persistently slow GPU points to routing skew or poor placement.

![](https://www.waytoagi.com/api/kb-media/IWLZbaVufoT5w9xplFTcurLenIg)

> The diagnostic table maps common symptoms to initial measurements. Hardware topology and backend behavior can produce additional causes.

High memory usage combined with low expert compute indicates a weight-capacity problem. Insufficient remaining KV cache memory confirms the same constraint. Higher concurrency may improve matrix sizes but simultaneously increases cache pressure.

In summary: compare identical request traces while changing only one variable. Measure memory, compute, and communication separately. The highest measurement cost determines the next experiment.

![](https://www.waytoagi.com/api/kb-media/Tqb6bIfZ6oYIXyxneI0ccq0PnZf)

---

**Engineering Checklist (Engineering Checklist)**

Qwen3-30B-A3B has a total of 30.5 billion parameters and 3.3 billion activated parameters. The total parameter count determines the weight storage requirement, while the activated parameter count estimates the execution path per token.

A typical MoE inference step includes routing, token permutation, dispatch, grouped expert computation, combine, and un-permutation. Multi-GPU deployment further introduces communication domains, expert placement, and rank-level load imbalance.

Follow this sequence when validating a deployment. First, confirm weight and KV cache capacity. Next, analyze each stage of the MoE pathway. Then measure allocation skew and the number of bytes transferred across each communication domain. Finally, compare the impact of changes in placement, kernels, quantization, or top-k under the same request trace.

Placement and kernel changes primarily affect runtime overhead. Quantization changes numerical precision. Top-k changes the set of experts that are executed. Keep these experiments isolated so that performance gains and model quality changes remain clearly attributable.

Once these three aspects are kept separate, MoE inference becomes much easier to diagnose. A deployment must store model weights, execute the selected experts, and move routed activations. Before changing the service layout, measure each component individually.

👉 **Your turn**: In your deployment, which would you investigate first — memory, expert computation, or communication?
