mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Dont accidentally block pad tokens
This commit is contained in:
@@ -326,6 +326,8 @@ class HFInferenceModel(InferenceModel):
|
||||
if any(c in str(k) for c in "[]")
|
||||
]
|
||||
|
||||
self.badwordsids.remove([self.tokenizer.pad_token_id])
|
||||
|
||||
if utils.koboldai_vars.newlinemode == "n":
|
||||
self.badwordsids.append([self.tokenizer.eos_token_id])
|
||||
|
||||
|
Reference in New Issue
Block a user