Skip to content

Commit ea013a7

Browse files
committed
Adjust --gres=gpu:8 to number of user specified devices
Signed-off-by: Sean Smith <[email protected]>
1 parent 43cf469 commit ea013a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

large_language_model_pretraining/nemo/pretrain_llama31.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def slurm_executor(
7575
gpus_per_node=devices,
7676
mem="0",
7777
exclusive=True,
78-
gres="gpu:8",
78+
gres=f"gpu:{devices}",
7979
packager=run.GitArchivePackager(),
8080
dependencies=dependencies,
8181
)

0 commit comments

Comments
 (0)