Skip to content

Commit 38e318c

Browse files
committed
Fix env vars
1 parent ff7e160 commit 38e318c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

moe_pretraining/nemo/run_deepseek_v3_671b.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ set -e
2929
: "${IMAGE:?IMAGE not set}"
3030

3131
# Dataset settings
32-
: "${PREPROCESSED_PATH:?PREPROCESSED_PATH not set}"
32+
: "${DATA_DIR:?DATA_DIR not set}"
3333
: "${MODEL_CKPT:?MODEL_CKPT not set}"
3434

3535
# Vars with defaults
@@ -78,14 +78,12 @@ set -e
7878
: "${DETACH:=1}"
7979

8080
# Build mounts
81-
MOUNTS="${LOG_DIR}:/output,${LOG_DIR}:/mlperf-outputs,${PREPROCESSED_PATH}:/preproc_data,${MODEL_CKPT}:/checkpoint"
81+
MOUNTS="${LOG_DIR}:/output,${LOG_DIR}:/mlperf-outputs,${DATA_DIR}:/preproc_data,${MODEL_CKPT}:/checkpoint,${DATA_DIR}/tokenizer:/tokenizer"
8282

8383
if [ -n "$TMP_NPY_INDEX" ]; then
8484
MOUNTS="${MOUNTS},${TMP_NPY_INDEX}:/npy_index"
8585
fi
8686

87-
# Build environment variables
88-
ENVVARS="PREPROCESSED_PATH=/preproc_data"
8987

9088
# Build launcher arguments
9189
LAUNCHER_ARGS="--account $ACCOUNT --partition $PARTITION"
@@ -95,7 +93,6 @@ LAUNCHER_ARGS="$LAUNCHER_ARGS --time_limit $TIME"
9593
LAUNCHER_ARGS="$LAUNCHER_ARGS --container_image $IMAGE"
9694
LAUNCHER_ARGS="$LAUNCHER_ARGS --log_dir $LOG_DIR"
9795
LAUNCHER_ARGS="$LAUNCHER_ARGS --mounts $MOUNTS"
98-
LAUNCHER_ARGS="$LAUNCHER_ARGS --envvars $ENVVARS"
9996

10097
if [ -n "$EXP_NAME" ]; then
10198
LAUNCHER_ARGS="$LAUNCHER_ARGS --exp_name $EXP_NAME"

0 commit comments

Comments
 (0)