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
773e4c72
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "29ab4b7f4027b79ebc2c0456c1d09410e98df682"
Unverified
Commit
773e4c72
authored
Apr 05, 2021
by
Lysandre Debut
Committed by
GitHub
Apr 05, 2021
Browse files
Remove unnecessary space (#11060)
parent
ef62f038
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/source/task_summary.rst
docs/source/task_summary.rst
+1
-1
No files found.
docs/source/task_summary.rst
View file @
773e4c72
...
@@ -454,7 +454,7 @@ of tokens.
...
@@ -454,7 +454,7 @@ of tokens.
>>>
tokenizer
=
AutoTokenizer
.
from_pretrained
(
"gpt2"
)
>>>
tokenizer
=
AutoTokenizer
.
from_pretrained
(
"gpt2"
)
>>>
model
=
AutoModelWithLMHead
.
from_pretrained
(
"gpt2"
)
>>>
model
=
AutoModelWithLMHead
.
from_pretrained
(
"gpt2"
)
>>>
sequence
=
f
"Hugging Face is based in DUMBO, New York City, and
"
>>>
sequence
=
f
"Hugging Face is based in DUMBO, New York City, and"
>>>
input_ids
=
tokenizer
.
encode
(
sequence
,
return_tensors
=
"pt"
)
>>>
input_ids
=
tokenizer
.
encode
(
sequence
,
return_tensors
=
"pt"
)
...
...
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