Make token bans work again on HF loaders (#6488)

This commit is contained in:
PIRI 2024-10-24 18:24:02 +00:00 committed by GitHub
parent b50dc3bf57
commit e1061ba7e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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