-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrain_small.sh
More file actions
executable file
·83 lines (82 loc) · 3.19 KB
/
train_small.sh
File metadata and controls
executable file
·83 lines (82 loc) · 3.19 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/bin/bash
date
dataset_list=("beauty")
# dataset_list=("sports" "yelp")
#dataset_list=("beauty" "sports" "toys")
#dataset_list=("sports" "yelp")
# dataset_list=("toys" "yelp")
echo ${dataset_list}
line_num_list=(7828 21189 30819)
cuda_num_list=(3)
echo ${line_num_list}
seed=2022
length=${#dataset_list[@]}
#for dataset line_num in zip()
for ((i=0; i<${length}; i++));
do
{
dataset=${dataset_list[i]}
cuda_num=${cuda_num_list[i]}
for model in t5-small
do
{
for split in train
do
{
for recommendation_model in sasrec
# for recommendation_model in din gru4rec
# for recommendation_model in sasrec
do
{
for framework in small_recommendation_model
do
{
# for type_small in base duet
# for type_small in duet
for type_small in base
do
{
framework=${framework}_${type_small}
set |grep RANDOM
# 0~65536
port=$[${RANDOM}%10000+20000]
echo $port
if [ ${dataset} = "yelp" ];then
learning_rate=1e-3
warmup_ratio=0.02
else
learning_rate=1e-3
warmup_ratio=0.05
fi
# for type in traditional
for type in sequential
do
{
# file="pretrain_${type}_${split}"
file="recommendation_train"
# file="recommendation_${type}_train"
bash scripts/${file}.sh ${dataset} ${model} ${cuda_num} ${port} ${warmup_ratio} ${learning_rate} ${seed} ${recommendation_model} ${framework} ${type_small} ${type}
} &
done
} &
done
} &
done
} &
done
# } &
# done
} &
done
} &
done
} &
done
wait # 等待所有任务结束
date
# bash scripts/pretrain.sh beauty ddd 1 11111 0 0.001 2022 sasrec small_recommendation_model
# bash scripts/pretrain_all_train.sh beauty t5-small 1 11113 0.05 1e-3 2022
# bash scripts/pretrain_sequential_train.sh beauty t5-small 1 11111 0.05 1e-3 2022
# bash scripts/recommendation_train.sh beauty ddd 7 11115 0 0.001 2022 sasrec small_recommendation_model
# bash scripts/recommendation_train.sh beauty ddd 7 11116 0 0.001 2022 din small_recommendation_model
# bash scripts/recommendation_train.sh beauty ddd 7 11117 0 0.001 2022 gru4rec small_recommendation_model