Skip to content

Commit b892a0e

Browse files
committed
Fix: Remove moe_preprocess from partial CG scope
Signed-off-by: Ravi Ghadia <rghadia@nvidia.com>
1 parent 3ea6285 commit b892a0e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/megatron/bridge/perf_recipes/nemotronh/gb200/nemotronh.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ def nemotron_3_ultra_pretrain_256gpu_gb200_fp8mx_config(*, num_gpus: int = 256)
249249
cfg.model.gtp_remat_opt_in_modules = ["moe_latent_proj"]
250250

251251
cfg.model.cuda_graph_impl = "local"
252-
set_cuda_graph_modules(cfg.model, ["attn", "mamba", "moe_preprocess"])
253-
#TODO: "moe_router" needs to be disabled due to MCore PR 7046, performing a CPU-to-GPU copy for per token loss
252+
set_cuda_graph_modules(cfg.model, ["attn", "mamba"])
253+
#TODO: "moe_preprocess", "moe_router" needs to be disabled due to MCore PR 7046, performing a CPU-to-GPU copy for per token loss
254254
# TE attention requires TE's RNG tracker while MCore local graphs are capturing.
255255
cfg.rng.te_rng_tracker = cfg.model.use_te_rng_tracker = True
256256

‎src/megatron/bridge/perf_recipes/nemotronh/gb300/nemotronh.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ def _nemotron_3_ultra_gb300_fp8mx_config(
260260
_apply_nemotron_3_ultra_gtp(cfg)
261261

262262
cfg.model.cuda_graph_impl = "local"
263-
set_cuda_graph_modules(cfg.model, ["attn", "mamba", "moe_preprocess"])
264-
#TODO: "moe_router" needs to be disabled due to MCore PR 7046, performing a CPU-to-GPU copy for per token loss
263+
set_cuda_graph_modules(cfg.model, ["attn", "mamba"])
264+
#TODO: "moe_preprocess", "moe_router" needs to be disabled due to MCore PR 7046, performing a CPU-to-GPU copy for per token loss
265265
# TE attention requires TE's RNG tracker while MCore local graphs are capturing.
266266
cfg.rng.te_rng_tracker = cfg.model.use_te_rng_tracker = True
267267

0 commit comments

Comments
 (0)