-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_adapter_train_medium.sh
103 lines (95 loc) · 4.77 KB
/
run_adapter_train_medium.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
CUDA_VISIBLE_DEVICES=2 python adapter_train.py \
--model_size="medium" \
--load_checkpoint_adapter="" \
--genre="Thriller" --adapter_id=0 \
--match_up_to_n_genres=3 \
--max_seq_len=512 \
--dataset_path="/home/bryan/datasets/bookcorpusopen/bookcorpusopen_chunked.arrow" \
--preprocessing_num_workers=24 --bookcorpusopen_story_column_name=chunk \
--per_device_train_batch_size=2 --per_device_eval_batch_size=2 \
--dataloader_num_workers=24 --dataloader_pin_memory --group_by_length \
--seed=14045 --num_train_epochs=3 --learning_rate=1e-3 \
--fp16 --fp16_backend=amp \
--logging_strategy=steps --logging_steps=10 --report_to=tensorboard \
--evaluation_strategy=steps --eval_steps=5000 --eval_accumulation_steps=100 \
--save_strategy=steps --save_steps=5000 --save_total_limit=3 \
--do_train=True --do_eval=True \
--overwrite_output_dir=True \
--output_dir='./save/' \
--early_stopping_patience=5 > thriller_medium.log
CUDA_VISIBLE_DEVICES=2 python adapter_train.py \
--model_size="medium" \
--load_checkpoint_adapter="" \
--genre="Science Fiction" --adapter_id=0 \
--match_up_to_n_genres=3 \
--max_seq_len=512 \
--dataset_path="/home/bryan/datasets/bookcorpusopen/bookcorpusopen_chunked.arrow" \
--preprocessing_num_workers=24 --bookcorpusopen_story_column_name=chunk \
--per_device_train_batch_size=2 --per_device_eval_batch_size=2 \
--dataloader_num_workers=24 --dataloader_pin_memory --group_by_length \
--seed=14045 --num_train_epochs=3 --learning_rate=1e-3 \
--fp16 --fp16_backend=amp \
--logging_strategy=steps --logging_steps=10 --report_to=tensorboard \
--evaluation_strategy=steps --eval_steps=5000 --eval_accumulation_steps=100 \
--save_strategy=steps --save_steps=5000 --save_total_limit=3 \
--do_train=True --do_eval=True \
--overwrite_output_dir=True \
--output_dir='./save/' \
--early_stopping_patience=5 > sciencefiction_medium.log
CUDA_VISIBLE_DEVICES=2 python adapter_train.py \
--model_size="medium" \
--load_checkpoint_adapter="" \
--genre="Historical" --adapter_id=0 \
--match_up_to_n_genres=3 \
--max_seq_len=512 \
--dataset_path="/home/bryan/datasets/bookcorpusopen/bookcorpusopen_chunked.arrow" \
--preprocessing_num_workers=24 --bookcorpusopen_story_column_name=chunk \
--per_device_train_batch_size=2 --per_device_eval_batch_size=2 \
--dataloader_num_workers=24 --dataloader_pin_memory --group_by_length \
--seed=14045 --num_train_epochs=3 --learning_rate=1e-3 \
--fp16 --fp16_backend=amp \
--logging_strategy=steps --logging_steps=10 --report_to=tensorboard \
--evaluation_strategy=steps --eval_steps=5000 --eval_accumulation_steps=100 \
--save_strategy=steps --save_steps=5000 --save_total_limit=3 \
--do_train=True --do_eval=True \
--overwrite_output_dir=True \
--output_dir='./save/' \
--early_stopping_patience=5 > Historical_medium.log
CUDA_VISIBLE_DEVICES=2 python adapter_train.py \
--model_size="medium" \
--load_checkpoint_adapter="" \
--genre="Adventure" --adapter_id=0 \
--match_up_to_n_genres=3 \
--max_seq_len=512 \
--dataset_path="/home/bryan/datasets/bookcorpusopen/bookcorpusopen_chunked.arrow" \
--preprocessing_num_workers=24 --bookcorpusopen_story_column_name=chunk \
--per_device_train_batch_size=2 --per_device_eval_batch_size=2 \
--dataloader_num_workers=24 --dataloader_pin_memory --group_by_length \
--seed=14045 --num_train_epochs=3 --learning_rate=1e-3 \
--fp16 --fp16_backend=amp \
--logging_strategy=steps --logging_steps=10 --report_to=tensorboard \
--evaluation_strategy=steps --eval_steps=5000 --eval_accumulation_steps=100 \
--save_strategy=steps --save_steps=5000 --save_total_limit=3 \
--do_train=True --do_eval=True \
--overwrite_output_dir=True \
--output_dir='./save/' \
--early_stopping_patience=5 > Adventure_medium.log
CUDA_VISIBLE_DEVICES=2 python adapter_train.py \
--model_size="medium" \
--load_checkpoint_adapter="" \
--genre="Romance" --adapter_id=0 \
--match_up_to_n_genres=3 \
--max_seq_len=512 \
--dataset_path="/home/bryan/datasets/bookcorpusopen/bookcorpusopen_chunked.arrow" \
--preprocessing_num_workers=24 --bookcorpusopen_story_column_name=chunk \
--per_device_train_batch_size=2 --per_device_eval_batch_size=2 \
--dataloader_num_workers=24 --dataloader_pin_memory --group_by_length \
--seed=14045 --num_train_epochs=3 --learning_rate=1e-3 \
--fp16 --fp16_backend=amp \
--logging_strategy=steps --logging_steps=10 --report_to=tensorboard \
--evaluation_strategy=steps --eval_steps=5000 --eval_accumulation_steps=100 \
--save_strategy=steps --save_steps=5000 --save_total_limit=3 \
--do_train=True --do_eval=True \
--overwrite_output_dir=True \
--output_dir='./save/' \
--early_stopping_patience=5 > Romance_medium.log