mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-20 22:13:43 +00:00
Make token bans work again on HF loaders (#6488)
This commit is contained in:
parent
b50dc3bf57
commit
e1061ba7e3
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue