-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprofile.sh
More file actions
33 lines (28 loc) · 741 Bytes
/
Copy pathprofile.sh
File metadata and controls
33 lines (28 loc) · 741 Bytes
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
#!/bin/bash
seqs=(1024 2048 4096 8192)
tps=(1 2 4 8)
bss=(1)
model_sizes=(7 13 30 70)
for seq in "${seqs[@]}"; do
for tp in "${tps[@]}"; do
for bs in "${bss[@]}"; do
for model_size in "${model_sizes[@]}"; do
sbatch <<EOF
#!/bin/bash
#SBATCH --partition=debug
#SBATCH --nodes=1
#SBATCH --gres=gpu:8
#SBATCH --job-name=gpt3_train_${seq}_${tp}_${bs}_${model_size}
#SBATCH --output=logs/gpt3_train_${seq}_${tp}_${bs}_${model_size}.log
export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True
export SEQ=$seq
export TP=$tp
export BS=$bs
export MODEL_SIZE=$model_size
bash examples/gpt3/train_gpt3_175b_distributed.sh
EOF
done
done
done
done
echo "All jobs submitted via sbatch."