Fix: Properly handle banned_strings and decode_special tokens (#104)

* Fix: Actually pass banned_strings to the generation call.

* decode_special_tokens was missing as well.

* syntax
This commit is contained in:
Ycros
2024-05-13 06:47:45 +10:00
committed by GitHub
parent 611f00818b
commit 57525219d0

View File

@@ -919,6 +919,8 @@ class ExllamaV2Container:
"return_top_tokens": request_logprobs,
"return_logits": request_logprobs > 0,
"abort_event": abort_event,
"banned_strings": banned_strings,
"decode_special_tokens": decode_special_tokens,
}
if self.use_cfg: