Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
7ecff0cc
Unverified
Commit
7ecff0cc
authored
Jul 06, 2020
by
ELanning
Committed by
GitHub
Jul 06, 2020
Browse files
Fix typo in training (#5510)
parent
58cca47c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/source/training.rst
docs/source/training.rst
+1
-1
No files found.
docs/source/training.rst
View file @
7ecff0cc
...
...
@@ -39,7 +39,7 @@ of the specified model are used to initialize the model. The
library
also
includes
a
number
of
task
-
specific
final
layers
or
'heads'
whose
weights
are
instantiated
randomly
when
not
present
in
the
specified
pre
-
trained
model
.
For
example
,
instantiating
a
model
with
``
BertForSequenceClassification
.
from_pretrained
(
'bert-base-uncased'
,
num_
c
la
sse
s
=
2
)``
``
BertForSequenceClassification
.
from_pretrained
(
'bert-base-uncased'
,
num_la
bel
s
=
2
)``
will
create
a
BERT
model
instance
with
encoder
weights
copied
from
the
``
bert
-
base
-
uncased
``
model
and
a
randomly
initialized
sequence
classification
head
on
top
of
the
encoder
with
an
output
size
of
2.
Models
...
...
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