forked from mlcommons/algorithmic-efficiency
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5b70b9
commit d4bf670
Showing
16 changed files
with
99 additions
and
149 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,39 +1,45 @@ | ||
#!/bin/bash -l | ||
|
||
# add conda TODO: make it more portable! | ||
source ~/miniconda3/etc/profile.d/conda.sh | ||
# provvisorio | ||
source ~/.bashrc | ||
|
||
# # add conda TODO: make it more portable! | ||
# source ~/miniconda3/etc/profile.d/conda.sh | ||
|
||
# Activate conda environment TODO: should I use source activate alpe instead? | ||
conda activate alpe | ||
|
||
echo "------ $CONDA_DEFAULT_ENV ------" | ||
|
||
# Env vars | ||
export CODE_DIR=~/algorithmic-efficiency | ||
export DATA_DIR=~/data | ||
export EXP_DIR=/ptmp/najroldi/exp/algoperf | ||
# export CUDA_VISIBLE_DEVICES=0 | ||
|
||
# Job specific vars | ||
workload=mnist | ||
dataset=MNIST | ||
submission='reference_algorithms/development_algorithms/mnist/mnist_pytorch/submission.py' | ||
search_space='reference_algorithms/development_algorithms/mnist/tuning_search_space.json' | ||
trials=1 | ||
name="mnist_01" | ||
name="mnist_02" | ||
|
||
# Print GPU infos | ||
# nvidia-smi | ||
num_gpu=2 | ||
|
||
# Execute python script | ||
python3 $CODE_DIR/submission_runner.py \ | ||
--workload=$workload \ | ||
--framework=pytorch \ | ||
--tuning_ruleset=external \ | ||
--data_dir=$DATA_DIR/$dataset \ | ||
--submission_path=$submission \ | ||
--tuning_search_space=$search_space \ | ||
--num_tuning_trials=$trials \ | ||
--experiment_dir=$EXP_DIR \ | ||
--experiment_name=$name \ | ||
--overwrite | ||
# python3 \ | ||
torchrun --redirects 1:0 \ | ||
--standalone \ | ||
--nproc_per_node=$num_gpu \ | ||
$CODE_DIR/submission_runner.py \ | ||
--workload=$workload \ | ||
--framework=pytorch \ | ||
--tuning_ruleset=external \ | ||
--data_dir=$DATA_DIR/$dataset \ | ||
--submission_path=$submission \ | ||
--tuning_search_space=$search_space \ | ||
--num_tuning_trials=$trials \ | ||
--experiment_dir=$EXP_DIR \ | ||
--experiment_name=$name \ | ||
--use_wandb \ | ||
--overwrite |
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 was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
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,9 @@ | ||
#!/bin/bash -l | ||
|
||
source ~/.bashrc | ||
|
||
echo $(which conda) | ||
|
||
which $(which ldconfig) | ||
|
||
echo "=== $CONDA_DEFAULT_ENV ===" |
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,17 @@ | ||
#!/bin/bash | ||
|
||
#SBATCH --job-name=prova2 | ||
#SBATCH --output=/ptmp/najroldi/logs/algoperf/job_%j.out | ||
#SBATCH --error=/ptmp/najroldi/logs/algoperf/job_%j.err | ||
|
||
#SBATCH -D ./ | ||
#SBATCH --time=00:03:00 | ||
#SBATCH --ntasks 1 | ||
#SBATCH --requeue | ||
|
||
# --- default case: use a single GPU on a shared node --- | ||
#SBATCH --gres=gpu:a100:1 | ||
#SBATCH --cpus-per-task=18 | ||
#SBATCH --mem=125000 | ||
|
||
srun ~/algorithmic-efficiency/exp/slurm/prova2.sh |
File renamed without changes.
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,5 @@ | ||
#!/bin/bash | ||
|
||
which ldconfig | ||
|
||
which conda |