Skip to content
Snippets Groups Projects
Commit 07afbbf3 authored by Jan Ebert's avatar Jan Ebert
Browse files

Fix quitting upon success

parent 4bc2d0f0
Branches
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ if ! [ -e activate.bash ]; then
echo 'Please execute the sbatch script from the `run_scripts` directory.'
exit 1
fi
source activate.bash && exit 1
source activate.bash || exit 1
INPUT_PATH=/p/scratch/opengptx-elm/ebert1/opengpt/bigscience/oscar/oscar-1GB.jsonl
OUTPUT_PREFIX="$ROOT_OUTPUT_DIR"/oscar
......
......@@ -13,9 +13,9 @@ if ! [ -e modules.bash ]; then
exit 1
fi
module purge
source modules.bash && exit 1
source modules.bash || exit 1
source variables.bash && exit 1
source variables.bash || exit 1
mkdir -p "$ROOT_DIR"
mkdir -p "$(dirname "$VENV_DIR")"
......@@ -37,7 +37,7 @@ export CUDA_VISIBLE_DEVICES=0
[ -d "$VENV_DIR" ] || python -m venv --system-site-packages "$VENV_DIR"
source activate.bash && exit 1
source activate.bash || exit 1
python -m pip install --upgrade pip
......
......@@ -22,7 +22,7 @@ if ! [ -e activate.bash ]; then
echo 'Please execute the sbatch script from the `run_scripts` directory.'
exit 1
fi
source activate.bash && exit 1
source activate.bash || exit 1
#ROUND=3
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment