

Bart doesn't use token_type_ids for sequence classification. Use [BartTokenizer] or
  [~BartTokenizer.encode] to get the proper splitting.
The forward pass of [BartModel] will create the decoder_input_ids if they are not passed.
  This is different than some other modeling APIs. A typical use case of this feature is mask filling.
Model predictions are intended to be identical to the original implementation when
  forced_bos_token_id=0. This only works, however, if the string you pass to
  [fairseq.encode] starts with a space.
[~generation.GenerationMixin.generate] should be used for conditional generation tasks like
  summarization, see the example in that docstrings.
Models that load the facebook/bart-large-cnn weights will not have a mask_token_id, or be able to perform
  mask-filling tasks.