-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Fabrice Normandin <[email protected]> Make all job script executable Signed-off-by: Fabrice Normandin <[email protected]> Move common stuff to a `run_example` function Signed-off-by: Fabrice Normandin <[email protected]> Add regex substitutions before comparing outputs Signed-off-by: Fabrice Normandin <[email protected]> Make the Pytorch-based examples reproducible Signed-off-by: Fabrice Normandin <[email protected]> Reduce the number of GPUs per node from 4 to 2 Signed-off-by: Fabrice Normandin <[email protected]> Unified test for pytorch-based examples Signed-off-by: Fabrice Normandin <[email protected]> Add a `make_env.sh` sbatch script in pytorch setup Signed-off-by: Fabrice Normandin <[email protected]> Simplify the `test_examples.py` file Signed-off-by: Fabrice Normandin <[email protected]> Update the regression files for the examples Signed-off-by: Fabrice Normandin <[email protected]> Add regression file for multi-node example Signed-off-by: Fabrice Normandin <[email protected]> Add the `pip install orion` line to Orion example Signed-off-by: Fabrice Normandin <[email protected]> Add a test for the checkpointing example Signed-off-by: Fabrice Normandin <[email protected]> Add the regression files for checkpointing example Signed-off-by: Fabrice Normandin <[email protected]> Fix regression file for the ckpt example test Signed-off-by: Fabrice Normandin <[email protected]> Split test code into testutils and test file Signed-off-by: Fabrice Normandin <[email protected]> Start to add test for "HPO with Orion" example Signed-off-by: Fabrice Normandin <[email protected]> Remove potentially buggy asserts Signed-off-by: Fabrice Normandin <[email protected]> Make a conda env for the Orion example Signed-off-by: Fabrice Normandin <[email protected]>
- Loading branch information
Showing
29 changed files
with
1,306 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
#SBATCH --gres=gpu:1 | ||
#SBATCH --cpus-per-task=1 | ||
#SBATCH --mem=16G | ||
#SBATCH --time=00:30:00 | ||
|
||
# NOTE: Run this either with `sbatch make_env.sh` or within an interactive job with `salloc`: | ||
# salloc --gres=gpu:1 --cpus-per-task=1 --mem=16G --time=00:30:00 | ||
|
||
# Exit on error | ||
set -e | ||
|
||
module --quiet purge | ||
module load anaconda/3 | ||
module load cuda/11.7 | ||
|
||
ENV_NAME=pytorch | ||
|
||
## Create the environment (see the example): | ||
conda create --yes --name $ENV_NAME python=3.9 pytorch torchvision torchaudio pytorch-cuda=11.7 --channel pytorch --channel nvidia | ||
# Install as many packages as possible with Conda: | ||
conda install --yes --name $ENV_NAME tqdm --channel conda-forge | ||
# Activate the environment: | ||
conda activate $ENV_NAME | ||
# Install the rest of the packages with pip: | ||
pip install rich | ||
conda env export --no-builds --from-history --file environment.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.