File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,17 +19,17 @@ cd $(dirname $0)
1919
2020set -e
2121
22- # Vars without defaults
22+ # Vars without defaults (support both old and new variable names for backwards compatibility)
2323# Slurm settings
2424: " ${ACCOUNT:? ACCOUNT not set} "
2525: " ${PARTITION:? PARTITION not set} "
2626
2727# Job settings
28- : " ${LOG_DIR:? LOG_DIR not set} "
28+ LOG_DIR= " ${LOG_DIR:- ${JOB_DIR : ? LOG_DIR or JOB_DIR not set} } "
2929: " ${IMAGE:? IMAGE not set} "
3030
3131# Dataset settings
32- : " ${DATA_DIR:? DATA_DIR not set} "
32+ DATA_DIR= " ${DATA_DIR:- ${DATADIR :- ${PREPROCESSED_PATH : ? DATA_DIR, DATADIR, or PREPROCESSED_PATH not set} } } "
3333: " ${MODEL_CKPT:? MODEL_CKPT not set} "
3434
3535# Vars with defaults
6363# Training settings
6464: " ${MAX_STEPS:= 1000} "
6565: " ${WARMUP_STEPS:= 0} "
66- : " ${LR:= " 2e-4" } "
66+ LR= " ${LR:- ${MAX_LR :- " 2e-4" } } "
6767: " ${MIN_LR:= " 5e-6" } "
6868: " ${SEED:= 1234} "
6969
You can’t perform that action at this time.
0 commit comments