-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_summarization.sh
50 lines (48 loc) · 1.74 KB
/
run_summarization.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
python scripts/run_summarization.py \
--model-checkpoint LazarusNLP/IndoNanoT5-base \
--dataset-name LazarusNLP/indonlg \
--dataset-config indosum \
--input-column-name input \
--target-column-name target \
--input-max-length 512 \
--target-max-length 512 \
--num-beams 5 \
--output-dir outputs/indo-nanot5-indosum \
--num-train-epochs 5 \
--optim adamw_torch_fused \
--learning-rate 1e-3 \
--weight-decay 0.01 \
--per-device-train-batch-size 8 \
--per-device-eval-batch-size 16 \
--hub-model-id LazarusNLP/IndoNanoT5-base-IndoSum
python scripts/run_summarization.py \
--model-checkpoint LazarusNLP/IndoNanoT5-base \
--dataset-name LazarusNLP/indonlg \
--dataset-config liputan6_canonical \
--input-column-name input \
--target-column-name target \
--input-max-length 512 \
--target-max-length 512 \
--num-beams 5 \
--output-dir outputs/indo-nanot5-liputan6-canonical \
--num-train-epochs 50 \
--optim adamw_torch_fused \
--learning-rate 1e-5 \
--weight-decay 0.01 \
--per-device-train-batch-size 8 \
--per-device-eval-batch-size 16 \
--hub-model-id LazarusNLP/IndoNanoT5-base-Liputan6-Canonical
# eval Canonical model on Extreme test set
python scripts/run_summarization.py \
--model-checkpoint LazarusNLP/IndoNanoT5-base-Liputan6-Canonical \
--dataset-name LazarusNLP/indonlg \
--dataset-config liputan6_extreme \
--input-column-name input \
--target-column-name target \
--input-max-length 512 \
--target-max-length 512 \
--num-beams 5 \
--output-dir outputs/indo-nanot5-liputan6-extreme \
--per-device-eval-batch-size 16 \
--do-eval-only \
--hub-model-id LazarusNLP/IndoNanoT5-base-Liputan6-Extreme