Force Tokens as opposed to Bad_Word_Ids
I saw this on Stackoverflow, and thought I would take this here. In other words, if I was to put “hey” into this parameter, hey would appear somewhere in the output.stackoverflow.comWhitelist tokens for text generation (XLNet, GPT-2) in huggingface-transformerspython-3.x, nlp, pytorch, huggingface-transformersasked bymaxpeon01:15PM - 16 Sep 20 UTC
2023-03-23T16:52:58Z
Maybe something likethisworks although I must say haven’t tried it. Also checkthisfeature request and feel free to react/comment there. If implemented it would allow per token control, e.g. force “hey” by using a high positive score.