-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpredict_spi.sh
61 lines (58 loc) · 1.66 KB
/
predict_spi.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
58
59
60
61
python main.py \
--dataset_name "src/data_utils/wizard_of_wikipedia.py" \
--preproc_dir ./data/processed_wow_datasets \
--use_less_samples True \
--dataset_config_name posterior \
--learning_rate 3e-5 \
--num_train_epochs 7 \
--source_prefix "" \
--output_dir "save/path_to_model" \
--model_name_or_path "save/path_to_model" \
--max_source_length 512 \
--max_target_length 128 \
--preprocessing_num_workers 1 \
--per_device_train_batch_size 1 \
--per_device_eval_batch_size 1 \
--pad_to_max_length \
--weight_decay 0.005 \
--do_predict True \
--save_strategy "epoch" \
--metric_name "ppl&bleu&rouge&dist&f1&acc&recall" \
--report_to "tensorboard" \
--overwrite_cache False \
--gradient_accumulation_steps 16 \
--logging_steps 100 \
--eval_selection True \
--num_beams 1 \
--attend_latent True \
--use_feature kn \
# add the following command line for categorical prior
# --categorical_prior True \
python main.py \
--dataset_name "src/data_utils/holle.py" \
--preproc_dir ./data/processed_holle_datasets \
--use_less_samples True \
--dataset_config_name posterior \
--learning_rate 3e-5 \
--num_train_epochs 7 \
--source_prefix "" \
--output_dir "save/path_to_model" \
--model_name_or_path "save/path_to_model" \
--max_source_length 512 \
--max_target_length 128 \
--preprocessing_num_workers 1 \
--per_device_train_batch_size 1 \
--per_device_eval_batch_size 1 \
--pad_to_max_length \
--weight_decay 0.005 \
--do_predict True \
--save_strategy "epoch" \
--metric_name "ppl&bleu&rouge&dist&f1&acc&recall" \
--report_to "tensorboard" \
--overwrite_cache False \
--gradient_accumulation_steps 16 \
--logging_steps 100 \
--eval_selection True \
--num_beams 1 \
--attend_latent True \
--use_feature kn \