-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
70 lines (66 loc) · 1.69 KB
/
Makefile
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
preprocess:
python3 preprocess.py ./data/hatespeech_text_label_vote.csv ./data/train.csv
run:
python3 main.py \
--model_name_or_path distilbert-base-uncased \
--train_file ./data/train.csv \
--seed 42 \
--shuffle_seed 42 \
--output_dir ./output/distilbert-base-uncased-2 \
--do_train_val_test_split \
--overwrite_output_dir \
--do_train \
--do_eval \
--do_predict \
--pad_to_max_length \
--input_key Tweet \
--report_to none \
--learning_rate 1e-5 \
--num_train_epochs 10 \
--per_device_train_batch_size 64 \
--per_device_eval_batch_size 64 \
run-DkNN:
python3 main.py \
--model_name_or_path distilbert-base-uncased \
--train_file ./data/train.csv \
--seed 42 \
--shuffle_seed 42 \
--output_dir ./output/distilbert-base-uncased-DkNN-1 \
--do_train_val_test_split \
--overwrite_output_dir \
--do_train \
--do_eval \
--do_predict \
--pad_to_max_length \
--input_key Tweet \
--report_to none \
--learning_rate 1e-5 \
--num_train_epochs 10 \
--per_device_train_batch_size 64 \
--per_device_eval_batch_size 64 \
--do_DkNN \
--layers_to_save [0, 1, 2, 3, 4, 5] \
run-test:
python3 main.py \
--model_name_or_path distilbert-base-uncased \
--resume_from_checkpoint ./output/distilbert-base-uncased-2 \
--train_file ./data/train_data.csv \
--validation_file ./data/eval_data.csv \
--test_file ./data/test_data.csv \
--seed 42 \
--shuffle_seed 42 \
--output_dir ./output/distilbert-base-uncased-DkNN-1 \
--do_train_val_test_split False \
--overwrite_output_dir \
--do_train False \
--do_eval \
--do_predict \
--pad_to_max_length \
--input_key Tweet \
--report_to none \
--per_device_eval_batch_size 64 \
--do_DkNN \
--layers_to_save 1 2 3 4 5 \
clean:
rm -f *.e*
rm -f *.o*