src/transformers/pipelines/text_generation.py/TextGenerationPipeline/preprocess
class TextGenerationPipeline:    def preprocess(self, prompt_text, prefix=""):
        inputs = self.tokenizer(
            prefix + prompt_text, padding=False, add_special_tokens=False, return_tensors=self.framework
        )
        inputs["prompt_text"] = prompt_text
        return inputs