-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathr8w1n416.sh
39 lines (32 loc) · 1.15 KB
/
r8w1n416.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
#!/bin/bash
#SBATCH --partition=deep
#SBATCH --nodes=1
#SBATCH --cpus-per-task=4
#SBATCH --mem=32000
# only use the following on partition with GPUs
#SBATCH --gres=gpu:1
#SBATCH --job-name="r8w1n416"
#SBATCH --output=exp_logs/r8w1n416-%j.out
# only use the following if you want email notification
####SBATCH --mail-user=youremailaddress
####SBATCH --mail-type=ALL
# list out some useful information
echo "SLURM_JOBID="$SLURM_JOBID
echo "SLURM_JOB_NODELIST"=$SLURM_JOB_NODELIST
echo "SLURM_NNODES"=$SLURM_NNODES
echo "SLURMTMPDIR="$SLURMTMPDIR
echo "working directory = "$SLURM_SUBMIT_DIR
# sample job
NPROCS=`sbatch --nodes=${SLURM_NNODES} bash -c 'hostname' |wc -l`
echo NPROCS=$NPROCS
cd ../moco; python main_moco.py -a resnet18 \
--lr 0.0001 --batch-size 16 \
--epochs 20 \
--world-size 1 --rank 0 \
--mlp --moco-t 0.2 --from-imagenet \
--dist-url 'tcp://localhost:10001' --multiprocessing-distributed \
--aug-setting chexpert --rotate 10 --maintain-ratio \
--train_data /deep/group/data/moco/chexpert-proper-test/data/full_train \
--exp-name r8w1n416_20200911h13
# done
echo "Done"