MoE Training Optimization Workflow
Stable docs: @docs/training/moe-optimization.md
Card: @skills/nemo-mbridge-perf-moe-optimization-workflow/card.yaml
Source: Scalable Training of MoE Models with Megatron Core
Quick Reference
Start with the paper's Three Walls:
- memory wall
- communication wall
- compute-efficiency wall
For operational diagnosis, split the compute-efficiency wall into compute
and host/launch bottlenecks. They need different evidence and different
fixes. MoE tuning is iterative, so use this order:
freeze the measurement contract -> fit -> scale -> profile -> retune -> validate
First Answer Checklist
For MoE optimization workflow prompts, present the response in this order:
- Freeze the measurement contract: record the exact model and task,
hardware and topology, container and commits, data and routing semantics,
precision, sequence and batch shape, parallelism, graph scopes, and the
steady-state metric window. Label each candidate as training-equivalent or
benchmark-only.
- Fit: make the model memory-feasible first. Use the smallest model
parallelism that fits: keep dense TP as low as capacity allows while using
a large legal EP for expert weights. Prefer selective recompute before full
recompute, add offloading only after recompute and parallelism are
insufficient, and use
--fake-init-process-group to sanity-check large
layouts.
- Scale: maximize DP after the model fits, keep hot communication inside
the fastest interconnect, use PP plus VPP for multi-node scaling, prefer EP
over extra TP for expert layers, and add CP when long context makes attention
memory dominant.
- Profile: identify the dominant wall: memory, communication, host
overhead, or compute.
- Retune: change one variable at a time based on the profiled bottleneck.
Dispatcher, overlap, lower precision, CUDA graphs, and recompute are
candidates, not hardware defaults.
- Validate: use short matched screens to reject candidates, then run the
winner for at least 50 steps. Verify the requested backend or graph replay
actually ran, time a declared post-warmup window, and report loss health,
skipped/NaN iterations, memory, step time, and model TFLOPS/GPU.
- Include the exact Parallel Folding meshes:
Attention: TP x CP x DP x PP
and MoE: ETP x EP x EDP x PP.
- Use
alltoall for safe bring-up, then A/B flex + deepep and flex +
hybridep when their packages and target topology support them. Start from
BF16 and eager execution; introduce lower precision or the narrowest useful
CUDA-graph scope only after profiling justifies it.
Phase 0: Freeze The Measurement Contract
A comparison is valid only when the following stay fixed unless they are the
single variable under test:
- Bridge, MCore, Transformer Engine, container, CUDA, and NCCL versions
- GPU count, SKU, node topology, and launcher/environment settings
- model, task, data path, sequence length, MBS, GBS, and optimizer settings
- TP, PP, VPP, CP, EP, ETP, and DP layout
- routing semantics, precision, recompute, dispatcher, overlap, and graph scope
- warmup and steady-state timing windows
Separate two acceptance classes:
- Training-equivalent changes preserve the intended routing, loss, data,
optimizer, and checkpoint/resume behavior.
- Benchmark-only changes such as forced load balancing are useful for
controlled kernel studies, but cannot establish production-training
correctness or convergence.
Phase 1: Make The Run Memory-Feasible
Start with a configuration that fits reliably before chasing throughput.
Recommended order:
- Use the lowest dense TP that still fits; avoid paying extra TP communication
merely to reduce activation memory.
- Use the largest legal EP that fits the expert count and intended topology.
- Turn on selective recompute before falling back to full recompute.
- Add offloading only when recompute and parallelism are still insufficient.
- Use
--fake-init-process-group to sanity-check large parallel layouts on a
single GPU before burning cluster time.
Recompute guidance
Prefer selective recompute for MoE runs:
- good first choices:
layernorm, core_attn, moe_act, mlp, or
model-specific modules (shared_experts, mla_up_proj)
- use full recompute only when the run still does not fit
- revisit recompute after enabling CUDA graphs, because some graph scopes and
full recompute paths do not mix well
As a rule of thumb, fine-grained recompute often recovers most of the needed
memory while keeping throughput much closer to the non-recompute baseline than
full-layer recompute does.
For Qwen-family models, choose boundaries by architecture. Standard-attention
Qwen recipes can often start with core_attn. Qwen3.5 includes GDN layers, so
core_attn alone does not cover their retained normalization output; the
current pinned Megatron Core exposes gdn_norm_out. Test it on the exact stack,
and fall back to full-layer recompute when selective boundaries still do not
make the complete optimizer step fit.
Phase 2: Choose Parallelism For Scale
Priority order:
- Maximize DP once the model fits.
- Keep the hot communication path inside the fast interconnect when possible.
- Use PP, plus VPP if needed, for multi-node scaling.
- Prefer EP over extra TP for expert layers.
- Add CP for long context once sequence length makes attention memory dominant.
For common MoE allocations, EP=8 is a strong first candidate on an 8-GPU node
and EP=32 is a strong first candidate on 32 GPUs when the expert count and mesh
are divisible. This is a capacity heuristic, not a correctness rule. EP shards
only expert parameters: EP=8 can still leave a large model dependent on full
recompute, while EP=32 often creates enough expert-weight headroom to retest
selective recompute.
Parallel Folding
Parallel Folding decouples attention and MoE parallelism so you do not have to
pick a single compromise layout:
Attention: TP × CP × DP × PP
MoE: ETP × EP × EDP × PP
Key knobs:
--expert-model-parallel-size
--expert-tensor-parallel-size
Use it when attention prefers some TP or CP, but expert layers benefit from a
larger EP degree than the dense layers can tolerate.
Fill Available Headroom
Once the run completes optimizer initialization and several steady steps,
inspect W&B memory and confirm every rank's peak allocated and reserved memory
in the runtime logs; rank 0 can miss the hot EP or PP rank. Use any safe
headroom to A/B one of these changes at a time:
- lower TP by one legal step, if the additional dense state still fits;
- increase MBS, while adjusting gradient accumulation to keep GBS and
optimizer boundaries unchanged.
Judge the result by end-to-end tokens/s/GPU or step time, not memory utilization
alone. Preserve margin for checkpoint/eval transients, routing imbalance,
dispatcher workspaces, and CUDA-graph private pools.
Phase 3: Profile The Dominant Bottleneck
| Bottleneck |
What it looks like |
Primary fixes |
| Memory |
Run fits only with aggressive full recompute or OOMs during warmup |
selective recompute, FP8, offloading, better PP layout |
| Communication |
Nsight shows large all-to-all or collective blocks |
DeepEP or HybridEP, EP overlap, DP/TP overlap, better PP layout |
| Host overhead |
GPU gaps, launch-bound traces, Python overhead |
CUDA graphs, --manual-gc, higher MBS, CPU affinity tuning |
| Compute |
Low SM utilization after comm and host issues are addressed |
grouped GEMM, fusion work, FP8, dispatcher-specific kernel tuning |
Profile overlap without misreading it
Use unprofiled steady iterations for the acceptance metric and a matched
profile for causal explanation:
- Change one overlap or dispatcher variable at a time; keep routing, graph
scopes, parallelism, batch shape, and runtime fixed.
- Build interval unions for communication kernels and compute kernels, then
measure their intersection to quantify hidden communication.
- Do not add kernel durations and call the result wall time. Concurrent
kernels may run longer because of SM or bandwidth contention even while the
exposed GPU-active union and end-to-end step time fall.
- Corroborate the trace with dispatch/combine NVTX ranges, steady step time,
model TFLOPS/GPU, loss finiteness, skipped/NaN counts, and peak memory.
On a controlled 16×H100 Qwen3 30B-A3B HybridEP run, plain EP overlap increased
communication hidden by GEMM/attention from 0.11% to 36.55%. The unprofiled
step fell from 24.7138s to 20.9920s and throughput rose from 244.039 to 287.305
model TFLOPS/GPU. delay_wgrad_compute remained disabled.
Phase 4: Retune From Evidence
Choose the smallest candidate that targets the profiled bottleneck and change
one variable at a time.
Dispatcher And Overlap Guidance
Use dispatcher choice as a bottleneck fix, not as a hardware lookup table.
moe_token_dispatcher_type="alltoall": safest bring-up path, fine for
smaller EP sizes
moe_token_dispatcher_type="flex" + moe_flex_dispatcher_backend="deepep":
candidate when DeepEP is installed and communication is exposed
moe_token_dispatcher_type="flex" + moe_flex_dispatcher_backend="hybridep":
topology-sensitive candidate on both NVL8 and NVL72 systems when HybridEP is
installed
HybridEP plus plain EP overlap is the current measured winner for the canonical
16×H100 Qwen3 30B-A3B shape, while the canonical 256×H100 Qwen3 235B recipe
uses standard alltoall plus overlap. Benchmark backend compatibility and
throughput in the target container; neither GPU name nor EP degree determines
the winner by itself.
On a single NVL8 domain in BF16, alltoall and HybridEP can be close enough
that the simpler baseline wins after setup overhead. Prefer HybridEP as a tuned
candidate, not an assumption, and keep a matched alltoall control.
If the all-to-all path is visible in profiles, combine dispatcher tuning with:
--overlap-moe-expert-parallel-comm
--overlap-grad-reduce
--tp-comm-overlap
Test plain EP overlap, shared-expert overlap, and delayed weight-gradient
compute as separate candidates first. A combination can regress even when one
component helped on another model.
Lower-Precision Candidate Matrix
Start with a verified BF16 baseline. Hardware capability only determines which
lower-precision candidates are legal; it does not guarantee a speedup.
| Platform |
Candidate after BF16 is stable |
| Hopper |
per-tensor, current-scaling, or blockwise FP8 supported by the target stack |
| Blackwell |
MXFP8 or another supported FP8 recipe |
| Blackwell, speed-first exploration |
NVFP4 after the BF16/FP8 path is stable |
Keep the router in FP32. The largest wins usually come from expert GEMMs and
other heavy matrix math, not from trying to quantize every small MoE component.
Require logs or traces showing that the intended kernels ran, and judge the
candidate by end-to-end steady step time rather than theoretical peak FLOPS.
CUDA Graphs For MoE
Use CUDA graphs only after a profile shows meaningful host/launch gaps. For
dropless MoE, start with the narrowest partial TE-scoped graph candidate:
moe_router
moe_preprocess
Add attn only if it is supported for the model and improves the same matched
stack. A successful capture is not evidence of a speedup, and a graph win can
disappear after dispatcher, overlap, or precision changes.
This path keeps dynamic expert work outside the graph. Budget extra memory,
verify that shapes remain static, confirm replay rather than capture alone, and
time only post-capture iterations.
Use full-iteration graphs only for graph-friendly workloads such as drop-and-pad
or tightly controlled static-shape experiments.
Related references:
- @skills/nemo-mbridge-perf-cuda-graphs/SKILL.md
- @docs/training/cuda-graphs.md
- @docs/training/activation-recomputation.md
Phase 5: Validate And Package Evidence
Use 6–12 post-warmup iterations for inexpensive screening when the workload
allows it. For the selected candidate, run at least 50 steps and report a fixed
steady window such as steps 41–50. The final evidence bundle should contain:
- exact command/config diff, commits, container, hardware, and topology
- declared routing/data semantics and training-equivalent vs benchmark-only label
- proof that the intended dispatcher, precision kernels, overlap, and graph
replay were active
- step time and model TFLOPS/GPU from the same unprofiled steady window
- finite loss, skipped/NaN counts, peak memory, and checkpoint/optimizer-state
validation when the production path requires it
- matched A/B profile evidence for the claimed causal mechanism
Do not attribute the total gain of a final multi-change winner to one earlier
A/B. For example, the Qwen3 overlap experiment isolated a rise from 244.039 to
287.305 TFLOPS/GPU; the later canonical recipe reached 299.352 after additional
HybridEP tuning. They answer different questions.
Pitfalls
Do not optimize in the wrong order: fitting the model and selecting sane
parallelism matter more than micro-optimizations.
Platform changes the limiting wall: H100-class runs often feel more
communication-bound, while GB200 or GB300 runs often expose CPU or launch
overhead earlier.
FP8 MFU can look misleadingly low: compare absolute throughput as well as
MFU when switching precision modes.
CUDA graphs and recompute interact: TE-scoped graphs are usually paired
with selective recompute, not blanket full recompute.
Parallel Folding is not optional at large scale: once attention and expert
layers want clearly different layouts, a single shared TP or EP plan becomes
a tax on both.
Summed kernel time is not exposed time: use interval unions and
communication/compute intersection when validating overlap.
Benchmark-only semantics are not production acceptance: forced routing,
synthetic data, or disabled optimizer/checkpoint paths must be disclosed and
validated separately from training-equivalent results.
Feature activation needs evidence: a config dump is insufficient when a
backend can fall back, a graph can capture without helping, or a lower-
precision recipe can miss the intended kernels.
Last guidance refresh: 2026-08-25.
1---2name: nemo-mbridge-perf-moe-optimization-workflow3description: Evidence-gated workflow for MoE performance optimization in Megatron Bridge. Covers measurement contracts, the Three Walls framework, parallel folding, profiling, matched A/B tuning, and final validation. Use for full MoE throughput tuning or diagnosing a regression involving memory, communication, compute, or host/launch overhead.4license: Apache-2.05---67# MoE Training Optimization Workflow89Stable docs: @docs/training/moe-optimization.md10Card: @skills/nemo-mbridge-perf-moe-optimization-workflow/card.yaml11Source: [Scalable Training of MoE Models with Megatron Core](https://arxiv.org/abs/2603.07685)1213## Quick Reference1415Start with the paper's Three Walls:1617- memory wall18- communication wall19- compute-efficiency wall2021For operational diagnosis, split the compute-efficiency wall into **compute**22and **host/launch** bottlenecks. They need different evidence and different23fixes. MoE tuning is iterative, so use this order:2425```text26freeze the measurement contract -> fit -> scale -> profile -> retune -> validate27```2829## First Answer Checklist3031For MoE optimization workflow prompts, present the response in this order:32331. **Freeze the measurement contract**: record the exact model and task,34 hardware and topology, container and commits, data and routing semantics,35 precision, sequence and batch shape, parallelism, graph scopes, and the36 steady-state metric window. Label each candidate as training-equivalent or37 benchmark-only.382. **Fit**: make the model memory-feasible first. Use the smallest model39 parallelism that fits: keep dense TP as low as capacity allows while using40 a large legal EP for expert weights. Prefer selective recompute before full41 recompute, add offloading only after recompute and parallelism are42 insufficient, and use `--fake-init-process-group` to sanity-check large43 layouts.443. **Scale**: maximize DP after the model fits, keep hot communication inside45 the fastest interconnect, use PP plus VPP for multi-node scaling, prefer EP46 over extra TP for expert layers, and add CP when long context makes attention47 memory dominant.484. **Profile**: identify the dominant wall: memory, communication, host49 overhead, or compute.505. **Retune**: change one variable at a time based on the profiled bottleneck.51 Dispatcher, overlap, lower precision, CUDA graphs, and recompute are52 candidates, not hardware defaults.536. **Validate**: use short matched screens to reject candidates, then run the54 winner for at least 50 steps. Verify the requested backend or graph replay55 actually ran, time a declared post-warmup window, and report loss health,56 skipped/NaN iterations, memory, step time, and model TFLOPS/GPU.577. Include the exact Parallel Folding meshes: `Attention: TP x CP x DP x PP`58 and `MoE: ETP x EP x EDP x PP`.598. Use `alltoall` for safe bring-up, then A/B `flex` + `deepep` and `flex` +60 `hybridep` when their packages and target topology support them. Start from61 BF16 and eager execution; introduce lower precision or the narrowest useful62 CUDA-graph scope only after profiling justifies it.6364## Phase 0: Freeze The Measurement Contract6566A comparison is valid only when the following stay fixed unless they are the67single variable under test:6869- Bridge, MCore, Transformer Engine, container, CUDA, and NCCL versions70- GPU count, SKU, node topology, and launcher/environment settings71- model, task, data path, sequence length, MBS, GBS, and optimizer settings72- TP, PP, VPP, CP, EP, ETP, and DP layout73- routing semantics, precision, recompute, dispatcher, overlap, and graph scope74- warmup and steady-state timing windows7576Separate two acceptance classes:7778- **Training-equivalent** changes preserve the intended routing, loss, data,79 optimizer, and checkpoint/resume behavior.80- **Benchmark-only** changes such as forced load balancing are useful for81 controlled kernel studies, but cannot establish production-training82 correctness or convergence.8384## Phase 1: Make The Run Memory-Feasible8586Start with a configuration that fits reliably before chasing throughput.8788Recommended order:89901. Use the lowest dense TP that still fits; avoid paying extra TP communication91 merely to reduce activation memory.922. Use the largest legal EP that fits the expert count and intended topology.933. Turn on selective recompute before falling back to full recompute.944. Add offloading only when recompute and parallelism are still insufficient.955. Use `--fake-init-process-group` to sanity-check large parallel layouts on a96 single GPU before burning cluster time.9798### Recompute guidance99100Prefer selective recompute for MoE runs:101102- good first choices: `layernorm`, `core_attn`, `moe_act`, `mlp`, or103 model-specific modules (`shared_experts`, `mla_up_proj`)104- use full recompute only when the run still does not fit105- revisit recompute after enabling CUDA graphs, because some graph scopes and106 full recompute paths do not mix well107108As a rule of thumb, fine-grained recompute often recovers most of the needed109memory while keeping throughput much closer to the non-recompute baseline than110full-layer recompute does.111112For Qwen-family models, choose boundaries by architecture. Standard-attention113Qwen recipes can often start with `core_attn`. Qwen3.5 includes GDN layers, so114`core_attn` alone does not cover their retained normalization output; the115current pinned Megatron Core exposes `gdn_norm_out`. Test it on the exact stack,116and fall back to full-layer recompute when selective boundaries still do not117make the complete optimizer step fit.118119## Phase 2: Choose Parallelism For Scale120121Priority order:1221231. Maximize DP once the model fits.1242. Keep the hot communication path inside the fast interconnect when possible.1253. Use PP, plus VPP if needed, for multi-node scaling.1264. Prefer EP over extra TP for expert layers.1275. Add CP for long context once sequence length makes attention memory dominant.128129For common MoE allocations, EP=8 is a strong first candidate on an 8-GPU node130and EP=32 is a strong first candidate on 32 GPUs when the expert count and mesh131are divisible. This is a capacity heuristic, not a correctness rule. EP shards132only expert parameters: EP=8 can still leave a large model dependent on full133recompute, while EP=32 often creates enough expert-weight headroom to retest134selective recompute.135136### Parallel Folding137138Parallel Folding decouples attention and MoE parallelism so you do not have to139pick a single compromise layout:140141```text142Attention: TP × CP × DP × PP143MoE: ETP × EP × EDP × PP144```145146Key knobs:147148- `--expert-model-parallel-size`149- `--expert-tensor-parallel-size`150151Use it when attention prefers some TP or CP, but expert layers benefit from a152larger EP degree than the dense layers can tolerate.153154### Fill Available Headroom155156Once the run completes optimizer initialization and several steady steps,157inspect W&B memory and confirm every rank's peak allocated and reserved memory158in the runtime logs; rank 0 can miss the hot EP or PP rank. Use any safe159headroom to A/B one of these changes at a time:160161- lower TP by one legal step, if the additional dense state still fits;162- increase MBS, while adjusting gradient accumulation to keep GBS and163 optimizer boundaries unchanged.164165Judge the result by end-to-end tokens/s/GPU or step time, not memory utilization166alone. Preserve margin for checkpoint/eval transients, routing imbalance,167dispatcher workspaces, and CUDA-graph private pools.168169## Phase 3: Profile The Dominant Bottleneck170171| Bottleneck | What it looks like | Primary fixes |172|---|---|---|173| Memory | Run fits only with aggressive full recompute or OOMs during warmup | selective recompute, FP8, offloading, better PP layout |174| Communication | Nsight shows large all-to-all or collective blocks | DeepEP or HybridEP, EP overlap, DP/TP overlap, better PP layout |175| Host overhead | GPU gaps, launch-bound traces, Python overhead | CUDA graphs, `--manual-gc`, higher MBS, CPU affinity tuning |176| Compute | Low SM utilization after comm and host issues are addressed | grouped GEMM, fusion work, FP8, dispatcher-specific kernel tuning |177178### Profile overlap without misreading it179180Use unprofiled steady iterations for the acceptance metric and a matched181profile for causal explanation:1821831. Change one overlap or dispatcher variable at a time; keep routing, graph184 scopes, parallelism, batch shape, and runtime fixed.1852. Build interval unions for communication kernels and compute kernels, then186 measure their intersection to quantify hidden communication.1873. Do not add kernel durations and call the result wall time. Concurrent188 kernels may run longer because of SM or bandwidth contention even while the189 exposed GPU-active union and end-to-end step time fall.1904. Corroborate the trace with dispatch/combine NVTX ranges, steady step time,191 model TFLOPS/GPU, loss finiteness, skipped/NaN counts, and peak memory.192193On a controlled 16×H100 Qwen3 30B-A3B HybridEP run, plain EP overlap increased194communication hidden by GEMM/attention from 0.11% to 36.55%. The unprofiled195step fell from 24.7138s to 20.9920s and throughput rose from 244.039 to 287.305196model TFLOPS/GPU. `delay_wgrad_compute` remained disabled.197198## Phase 4: Retune From Evidence199200Choose the smallest candidate that targets the profiled bottleneck and change201one variable at a time.202203### Dispatcher And Overlap Guidance204205Use dispatcher choice as a bottleneck fix, not as a hardware lookup table.206207- `moe_token_dispatcher_type="alltoall"`: safest bring-up path, fine for208 smaller EP sizes209- `moe_token_dispatcher_type="flex"` + `moe_flex_dispatcher_backend="deepep"`:210 candidate when DeepEP is installed and communication is exposed211- `moe_token_dispatcher_type="flex"` + `moe_flex_dispatcher_backend="hybridep"`:212 topology-sensitive candidate on both NVL8 and NVL72 systems when HybridEP is213 installed214215HybridEP plus plain EP overlap is the current measured winner for the canonical21616×H100 Qwen3 30B-A3B shape, while the canonical 256×H100 Qwen3 235B recipe217uses standard `alltoall` plus overlap. Benchmark backend compatibility and218throughput in the target container; neither GPU name nor EP degree determines219the winner by itself.220221On a single NVL8 domain in BF16, `alltoall` and HybridEP can be close enough222that the simpler baseline wins after setup overhead. Prefer HybridEP as a tuned223candidate, not an assumption, and keep a matched `alltoall` control.224225If the all-to-all path is visible in profiles, combine dispatcher tuning with:226227- `--overlap-moe-expert-parallel-comm`228- `--overlap-grad-reduce`229- `--tp-comm-overlap`230231Test plain EP overlap, shared-expert overlap, and delayed weight-gradient232compute as separate candidates first. A combination can regress even when one233component helped on another model.234235### Lower-Precision Candidate Matrix236237Start with a verified BF16 baseline. Hardware capability only determines which238lower-precision candidates are legal; it does not guarantee a speedup.239240| Platform | Candidate after BF16 is stable |241|---|---|242| Hopper | per-tensor, current-scaling, or blockwise FP8 supported by the target stack |243| Blackwell | MXFP8 or another supported FP8 recipe |244| Blackwell, speed-first exploration | NVFP4 after the BF16/FP8 path is stable |245246Keep the router in FP32. The largest wins usually come from expert GEMMs and247other heavy matrix math, not from trying to quantize every small MoE component.248Require logs or traces showing that the intended kernels ran, and judge the249candidate by end-to-end steady step time rather than theoretical peak FLOPS.250251### CUDA Graphs For MoE252253Use CUDA graphs only after a profile shows meaningful host/launch gaps. For254dropless MoE, start with the narrowest partial TE-scoped graph candidate:255256- `moe_router`257- `moe_preprocess`258259Add `attn` only if it is supported for the model and improves the same matched260stack. A successful capture is not evidence of a speedup, and a graph win can261disappear after dispatcher, overlap, or precision changes.262263This path keeps dynamic expert work outside the graph. Budget extra memory,264verify that shapes remain static, confirm replay rather than capture alone, and265time only post-capture iterations.266267Use full-iteration graphs only for graph-friendly workloads such as drop-and-pad268or tightly controlled static-shape experiments.269270Related references:271272- @skills/nemo-mbridge-perf-cuda-graphs/SKILL.md273- @docs/training/cuda-graphs.md274- @docs/training/activation-recomputation.md275276## Phase 5: Validate And Package Evidence277278Use 6–12 post-warmup iterations for inexpensive screening when the workload279allows it. For the selected candidate, run at least 50 steps and report a fixed280steady window such as steps 41–50. The final evidence bundle should contain:281282- exact command/config diff, commits, container, hardware, and topology283- declared routing/data semantics and training-equivalent vs benchmark-only label284- proof that the intended dispatcher, precision kernels, overlap, and graph285 replay were active286- step time and model TFLOPS/GPU from the same unprofiled steady window287- finite loss, skipped/NaN counts, peak memory, and checkpoint/optimizer-state288 validation when the production path requires it289- matched A/B profile evidence for the claimed causal mechanism290291Do not attribute the total gain of a final multi-change winner to one earlier292A/B. For example, the Qwen3 overlap experiment isolated a rise from 244.039 to293287.305 TFLOPS/GPU; the later canonical recipe reached 299.352 after additional294HybridEP tuning. They answer different questions.295296## Pitfalls2972981. **Do not optimize in the wrong order**: fitting the model and selecting sane299 parallelism matter more than micro-optimizations.3003012. **Platform changes the limiting wall**: H100-class runs often feel more302 communication-bound, while GB200 or GB300 runs often expose CPU or launch303 overhead earlier.3043053. **FP8 MFU can look misleadingly low**: compare absolute throughput as well as306 MFU when switching precision modes.3073084. **CUDA graphs and recompute interact**: TE-scoped graphs are usually paired309 with selective recompute, not blanket full recompute.3103115. **Parallel Folding is not optional at large scale**: once attention and expert312 layers want clearly different layouts, a single shared TP or EP plan becomes313 a tax on both.3143156. **Summed kernel time is not exposed time**: use interval unions and316 communication/compute intersection when validating overlap.3173187. **Benchmark-only semantics are not production acceptance**: forced routing,319 synthetic data, or disabled optimizer/checkpoint paths must be disclosed and320 validated separately from training-equivalent results.3213228. **Feature activation needs evidence**: a config dump is insufficient when a323 backend can fall back, a graph can capture without helping, or a lower-324 precision recipe can miss the intended kernels.325326_Last guidance refresh: 2026-08-25._