Skip to content

Commit

Permalink
Make token bans work again on HF loaders (#6488)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsPIRI authored Oct 24, 2024
1 parent b50dc3b commit e1061ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sampler_hijack.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1061ba

Please sign in to comment.