Last active
September 8, 2020 21:19
-
-
Save sshleifer/187230aafe9651868dafdeb6a4395751 to your computer and use it in GitHub Desktop.
took 25hr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python finetune.py \ | |
--task summarization \ | |
--learning_rate=3e-4 \ | |
--do_train \ | |
--do_predict \ | |
--val_check_interval 0.25 --n_val 1000 \ | |
--data_dir xsum \ | |
--max_source_length 512 --max_target_length=56 \ | |
--freeze_embeds \ | |
--model_name_or_path google/pegasus-large \ | |
--tokenizer_name google/pegasus-xsum \ | |
--warmup_steps 500 \ | |
--dropout 0.1 --attention_dropout 0.1 --label_smoothing 0.1 \ | |
--train_batch_size=8 --eval_batch_size=8 --gradient_accumulation_steps=4 \ | |
--logger_name wandb \ | |
--sortish_sampler --gpus 1 \ | |
--output_dir xsum_ft_ls_mask_fix --num_train_epochs 6 --adafactor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Final checkpoint
examples/requirements.txt
current master should work.n_val=1000
, the validation rouge will be lower. Mine only got to 22.5--eval_beams=2
to go faster.