-
Notifications
You must be signed in to change notification settings - Fork 2
/
domain_classification.sh
executable file
·43 lines (40 loc) · 1.56 KB
/
domain_classification.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
#!/bin/bash
## set path to dataset here
#history_sent_num_for_ks=-1
#model_for_ks=roberta-large
#dataroot=data_domain_detection_multiwoz_dstc_3way
#num_gpus=4
#
#python3 -m torch.distributed.launch --nproc_per_node ${num_gpus} --master_port 1235 baseline.py \
# --negative_sample_method "oracle" \
# --params_file baseline/configs/domain-detection/params.json \
# --dataroot ${dataroot} \
# --eval_dataset test \
# --eval_dataroot data_eval \
# --model_name_or_path trained_models/domain-detection \
# --model_for_ks ${model_for_ks} \
# --output_dir pred \
# --exp_name domain-detection \
# --history_sent_num_for_ks ${history_sent_num_for_ks} \
# --eval_only \
# --checkpoint trained_models/domain-detection \
# --labels_file pred/ktd.test.json
# this is for generating predictions for subjective KMDM
history_sent_num_for_ks=-1
model_for_ks=roberta-large
dataroot=data_domain_detection_multiwoz_dstc_3way
num_gpus=4
python3 -m torch.distributed.launch --nproc_per_node ${num_gpus} --master_port 1235 baseline.py \
--negative_sample_method "oracle" \
--params_file baseline/configs/domain-detection/params.json \
--dataroot ${dataroot} \
--eval_dataset test \
--eval_dataroot files_for_di_model \
--model_name_or_path trained_models/domain-detection \
--model_for_ks ${model_for_ks} \
--output_dir pred \
--exp_name domain-detection \
--history_sent_num_for_ks ${history_sent_num_for_ks} \
--eval_only \
--checkpoint trained_models/domain-detection \
--labels_file files_for_di_model/test/labels.json