Loading...
Loading...
Compare original and translation side by side
--fake-init-process-group--fake-init-process-grouplayernormcore_attnmoe_actmlpshared_expertsmla_up_projlayernormcore_attnmoe_actmlpshared_expertsmla_up_projAttention: TP × CP × DP × PP
MoE: ETP × EP × EDP × PP--expert-model-parallel-size--expert-tensor-parallel-sizeAttention: TP × CP × DP × PP
MoE: ETP × EP × EDP × PP--expert-model-parallel-size--expert-tensor-parallel-size| 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, |
| Compute | Low SM utilization after comm and host issues are addressed | grouped GEMM, fusion work, FP8, dispatcher-specific kernel tuning |
| 瓶颈类型 | 表现特征 | 主要解决方案 |
|---|---|---|
| 内存 | 仅通过激进的完全重计算才能运行,或预热阶段出现OOM | 选择性重计算、FP8、卸载、优化PP布局 |
| 通信 | Nsight显示大量all-to-all或集合操作块 | DeepEP或HybridEP、EP重叠、DP/TP重叠、优化PP布局 |
| 主机开销 | GPU存在空闲间隙、启动受限的追踪记录、Python开销 | CUDA graphs、 |
| 计算 | 解决通信和主机问题后SM利用率仍然较低 | 分组GEMM、融合优化、FP8、针对调度器的内核调优 |
moe_token_dispatcher_type="alltoall"moe_token_dispatcher_type="flex"moe_flex_dispatcher_backend="deepep"moe_token_dispatcher_type="flex"moe_flex_dispatcher_backend="hybridep"--overlap-moe-expert-parallel-comm--overlap-grad-reduce--tp-comm-overlapmoe_token_dispatcher_type="alltoall"moe_token_dispatcher_type="flex"moe_flex_dispatcher_backend="deepep"moe_token_dispatcher_type="flex"moe_flex_dispatcher_backend="hybridep"--overlap-moe-expert-parallel-comm--overlap-grad-reduce--tp-comm-overlap| Platform | Recommended starting recipe |
|---|---|
| Hopper | FP8 blockwise |
| Blackwell | MXFP8 |
| Blackwell, speed-first exploration | NVFP4 after the BF16 or FP8 path is stable |
| 平台 | 推荐起始方案 |
|---|---|
| Hopper | FP8 blockwise |
| Blackwell | MXFP8 |
| Blackwell(优先追求速度) | BF16或FP8路径稳定后使用NVFP4 |
attnmoe_routermoe_preprocessattnmoe_routermoe_preprocess