-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathrun_job.sh
More file actions
47 lines (37 loc) · 1.68 KB
/
Copy pathrun_job.sh
File metadata and controls
47 lines (37 loc) · 1.68 KB
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
#!/bin/bash
#SBATCH --partition=gpu8_long
#SBATCH --ntasks=8
#SBATCH --cpus-per-task=1
#SBATCH --job-name=train_PCNN
#SBATCH --gres=gpu:1
#SBATCH --output=outputs/rq_train1_%A_%a.out
#SBATCH --error=outputs/rq_train1_%A_%a.err
#SBATCH --mem=200GB
##### above is for on nyulmc hpc: bigpurple #####
##### below is for on nyu hpc: prince #####
##!/bin/bash
##
##SBATCH --job-name=charrrr
##SBATCH --gres=gpu:1
##SBATCH --time=47:00:00
##SBATCH --mem=15GB
##SBATCH --output=outputs/%A.out
##SBATCH --error=outputs/%A.err
#module purge
#module load python3/intel/3.5.3
#module load pytorch/python3.5/0.2.0_3
#module load torchvision/python3.5/0.1.9
#python3 -m pip install comet_ml —user
echo "Starting at `date`"
echo "Job name: $SLURM_JOB_NAME JobID: $SLURM_JOB_ID"
echo "Running on hosts: $SLURM_NODELIST"
echo "Running on $SLURM_NNODES nodes."
echo "Running on $SLURM_NPROCS processors."
module purge
module load python/gpu/3.6.5
exp_name="pancan_21c_tr"
#nparam="--cuda --augment --dropout=0.1 --nonlinearity=leaky --init=xavier --calc_val_auc --root_dir=/gpfs/data/abl/deepomics/tsirigoslab/histopathology/Tiles/LungTilesSorted/ --num_class=3 --tile_dict_path=/gpfs/data/abl/deepomics/tsirigoslab/histopathology/Tiles/Lung_FileMappingDict.p"
nparam="--cuda --augment --dropout=0.1 --nonlinearity=leaky --init=xavier --root_dir=/gpfs/scratch/bilals01/AllDs600/AllDs600TilesSorted/ --num_class=21 --tile_dict_path=/gpfs/scratch/bilals01/AllDs600/AllDs600_FileMappingDict.p"
nexp="/gpfs/scratch/bilals01/test-repo/experiments/${exp_name}"
output="/gpfs/scratch/bilals01/test-repo/logs/${exp_name}.log"
python3 -u /gpfs/scratch/bilals01/test-repo/PathCNN/train.py $nparam --experiment $nexp > $output