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
6189ae99
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "9a8c168f56fe3c0e21d554a577ac03beb004ef89"
Unverified
Commit
6189ae99
authored
Dec 24, 2020
by
Jungwhan
Committed by
GitHub
Dec 24, 2020
Browse files
Fix typo in file_utils.py (#9289)
parent
222dbdb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/file_utils.py
src/transformers/file_utils.py
+1
-1
No files found.
src/transformers/file_utils.py
View file @
6189ae99
...
@@ -760,7 +760,7 @@ PT_CAUSAL_LM_SAMPLE = r"""
...
@@ -760,7 +760,7 @@ PT_CAUSAL_LM_SAMPLE = r"""
>>> from transformers import {tokenizer_class}, {model_class}
>>> from transformers import {tokenizer_class}, {model_class}
>>> tokenizer = {tokenizer_class}.from_pretrained('{checkpoint}')
>>> tokenizer = {tokenizer_class}.from_pretrained('{checkpoint}')
>>> model = {model_class}.from_pretrained('{checkpoint})
>>> model = {model_class}.from_pretrained('{checkpoint}
'
)
>>> inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")
>>> inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")
>>> outputs = model(**inputs, labels=inputs["input_ids"])
>>> outputs = model(**inputs, labels=inputs["input_ids"])
...
...
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