mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-30 01:32:23 +06:00
typo (#20001)
This commit is contained in:
parent
c87ae86a8f
commit
4f90fc1db8
@ -568,7 +568,7 @@ class EncoderDecoderModel(PreTrainedModel):
|
|||||||
|
|
||||||
>>> input_ids = tokenizer("This is a really long text", return_tensors="pt").input_ids
|
>>> input_ids = tokenizer("This is a really long text", return_tensors="pt").input_ids
|
||||||
>>> labels = tokenizer("This is the corresponding summary", return_tensors="pt").input_ids
|
>>> labels = tokenizer("This is the corresponding summary", return_tensors="pt").input_ids
|
||||||
>>> outputs = model(input_ids=input_ids, labels=input_ids)
|
>>> outputs = model(input_ids=input_ids, labels=labels)
|
||||||
>>> loss, logits = outputs.loss, outputs.logits
|
>>> loss, logits = outputs.loss, outputs.logits
|
||||||
|
|
||||||
>>> # save and load from pretrained
|
>>> # save and load from pretrained
|
||||||
|
Loading…
Reference in New Issue
Block a user