salesforce / ctrl-sum

Resources for the "CTRLsum: Towards Generic Controllable Text Summarization" paper
https://arxiv.org/abs/2012.04281
BSD 3-Clause "New" or "Revised" License
146 stars 24 forks source link

fairseq-train: error: argument --restore-file: expected one argument #3

Closed YoonaX closed 3 years ago

YoonaX commented 3 years ago

❓ Questions and Help

Before asking:

  1. search the issues.
  2. search the docs.

What is your question?

Hello, I try to train by running "bash scripts/train_bart.sh -g 0,1,2,3 -d cnndm" But there is an error: error: argument --restore-file: expected one argument I think I should reload the original Bart Model. Where I can download the model and How Can I reload the Model? Thanks~

What have you tried?

What's your environment?

jxhe commented 3 years ago

Hi, you can run bash scripts/train_bart.sh -g 0,1,2,3 -d cnndm -b [the bart checkpoint .pt file], where the bart model checkpoint can be downloaded from the fairseq page (we use bart.large model)

YoonaX commented 3 years ago

Thanks, Now there's a new problem: FileNotFoundError: [Errno 2] No such file or directory: 'data-bin/cnndm/dict.oraclewordsource.txt'

How should I load the vocabulary of the BART model?

YoonaX commented 3 years ago

I think I found the reason. I have a little problem with data processing. Haha!!

You have a slight problem here

bash scripts/binarize_dataset.ssh cnndm -> bash scripts/binarize_dataset.sh cnndm

Happy Lantern Festival!!!

jxhe commented 3 years ago

Thank you, and happy Lantern Festival!