-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitb32_alt_0.8.sh
More file actions
47 lines (42 loc) · 1.16 KB
/
vitb32_alt_0.8.sh
File metadata and controls
47 lines (42 loc) · 1.16 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 -x
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=48
#SBATCH --gpus-per-node=4
#SBATCH --mem=512G
#SBATCH --job-name=dm_alt_0.8
#SBATCH --partition=partition_name # Partition to run on
scontrol show job "$SLURM_JOB_ID"
source ~/.bashrc
cd /path/to/cabs
source .env/bin/activate
export CUDA_VISIBLE_DEVICES=0,1,2,3
export NCCL_DEBUG=INFO
export OMP_NUM_THREADS=12
export MASTER_PORT=29500
export PYTHONPATH="$PYTHONPATH:$PWD/src"
torchrun --nproc_per_node=4 --master_port=$MASTER_PORT src/open_clip_train/main.py \
--report-to wandb \
--wandb-project-name "cabs" \
--save-frequency 1 \
--train-num-samples 128000000 \
--dataset-type "webdataset" \
--train-data "/path/to/webdataset/shards/{00000..20000}.tar" \
--batch-size 5120 \
--accum-freq 1 \
--precision amp \
--workers 8 \
--epochs 5 \
--log-every-n-steps 50 \
--model ViT-B-32 \
--captions "alt" \
--which-sampling "filter" \
--cabs-dm \
--filter-ratio 0.8 \
--name "ViT-B-32_cabs-dm_alt_0.8" \
--seed 0 \
--local-loss \
--grad-checkpointing \
--wd 0.2 \
--gather-with-grad \
--resume "latest"