Skip to content

Commit 41728fe

Browse files
committed
update tests
1 parent d5d39a7 commit 41728fe

4 files changed

Lines changed: 497 additions & 13 deletions

File tree

‎src/megatron/bridge/models/nemotronh/nemotron_h_bridge.py‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -291,15 +291,15 @@ def provider_bridge(self, hf_pretrained: PreTrainedCausalLM) -> MambaModelProvid
291291
if kv_channels is not None:
292292
provider.kv_channels = kv_channels
293293

294-
provider.moe_aux_loss_coeff = 0.0001
295-
provider.moe_router_score_function = "sigmoid"
296-
provider.moe_router_enable_expert_bias = True
297-
provider.moe_router_load_balancing_type = "seq_aux_loss"
298-
provider.moe_router_dtype = "fp32"
299-
provider.moe_grouped_gemm = True
300-
provider.moe_token_dispatcher_type = "alltoall"
301-
provider.moe_permute_fusion = True
302-
provider.moe_shared_expert_overlap = True
294+
provider.moe_aux_loss_coeff = 0.0001
295+
provider.moe_router_score_function = "sigmoid"
296+
provider.moe_router_enable_expert_bias = True
297+
provider.moe_router_load_balancing_type = "seq_aux_loss"
298+
provider.moe_router_dtype = "fp32"
299+
provider.moe_grouped_gemm = True
300+
provider.moe_token_dispatcher_type = "alltoall"
301+
provider.moe_permute_fusion = True
302+
provider.moe_shared_expert_overlap = True
303303

304304
if hasattr(hf_config, "moe_latent_size"):
305305
provider.moe_latent_size = hf_config.moe_latent_size

‎src/megatron/bridge/recipes/nemotronh/nemotron_3_super.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ def nemotron_3_super_pretrain_config() -> ConfigContainer:
6666
cfg.model.moe_token_dispatcher_type = "alltoall"
6767
cfg.model.moe_shared_expert_overlap = False
6868
cfg.model.moe_flex_dispatcher_backend = "hybridep"
69-
cfg.model.moe_router_force_load_balancing = True
7069

7170
# Training Configuration
7271
cfg.train.train_iters = 39735
@@ -190,7 +189,6 @@ def nemotron_3_super_finetune_config(
190189
cfg.model.moe_token_dispatcher_type = "alltoall"
191190
cfg.model.moe_shared_expert_overlap = False
192191
cfg.model.moe_flex_dispatcher_backend = "hybridep"
193-
cfg.model.moe_router_force_load_balancing = True
194192

195193
# CUDA Graph (TE impl + partial scopes: ~40% throughput gain over disabled)
196194
cfg.model.cuda_graph_impl = "transformer_engine"
@@ -290,7 +288,6 @@ def nemotron_3_super_debug_pretrain_config() -> ConfigContainer:
290288
cfg.model.moe_token_dispatcher_type = "alltoall"
291289
cfg.model.moe_shared_expert_overlap = False
292290
cfg.model.moe_flex_dispatcher_backend = "hybridep"
293-
cfg.model.moe_router_force_load_balancing = True
294291

295292
# CUDA Graph (TE impl + partial scopes: ~40% throughput gain over disabled)
296293
cfg.model.cuda_graph_impl = "transformer_engine"

0 commit comments

Comments
 (0)