-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrain-wiki.sh
executable file
·55 lines (45 loc) · 1019 Bytes
/
train-wiki.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
#wikipedia was trained using slurm, older with locally run scripts
CORPUS=wiki
MIN=750
WORKING_DIR="/home/hellrich/embedding_downsampling_comparison"
LOG_DIR="$WORKING_DIR/training_slurmout/wiki"
mkdir -p $LOG_DIR
function train_sgns {
local MEM="20G"
for what in w2v w2vb
do
for i in {0..9}
do
local name=${what}_$i
sbatch --mem $MEM --job-name $name --output $LOG_DIR/$name train-slurm.sh $what $i $CORPUS $MIN
done
done
}
function train_glove {
local MEM="40G"
for what in glove gloveb
do
for i in {0..9}
do
local name=${what}_$i
sbatch --mem $MEM --job-name $name --output $LOG_DIR/$name train-slurm.sh $what $i $CORPUS $MIN
done
done
}
function train_pmi {
local MEM="80G"
for what in ppmi ppmib
do
for i in {0..9}
do
for sampling in none weight prob
do
local name=${what}_${sampling}_$i
sbatch --mem $MEM --job-name $name --output $LOG_DIR/$name train-slurm.sh $what $i $CORPUS $MIN $sampling
done
done
done
}
train_glove
train_sgns
train_pmi