-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_rl.sh
More file actions
36 lines (28 loc) · 798 Bytes
/
run_rl.sh
File metadata and controls
36 lines (28 loc) · 798 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
MODEL_NAME=LEDRec
DATASET=TMALL
LR_LIST=(0.001)
LOG_PREFIX="tmall_debug_rl"
for lr in "${LR_LIST[@]}"; do
LOG_FILE="${LOG_PREFIX}_lr${lr}.csv"
echo "Running lr=${lr}, log_file=${LOG_FILE}"
CUDA_VISIBLE_DEVICES=0,1,2,3 \
accelerate launch \
--main_process_port 40080 \
--num_processes 4 start_rl.py \
--dataset=${DATASET} \
--config_file=models/${MODEL_NAME}/tm2w_rl.yaml \
--search_k=40 \
--lr=${lr} \
--epochs=100 \
--patience=5 \
--purchase_loss_weight=5 \
--temperature_sample=1 \
--top_p_sample=1 \
--num_heads=2 \
--log_file=${LOG_FILE} \
--group_norm=True \
--batch_norm=False \
--group_num=10 \
--pretrain_model=${pretrain_model} \
--squeeze_data=True
done