Hi all,
Some models, when generating text, return the prompt + the answer in the output. For instance mistral models and phi-2 have this behavior. Other models such as flan-t5 donât do that, and the output only contains the generated text, without prepending the prompt. Is there a way to only return the generated text for e.g. mistral or phi-2? Iâve tried some solutions found online (e.g. tiiuae/falcon-40b-instruct ¡ Model returns entire input prompt together with output suggest setting âinclude_prompt_in_resultâ or âreturn_full_textâ to False, but these args donât seem to exist).
Thanks in advance.