Skip to content

Commit 52b3a05

Browse files
[Bart doc] Fix outdated statement (#9299)
* fix bart doc * fix docs
1 parent 7777db1 commit 52b3a05

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/source/model_doc/bart.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ Implementation Notes
5555

5656
- Bart doesn't use :obj:`token_type_ids` for sequence classification. Use :class:`~transformers.BartTokenizer` or
5757
:meth:`~transformers.BartTokenizer.encode` to get the proper splitting.
58-
- The forward pass of :class:`~transformers.BartModel` will create decoder inputs (using the helper function
59-
:func:`transformers.models.bart.modeling_bart._prepare_bart_decoder_inputs`) if they are not passed. This is
60-
different than some other modeling APIs.
58+
- The forward pass of :class:`~transformers.BartModel` will create the ``decoder_input_ids`` if they are not passed.
59+
This is different than some other modeling APIs. A typical use case of this feature is mask filling.
6160
- Model predictions are intended to be identical to the original implementation when
6261
:obj:`force_bos_token_to_be_generated=True`. This only works, however, if the string you pass to
6362
:func:`fairseq.encode` starts with a space.

0 commit comments

Comments
 (0)