Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.

Commit 35e4393

Browse files
authored
Update conditional None handling (#436)
* Update conditional None handling * Formatting --------- Co-authored-by: Dong Hyuk Chang <[email protected]>
1 parent f283b18 commit 35e4393

File tree

1 file changed

+4
-1
lines changed
  • launcher_scripts/nemo_launcher/collections/eval_harness/lm_eval/models

1 file changed

+4
-1
lines changed

launcher_scripts/nemo_launcher/collections/eval_harness/lm_eval/models/nemo_gpt3.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,10 @@ def setup_trainer_and_model(args):
149149
)
150150
if trainer.precision == "16":
151151
pretrained_cfg.megatron_amp_O2 = False
152-
if args.dist_ckpt_load_strictness is not None:
152+
if (
153+
args.dist_ckpt_load_strictness is not None
154+
and args.dist_ckpt_load_strictness != "None"
155+
):
153156
pretrained_cfg.dist_ckpt_load_strictness = (
154157
args.dist_ckpt_load_strictness
155158
)

0 commit comments

Comments
 (0)