Fix typo in file_utils.py (#9289)

This commit is contained in:
Jungwhan
2020-12-24 17:18:33 +09:00
committed by GitHub
parent 222dbdb203
commit 6189ae9960

View File

@@ -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"])