"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "9093b19b13f642ed63e0fa49f4091fc0283a84e3"
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