3333from megatron .bridge .utils .cuda_graph import set_cuda_graph_modules
3434
3535
36- # Public Nemotron 3.5 Lightning checkpoint used by the legacy Nano recipe API.
37- _NEMOTRON_3_5_NANO_MODEL_ID = "nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16"
38- _NEMOTRON_3_5_NANO_MODEL_REVISION = "b3caaabed0263651a17dc1f2d4ce97e794f76c44" # pragma: allowlist secret
36+ # Public Nemotron 3.5 Lightning checkpoint used by the Lightning recipe API.
37+ _NEMOTRON_3_5_LIGHTNING_MODEL_ID = "nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16"
38+ _NEMOTRON_3_5_LIGHTNING_MODEL_REVISION = "b3caaabed0263651a17dc1f2d4ce97e794f76c44" # pragma: allowlist secret
3939
4040
4141def nemotronh_56b_pretrain_64gpu_gb200_fp8cs_config () -> ConfigContainer :
@@ -458,18 +458,18 @@ def nemotron_3_nano_pretrain_8gpu_gb200_nvfp4_config() -> ConfigContainer:
458458 return cfg
459459
460460
461- def nemotron_3_5_nano_pretrain_8gpu_gb200_bf16_config () -> ConfigContainer :
462- """Nemotron 3.5 Nano pretrain: 8× GB200, BF16."""
461+ def nemotron_3_5_lightning_pretrain_8gpu_gb200_bf16_config () -> ConfigContainer :
462+ """Nemotron 3.5 Lightning pretrain: 8× GB200, BF16."""
463463 cfg = nemotron_3_nano_pretrain_8gpu_gb200_bf16_config ()
464464 cfg .model .mtp_num_layers = 2
465465 cfg .model .mtp_hybrid_override_pattern = "*E"
466466 cfg .model .mtp_use_repeated_layer = True
467467 cfg .model .keep_mtp_spec_in_bf16 = True
468468 cfg .model .mtp_loss_scaling_factor = 0.3
469- cfg .model .hf_model_id = _NEMOTRON_3_5_NANO_MODEL_ID
470- cfg .model .hf_model_revision = _NEMOTRON_3_5_NANO_MODEL_REVISION
471- cfg .tokenizer .tokenizer_model = _NEMOTRON_3_5_NANO_MODEL_ID
472- cfg .tokenizer .hf_tokenizer_kwargs = {"revision" : _NEMOTRON_3_5_NANO_MODEL_REVISION }
469+ cfg .model .hf_model_id = _NEMOTRON_3_5_LIGHTNING_MODEL_ID
470+ cfg .model .hf_model_revision = _NEMOTRON_3_5_LIGHTNING_MODEL_REVISION
471+ cfg .tokenizer .tokenizer_model = _NEMOTRON_3_5_LIGHTNING_MODEL_ID
472+ cfg .tokenizer .hf_tokenizer_kwargs = {"revision" : _NEMOTRON_3_5_LIGHTNING_MODEL_REVISION }
473473 cfg .env_vars = {
474474 ** COMMON_PERF_ENV_VARS ,
475475 "CUDA_DEVICE_MAX_CONNECTIONS" : 32 ,
@@ -489,18 +489,18 @@ def nemotron_3_5_nano_pretrain_8gpu_gb200_bf16_config() -> ConfigContainer:
489489 return cfg
490490
491491
492- def nemotron_3_5_nano_pretrain_8gpu_gb200_fp8mx_config () -> ConfigContainer :
493- """Nemotron 3.5 Nano pretrain: 8× GB200, MXFP8."""
492+ def nemotron_3_5_lightning_pretrain_8gpu_gb200_fp8mx_config () -> ConfigContainer :
493+ """Nemotron 3.5 Lightning pretrain: 8× GB200, MXFP8."""
494494 cfg = nemotron_3_nano_pretrain_8gpu_gb200_fp8mx_config ()
495495 cfg .model .mtp_num_layers = 2
496496 cfg .model .mtp_hybrid_override_pattern = "*E"
497497 cfg .model .mtp_use_repeated_layer = True
498498 cfg .model .keep_mtp_spec_in_bf16 = True
499499 cfg .model .mtp_loss_scaling_factor = 0.3
500- cfg .model .hf_model_id = _NEMOTRON_3_5_NANO_MODEL_ID
501- cfg .model .hf_model_revision = _NEMOTRON_3_5_NANO_MODEL_REVISION
502- cfg .tokenizer .tokenizer_model = _NEMOTRON_3_5_NANO_MODEL_ID
503- cfg .tokenizer .hf_tokenizer_kwargs = {"revision" : _NEMOTRON_3_5_NANO_MODEL_REVISION }
500+ cfg .model .hf_model_id = _NEMOTRON_3_5_LIGHTNING_MODEL_ID
501+ cfg .model .hf_model_revision = _NEMOTRON_3_5_LIGHTNING_MODEL_REVISION
502+ cfg .tokenizer .tokenizer_model = _NEMOTRON_3_5_LIGHTNING_MODEL_ID
503+ cfg .tokenizer .hf_tokenizer_kwargs = {"revision" : _NEMOTRON_3_5_LIGHTNING_MODEL_REVISION }
504504 cfg .env_vars = {
505505 ** COMMON_PERF_ENV_VARS ,
506506 "CUDA_DEVICE_MAX_CONNECTIONS" : 32 ,
@@ -520,9 +520,9 @@ def nemotron_3_5_nano_pretrain_8gpu_gb200_fp8mx_config() -> ConfigContainer:
520520 return cfg
521521
522522
523- def nemotron_3_5_nano_pretrain_8gpu_gb200_fp8mx_fsdp_config () -> ConfigContainer :
524- """Nemotron 3.5 Nano pretrain: 8× GB200, MXFP8, Megatron FSDP."""
525- cfg = nemotron_3_5_nano_pretrain_8gpu_gb200_fp8mx_config ()
523+ def nemotron_3_5_lightning_pretrain_8gpu_gb200_fp8mx_fsdp_config () -> ConfigContainer :
524+ """Nemotron 3.5 Lightning pretrain: 8× GB200, MXFP8, Megatron FSDP."""
525+ cfg = nemotron_3_5_lightning_pretrain_8gpu_gb200_fp8mx_config ()
526526
527527 # FSDP reduces the model-state footprint enough to use the larger measured
528528 # microbatch. Megatron FSDP registers module hooks that Transformer Engine
@@ -565,18 +565,18 @@ def nemotron_3_5_nano_pretrain_8gpu_gb200_fp8mx_fsdp_config() -> ConfigContainer
565565 return cfg
566566
567567
568- def nemotron_3_5_nano_pretrain_8gpu_gb200_nvfp4_config () -> ConfigContainer :
569- """Nemotron 3.5 Nano pretrain: 8× GB200, NVFP4."""
568+ def nemotron_3_5_lightning_pretrain_8gpu_gb200_nvfp4_config () -> ConfigContainer :
569+ """Nemotron 3.5 Lightning pretrain: 8× GB200, NVFP4."""
570570 cfg = nemotron_3_nano_pretrain_8gpu_gb200_nvfp4_config ()
571571 cfg .model .mtp_num_layers = 2
572572 cfg .model .mtp_hybrid_override_pattern = "*E"
573573 cfg .model .mtp_use_repeated_layer = True
574574 cfg .model .keep_mtp_spec_in_bf16 = True
575575 cfg .model .mtp_loss_scaling_factor = 0.3
576- cfg .model .hf_model_id = _NEMOTRON_3_5_NANO_MODEL_ID
577- cfg .model .hf_model_revision = _NEMOTRON_3_5_NANO_MODEL_REVISION
578- cfg .tokenizer .tokenizer_model = _NEMOTRON_3_5_NANO_MODEL_ID
579- cfg .tokenizer .hf_tokenizer_kwargs = {"revision" : _NEMOTRON_3_5_NANO_MODEL_REVISION }
576+ cfg .model .hf_model_id = _NEMOTRON_3_5_LIGHTNING_MODEL_ID
577+ cfg .model .hf_model_revision = _NEMOTRON_3_5_LIGHTNING_MODEL_REVISION
578+ cfg .tokenizer .tokenizer_model = _NEMOTRON_3_5_LIGHTNING_MODEL_ID
579+ cfg .tokenizer .hf_tokenizer_kwargs = {"revision" : _NEMOTRON_3_5_LIGHTNING_MODEL_REVISION }
580580 cfg .env_vars = {
581581 ** COMMON_PERF_ENV_VARS ,
582582 "CUDA_DEVICE_MAX_CONNECTIONS" : 32 ,
0 commit comments