"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "9a8c168f56fe3c0e21d554a577ac03beb004ef89"
Unverified Commit 6189ae99 authored by Jungwhan's avatar Jungwhan Committed by GitHub
Browse files

Fix typo in file_utils.py (#9289)

parent 222dbdb2
...@@ -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"])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment