mirror of
https://github.com/oobabooga/textgen.git
synced 2026-08-02 16:20:42 -05:00
Make token bans work again on HF loaders (#6488)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user