"docs/source/vscode:/vscode.git/clone" did not exist on "0f0e1a2c2bff68541a5b9770d78e0fb6feb7de72"
Adding a new `return_full_text` parameter to TextGenerationPipeline. (#9852)
* Adding a new `return_full_text` parameter to TextGenerationPipeline. For text-generation, it's sometimes used as prompting text. In that context, prefixing `generated_text` with the actual input forces the caller to take an extra step to remove it. The proposed change adds a new parameter (for backward compatibility). `return_full_text` that enables the caller to prevent adding the prefix. * Doc quality.
Showing
Please register or sign in to comment