Hi guys,
I am trying to fine-tune BART for text infilling task, for example, I want my model learn “Steve Jobs is founder of Apple” from  “Steve Jobs [MASK] Apple”.
My questions are mainly the following three:
(1) BartModel and BartForConditionalGeneration, which one should I choose?
(2) Can you provide examples of how to use the corresponding API?
(3) How to compute the ‘loss’ of text infilling task?