-
Notifications
You must be signed in to change notification settings - Fork 0
/
contrastive.sh
57 lines (52 loc) · 1.92 KB
/
contrastive.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
cd ../../../
for seed in 7 11 13
do
parallel -j 8 \
"python language_contrastive.py seed=${seed} dataset.num_used_classes=3029 loss.neg_size={1} optimizer.lr={2} gpu_id={#}" \
::: 8 64 256 1024 ::: 0.025 0.05
pkill -9 python
parallel -j 8 \
"python language_contrastive.py seed=${seed} dataset.num_used_classes=3029 loss.neg_size={1} optimizer.lr={2} gpu_id={#}" \
::: 8 64 256 1024 ::: 0.075 0.1
pkill -9 python
done
c=2000
epochs=135
for seed in 7 11 13
do
parallel -j 8 \
"python language_contrastive.py seed=${seed} dataset.num_used_classes=${c} loss.neg_size={1} optimizer.lr={2} gpu_id={#} epochs=${epochs}" \
::: 8 64 256 1024 ::: 0.025 0.05
pkill -9 python
parallel -j 8 \
"python language_contrastive.py seed=${seed} dataset.num_used_classes=${c} loss.neg_size={1} optimizer.lr={2} gpu_id={#} epochs=${epochs}" \
::: 8 64 256 1024 ::: 0.075 0.1
pkill -9 python
done
c=1000
epochs=270
for seed in 7 11 13
do
parallel -j 8 \
"python language_contrastive.py seed=${seed} dataset.num_used_classes=${c} loss.neg_size={1} optimizer.lr={2} gpu_id={#} epochs=${epochs}" \
::: 8 64 256 1024 ::: 0.025 0.05
pkill -9 python
parallel -j 8 \
"python language_contrastive.py seed=${seed} dataset.num_used_classes=${c} loss.neg_size={1} optimizer.lr={2} gpu_id={#} epochs=${epochs}" \
::: 8 64 256 1024 ::: 0.075 0.1
pkill -9 python
done
c=500
epochs=540
for seed in 7 11 13
do
parallel -j 8 \
"python language_contrastive.py seed=${seed} dataset.num_used_classes=${c} loss.neg_size={1} optimizer.lr={2} gpu_id={#} epochs=${epochs}" \
::: 8 64 256 1024 ::: 0.025 0.05
pkill -9 python
parallel -j 8 \
"python language_contrastive.py seed=${seed} dataset.num_used_classes=${c} loss.neg_size={1} optimizer.lr={2} gpu_id={#} epochs=${epochs}" \
::: 8 64 256 1024 ::: 0.075 0.1
pkill -9 python
done