-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_SC-UL_exp3.sh
executable file
·67 lines (62 loc) · 1.66 KB
/
run_SC-UL_exp3.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
#### Exp3 Ontix robustness ########
echo "Doing Experiment 3: ontix robustness"
# copy cfg in root
cp ./config_runs/Exp3/*_config.yaml .
# run AUTOENCODIX
for config in ./Exp3*_config.yaml; do
if [[ $config == *"_tune_"* ]]; then
runtime=48
else
runtime=12
fi
sbatch <<-EOT
#!/bin/bash
#SBATCH --job-name=autoencoder_Exp3
#SBATCH --output=./reports/$(basename $config _config.yaml)/slurm_%a_%j.out
#SBATCH --error=./reports/$(basename $config _config.yaml)/slurm_%a_%j.err
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=8
#SBATCH --partition=clara
#SBATCH --time="$runtime":00:00
#SBATCH --mem=64G
#SBATCH --gres=gpu:rtx2080ti:1
if [ -z "$VIRTUAL_ENV" ];
then
source venv-gallia/bin/activate
echo $VIRTUAL_ENV
fi
export CUBLAS_WORKSPACE_CONFIG=:16:8
make ml_task RUN_ID=$(basename $config _config.yaml)
nephelai upload-with-fs reports/$(basename $config _config.yaml)
bash ./clean.sh -r $(basename $config _config.yaml) -k -d # Clean up and keep only reports folder
exit 0
EOT
done
## get paper visualization
sbatch <<EOT
#!/bin/bash
#SBATCH --job-name=autoencoder_Exp3
#SBATCH --output=./reports/slurm_%a_%j.out
#SBATCH --error=./reports/slurm_%a_%j.err
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=8
#SBATCH --partition=paul
#SBATCH --time=2:00:00
#SBATCH --mem=32G
#SBATCH --dependency singleton
if [ -z "$VIRTUAL_ENV" ];
then
source venv-gallia/bin/activate
echo $VIRTUAL_ENV
fi
python ./src/visualization/Exp3_visualization.py
# copy example latent dists
nephelai upload-with-fs reports/paper-visualizations/Exp3
# clean up
rm ./Exp3*_config.yaml
exit 0
EOT
###################################