0cc4m / KoboldAI

GNU Affero General Public License v3.0
150 stars 31 forks source link

Add the eos token to exllama bad words. #65

Closed pi6am closed 1 year ago

pi6am commented 1 year ago

The bos token was already hardcoded as a bad word id. Store badwords in a list and iterate over them during generation. Add the Llama eos token to the list of bad words. Also support "single line mode", which adds newline (13) to badwords.