From 52b3a05e835f7820bed4d059e12757142404c6e7 Mon Sep 17 00:00:00 2001 From: Patrick von Platen Date: Thu, 24 Dec 2020 14:47:53 +0100 Subject: [PATCH] [Bart doc] Fix outdated statement (#9299) * fix bart doc * fix docs --- docs/source/model_doc/bart.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/source/model_doc/bart.rst b/docs/source/model_doc/bart.rst index 189f3c5e35..b167cf64fd 100644 --- a/docs/source/model_doc/bart.rst +++ b/docs/source/model_doc/bart.rst @@ -55,9 +55,8 @@ Implementation Notes - Bart doesn't use :obj:`token_type_ids` for sequence classification. Use :class:`~transformers.BartTokenizer` or :meth:`~transformers.BartTokenizer.encode` to get the proper splitting. -- The forward pass of :class:`~transformers.BartModel` will create decoder inputs (using the helper function - :func:`transformers.models.bart.modeling_bart._prepare_bart_decoder_inputs`) if they are not passed. This is - different than some other modeling APIs. +- The forward pass of :class:`~transformers.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 :obj:`force_bos_token_to_be_generated=True`. This only works, however, if the string you pass to :func:`fairseq.encode` starts with a space.