Skip to content

Commit ecce325

Browse files
Merge pull request #1083 from duncanspani/develop
Add workload var for added CLI args to py-nemo-2 application.
2 parents 98da2ab + 82b6bf4 commit ecce325

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

var/ramble/repos/builtin/applications/py-nemo-2/application.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class PyNemo2(BasePyNemo):
4040
"pretraining_exec",
4141
'bash -c "cd /opt/NeMo; git rev-parse HEAD; '
4242
"{custom_injected_string}; "
43-
'python3 -u {experiment_run_dir}/{nemo_config_name};"',
43+
'python3 -u {experiment_run_dir}/{nemo_config_name} {nemo_cli_args};"',
4444
use_mpi=True,
4545
)
4646

@@ -68,6 +68,13 @@ class PyNemo2(BasePyNemo):
6868
workload_group="pretraining",
6969
)
7070

71+
workload_variable(
72+
"nemo_cli_args",
73+
default="",
74+
description="CLI args to pass to append to the Python Nemo command.",
75+
workload_group="pretraining",
76+
)
77+
7178
workload_variable(
7279
"results_mount",
7380
default="{experiment_run_dir}:{experiment_run_dir}",

0 commit comments

Comments
 (0)