TextGenerationPipeline: ValueError: return_text
is mutually exclusive with return_full_text
#33535
Closed
2 of 4 tasks
Labels
System Info
transformers
version: 4.44.2Who can help?
@Rocketknight1
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
(Nevermind that this template for this model doesn't really make sense).
The above raises
Removing the
return_text=True
argument to the pipeline call returns the expected result (only the newly generated text).Expected behavior
The code above succeeds and returns only newly generated text, without the prompt, as specified in the documentation:
The text was updated successfully, but these errors were encountered: