Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
40040727
Unverified
Commit
40040727
authored
Mar 02, 2022
by
Patrick von Platen
Committed by
GitHub
Mar 02, 2022
Browse files
[Bart] Fix implementation note doc (#15879)
parent
4bfe75bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/source/model_doc/bart.mdx
docs/source/model_doc/bart.mdx
+1
-1
No files found.
docs/source/model_doc/bart.mdx
View file @
40040727
...
...
@@ -51,7 +51,7 @@ This model was contributed by [sshleifer](https://huggingface.co/sshleifer). The
-
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
`
force_bos_token_
to_be_generated
=
True
`.
This
only
works
,
however
,
if
the
string
you
pass
to
`
force
d
_bos_token_
id
=
0
`.
This
only
works
,
however
,
if
the
string
you
pass
to
[`
fairseq
.
encode
`]
starts
with
a
space
.
-
[`~
generation_utils
.
GenerationMixin
.
generate
`]
should
be
used
for
conditional
generation
tasks
like
summarization
,
see
the
example
in
that
docstrings
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment