Skip to content

Commit 9cc3625

Browse files
committed
fix bug
Signed-off-by: Jennifer Chen <[email protected]>
1 parent 925a979 commit 9cc3625

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

examples/nemo_run/common/in_memory_mmlu.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323

2424
def parse_args():
2525
parser = argparse.ArgumentParser(
26-
description="Run MMLU evaluation with ModelOpt Megatron model. Provide either --nemo_ckpt or --ckpt_dir"
26+
description=(
27+
"Run MMLU evaluation with ModelOpt Megatron model. Provide either --nemo_ckpt"
28+
"or --finetuned_ckpt_dir"
29+
)
2730
)
2831
group = parser.add_mutually_exclusive_group(required=True)
2932
group.add_argument("--nemo_ckpt", type=str, required=False, help="Path to NeMo checkpoint.")
@@ -46,7 +49,7 @@ def parse_args():
4649
args = parse_args()
4750
ckpt_path = args.nemo_ckpt
4851
if args.finetuned_ckpt_dir:
49-
ckpt_path = _get_most_recent_ckpt(args.ckpt_dir)
52+
ckpt_path = _get_most_recent_ckpt(args.finetuned_ckpt_dir)
5053
model, trainer = setup_trainer_and_restore_model_with_modelopt_spec(
5154
ckpt_path,
5255
tensor_model_parallel_size=args.tensor_parallelism,

0 commit comments

Comments
 (0)