-
Notifications
You must be signed in to change notification settings - Fork 0
/
train_normal.sh
35 lines (31 loc) · 1.38 KB
/
train_normal.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
#!/bin/bash
# Movielens
# normal train
CUDA_VISIBLE_DEVICES=1 accelerate launch normal_train.py \
--data_dir 'datasets/ml-1m/benchmark_proc_data/data/' \
--train_data 'train/train_10_simple.json' \
--valid_data 'valid/valid_10_simple.json' \
--test_data 'test/test_10_simple.json' \
--checkpoint 'checkpoint/ml-1m-base-original-0.0005' \
--lr 0.0005 > ml-1m-base-original-0.0005.log
# forget 0.2 and retrain
CUDA_VISIBLE_DEVICES=0 accelerate launch normal_train.py \
--data_dir 'datasets/ml-1m/benchmark_proc_data/data/' \
--train_data 'train/retain_0.2_user_10_simple.json' \
--valid_data 'valid/valid_10_simple.json' \
--test_data 'test/test_10_simple.json' \
--checkpoint 'checkpoint/ml-1m-base-0.2-0.0001' \
--lr 0.0001 > ml-1m-base-0.2-0.0001.log
# evaluate
CUDA_VISIBLE_DEVICES=0 accelerate launch evaluate.py \
--data_dir 'datasets/ml-1m/benchmark_proc_data/data/' \
--forget_data train/forget_0.2_user_10_simple.json \
--test_data test/test_10_simple.json \
--teacher_path checkpoint/ml-1m-base-0.2-0.0005/model.pt \
--checkpoint 'checkpoint/ml-1m-base-0.2-0.0005/model.pt'
CUDA_VISIBLE_DEVICES=0 accelerate launch evaluate.py \
--data_dir 'datasets/ml-1m/benchmark_proc_data/data/' \
--forget_data train/forget_0.2_user_10_simple.json \
--test_data test/test_10_simple.json \
--teacher_path checkpoint/ml-1m-base-0.2-0.0005/model.pt \
--checkpoint 'checkpoint/ml-1m-base-original-0.0005/model.pt'