asahi417 commited on
Commit
5dd24e2
1 Parent(s): f5ad9b6
training_scripts/finetune_t5.py CHANGED
@@ -195,6 +195,7 @@ def train(
195
  else:
196
  best_model = sorted(model_score, key=lambda x: x[2])[-1][0]
197
  copy_tree(best_model, f'{output_dir}/best_model')
 
198
  else:
199
  logging.info('skip hyperparameter search & model training (already done)')
200
 
 
195
  else:
196
  best_model = sorted(model_score, key=lambda x: x[2])[-1][0]
197
  copy_tree(best_model, f'{output_dir}/best_model')
198
+ tokenizer.save_pretrained(f'{output_dir}/best_model')
199
  else:
200
  logging.info('skip hyperparameter search & model training (already done)')
201
 
training_scripts/script.sh CHANGED
@@ -1,8 +1,11 @@
1
 
 
 
2
 
3
- python finetune_t5.py --dataset-name ja --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-ja --model-organization cardiffnlp
4
- python finetune_t5.py --dataset-name gr --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-gr --model-organization cardiffnlp
5
  python finetune_t5.py --dataset-name es --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-es --model-organization cardiffnlp
6
  python finetune_t5.py --dataset-name en --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en --model-organization cardiffnlp
7
 
 
 
 
8
 
 
1
 
2
+ # TweetTopic
3
+ python finetune_t5.py --dataset-name en_2022 --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en-2022 --model-organization cardiffnlp
4
 
 
 
5
  python finetune_t5.py --dataset-name es --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-es --model-organization cardiffnlp
6
  python finetune_t5.py --dataset-name en --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en --model-organization cardiffnlp
7
 
8
+ python finetune_t5.py --dataset-name ja --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-ja --model-organization cardiffnlp
9
+ python finetune_t5.py --dataset-name gr --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-gr --model-organization cardiffnlp
10
+
11