bridge.perf_recipes.nemotronh.common#
Common helpers for nemotronh performance recipes.
Module Contents#
Functions#
Apply the canonical Nemotron 3 Nano performance workload defaults. |
|
Return the NVFP4 precision config used by Nemotron 3 Super perf recipes. |
|
Return the NVFP4 precision config used by Nemotron 3 Ultra perf recipes. |
|
Apply shared Nemotron 3 Super perf defaults after recipe-specific overrides. |
|
Enable the HybridEP full-iteration stack for Nemotron 3 Super. |
|
Enable full-iteration capture with static MoE buffers for Lightning. |
|
Apply shared Nemotron 3 Ultra perf defaults after recipe-specific overrides. |
|
Apply rack-local dense GTP settings for Nemotron 3 Ultra on GB300. |
|
Apply Megatron-FSDP (HSDP) settings for Nemotron 3 Ultra on GB300. |
Data#
API#
- bridge.perf_recipes.nemotronh.common._TE_QUANT_CFG_PATH#
‘with_name(…)’
- bridge.perf_recipes.nemotronh.common._GB300_NVLINK_DOMAIN_GPUS#
64
- bridge.perf_recipes.nemotronh.common._apply_nemotron_3_nano_perf_defaults(
- cfg: megatron.bridge.training.config.ConfigContainer,
Apply the canonical Nemotron 3 Nano performance workload defaults.
- bridge.perf_recipes.nemotronh.common._nemotron_3_super_nvfp4_precision() megatron.bridge.training.mixed_precision.MixedPrecisionConfig#
Return the NVFP4 precision config used by Nemotron 3 Super perf recipes.
- bridge.perf_recipes.nemotronh.common._nemotron_3_ultra_nvfp4_precision() megatron.bridge.training.mixed_precision.MixedPrecisionConfig#
Return the NVFP4 precision config used by Nemotron 3 Ultra perf recipes.
- bridge.perf_recipes.nemotronh.common._apply_nemotron_3_super_perf_defaults(
- cfg: megatron.bridge.training.config.ConfigContainer,
Apply shared Nemotron 3 Super perf defaults after recipe-specific overrides.
- bridge.perf_recipes.nemotronh.common._enable_nemotron_3_super_full_iteration(
- cfg: megatron.bridge.training.config.ConfigContainer,
Enable the HybridEP full-iteration stack for Nemotron 3 Super.
- bridge.perf_recipes.nemotronh.common._enable_nemotron_3_5_lightning_full_iteration(
- cfg: megatron.bridge.training.config.ConfigContainer,
Enable full-iteration capture with static MoE buffers for Lightning.
- bridge.perf_recipes.nemotronh.common._apply_nemotron_3_ultra_perf_defaults(
- cfg: megatron.bridge.training.config.ConfigContainer,
Apply shared Nemotron 3 Ultra perf defaults after recipe-specific overrides.
- bridge.perf_recipes.nemotronh.common._apply_nemotron_3_ultra_gtp(
- cfg: megatron.bridge.training.config.ConfigContainer,
Apply rack-local dense GTP settings for Nemotron 3 Ultra on GB300.
Dense weights are sharded across one 64-GPU NVLink domain. Routed-expert weights remain unsharded by GTP because EP64 already spans that domain; this avoids expert-weight all-gathers across racks.
- bridge.perf_recipes.nemotronh.common._apply_nemotron_3_ultra_fsdp_hsdp(
- cfg: megatron.bridge.training.config.ConfigContainer,
- num_gpus: int,
Apply Megatron-FSDP (HSDP) settings for Nemotron 3 Ultra on GB300.
Shards params/grads/optimizer within each NVLink domain and replicate (optimizer-sharded) across domains, with BF16 gradient comm, FP32 main params, and BF16 main grads. Applied last so it wins over the generic perf defaults.