mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-01-11 19:20:00 +01:00
Make token bans work again on HF loaders (#6488)
This commit is contained in:
parent
b50dc3bf57
commit
e1061ba7e3
|
|
@ -454,7 +454,7 @@ def get_logits_processor_patch(self, **kwargs):
|
|||
)
|
||||
|
||||
# Stuff we don't need
|
||||
elif warpers[i].__class__.__name__ in ['SuppressTokensLogitsProcessor', 'RepetitionPenaltyLogitsProcessor']:
|
||||
elif warpers[i].__class__.__name__ in ['RepetitionPenaltyLogitsProcessor']:
|
||||
del warpers[i]
|
||||
|
||||
# Add custom warpers
|
||||
|
|
|
|||
Loading…
Reference in a new issue