mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Remove labels from the RagModel example (#7560)
This commit is contained in:
parent
99cb924bfb
commit
95f792afb0
@ -537,7 +537,7 @@ class RagModel(RagPreTrainedModel):
|
||||
|
||||
>>> input_dict = tokenizer.prepare_seq2seq_batch("How many people live in Paris?", "In Paris, there are 10 million people.", return_tensors="pt")
|
||||
>>> input_ids = input_dict["input_ids"]
|
||||
>>> outputs = model(input_ids=input_ids, labels=input_dict["labels"])
|
||||
>>> outputs = model(input_ids=input_ids)
|
||||
|
||||
"""
|
||||
use_cache = use_cache if use_cache is not None else self.config.use_cache
|
||||
|
Loading…
Reference in New Issue
Block a user