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
d2de5b9d
Unverified
Commit
d2de5b9d
authored
Sep 27, 2019
by
Gabriel Luiz Freitas Almeida
Committed by
GitHub
Sep 27, 2019
Browse files
Just some typos
parent
d83d2957
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
docs/source/quickstart.md
docs/source/quickstart.md
+4
-4
No files found.
docs/source/quickstart.md
View file @
d2de5b9d
...
@@ -93,8 +93,8 @@ Let's see how we can use `BertModel` to encode our inputs in hidden-states:
...
@@ -93,8 +93,8 @@ Let's see how we can use `BertModel` to encode our inputs in hidden-states:
# Load pre-trained model (weights)
# Load pre-trained model (weights)
model
=
BertModel
.
from_pretrained
(
'bert-base-uncased'
)
model
=
BertModel
.
from_pretrained
(
'bert-base-uncased'
)
# Set the model in evaluation mode to de
s
activate the DropOut modules
# Set the model in evaluation mode to deactivate the DropOut modules
# This is IMPORTANT to have reproduc
t
ible results during evaluation!
# This is IMPORTANT to have reproducible results during evaluation!
model
.
eval
()
model
.
eval
()
# If you have a GPU, put everything on cuda
# If you have a GPU, put everything on cuda
...
@@ -168,8 +168,8 @@ Let's see how to use `GPT2LMHeadModel` to generate the next token following our
...
@@ -168,8 +168,8 @@ Let's see how to use `GPT2LMHeadModel` to generate the next token following our
# Load pre-trained model (weights)
# Load pre-trained model (weights)
model
=
GPT2LMHeadModel
.
from_pretrained
(
'gpt2'
)
model
=
GPT2LMHeadModel
.
from_pretrained
(
'gpt2'
)
# Set the model in evaluation mode to de
s
activate the DropOut modules
# Set the model in evaluation mode to deactivate the DropOut modules
# This is IMPORTANT to have reproduc
t
ible results during evaluation!
# This is IMPORTANT to have reproducible results during evaluation!
model
.
eval
()
model
.
eval
()
# If you have a GPU, put everything on cuda
# If you have a GPU, put everything on cuda
...
...
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