Fix typo in file_utils.py (#9289)
This commit is contained in:
parent
222dbdb203
commit
6189ae9960
|
@ -760,7 +760,7 @@ PT_CAUSAL_LM_SAMPLE = r"""
|
|||
>>> from transformers import {tokenizer_class}, {model_class}
|
||||
|
||||
>>> 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")
|
||||
>>> outputs = model(**inputs, labels=inputs["input_ids"])
|
||||
|
|
Loading…
Reference in New Issue