mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-21 15:48:04 +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
|
# Stuff we don't need
|
||||||
elif warpers[i].__class__.__name__ in ['SuppressTokensLogitsProcessor', 'RepetitionPenaltyLogitsProcessor']:
|
elif warpers[i].__class__.__name__ in ['RepetitionPenaltyLogitsProcessor']:
|
||||||
del warpers[i]
|
del warpers[i]
|
||||||
|
|
||||||
# Add custom warpers
|
# Add custom warpers
|
||||||
|
Loading…
Reference in New Issue
Block a user