Fix EOS being ignored in ExLlamav2 after previous commit

This commit is contained in:
oobabooga 2023-12-20 07:54:06 -08:00
parent f0f6d9bdf9
commit bcba200790

View File

@ -120,7 +120,6 @@ class Exllamav2Model:
else: else:
max_new_tokens = state['max_new_tokens'] max_new_tokens = state['max_new_tokens']
self.generator.set_stop_conditions([])
self.generator.begin_stream(ids, settings, loras=self.loras) self.generator.begin_stream(ids, settings, loras=self.loras)
decoded_text = '' decoded_text = ''