Skip to content

Commit 615031e

Browse files
authored
add NUM_NODES variable to converter launcher (#93)
1 parent 977fe59 commit 615031e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pretrain/scripts/v4-corpus-ratio-abci/convert/run_convert.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
set -eu -o pipefail
44

5-
if [ $# -ne 4 ]; then
6-
>&2 echo "Usage: $0 <RESERVATION_ID> <EXPERIMENT_ID> <EXPERIMENT_DIR> <TASK_NAME>"
7-
>&2 echo "Example: $0 R0123456789 0123 /path/to/0123_experiment task_name"
5+
if [ $# -ne 5 ]; then
6+
>&2 echo "Usage: $0 <RESERVATION_ID> <EXPERIMENT_ID> <EXPERIMENT_DIR> <TASK_NAME> <NUM_NODES>"
7+
>&2 echo "Example: $0 R0123456789 0123 /path/to/0123_experiment task_name 1"
88
exit 1
99
fi
1010

@@ -14,6 +14,7 @@ RESERVATION_ID=$1; shift
1414
EXPERIMENT_ID=$1; shift
1515
EXPERIMENT_DIR=$1; shift
1616
TASK_NAME=$1; shift
17+
NUM_NODES=$1; shift
1718

1819
# This directory
1920
SCRIPT_ROOT=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
@@ -39,7 +40,7 @@ for iter in $(seq 1000 1000 ${LAST_ITER}); do
3940
-P gcg51557 \
4041
-q ${RESERVATION_ID} \
4142
-N ${EXPERIMENT_ID}_convert \
42-
-l select=1,walltime=6:00:00 \
43+
-l select=${NUM_NODES},walltime=6:00:00 \
4344
-v RTYPE=rt_HF,EXPERIMENT_DIR=${EXPERIMENT_DIR},TASK_NAME=${TASK_NAME},ITER=${iter} \
4445
-o /dev/null \
4546
-e /dev/null \

0 commit comments

Comments
 (0)