-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsubmit_job_downstream_rsna_any.sh
29 lines (25 loc) · 1.16 KB
/
submit_job_downstream_rsna_any.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
#!/bin/bash
#SBATCH --job-name=rsna_any_linear_ft_3chans_p12_ce_2xp_w_lr1e-5_100%_vit_seed_2004
#SBATCH --nodes=1
#SBATCH --cpus-per-task=4
##SBATCH --ntasks-per-node=1
#SBATCH --gres=gpu:a100:1
#SBATCH --time=3-00:00:00
#SBATCH --mem-per-cpu=32G
#SBATCH --partition=a100_short
#SBATCH --output=../log/rsna_any_linear_ft_3chans_p12_ce_2xp_w_lr1e-5_100%_vit_seed_2004.out
#SBATCH --error=../log/rsna_any_linear_ft_3chans_p12_ce_2xp_w_lr1e-5_100%_vit_seed_2004.err
# activate conda env
source activate head_ct
# module load cuda/12.1
# module load gcc/10.2.0
# debugging flags (optional)
export NCCL_DEBUG=INFO
export PYTHONFAULTHANDLER=1
torchrun --nnodes 1 --nproc_per_node 1 --master_port 12402 ../main_downstream.py --local_rank 0 \
--model_name "vit" --batch_size 64 --num_workers 4 --max_epochs 10 --base_lr 1e-5 \
--cfg ../configs/downstream/vit_HeadCT_rsna.yaml \
--optimizer "AdamW" --scheduler "cosine" --weight_decay 0.01 --grad_clip 1.0 \
--preds_save_name "rsna_any_linear_ft_3chans_p12_2xp_w_ce_lr1e-5_100%_vit_seed_2004" --wandb_project "headct_ft" \
--classifier "linear" --label_name "any" --dataset "rsna" --seed 2004 \
--filename "rsna_any"