Minor bug fix
This commit is contained in:
parent
3443219cbc
commit
79db629665
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ class ExllamaModel:
|
|||
self.generator.settings.top_k = state['top_k']
|
||||
self.generator.settings.typical = state['typical_p']
|
||||
self.generator.settings.token_repetition_penalty_max = state['repetition_penalty']
|
||||
self.generator.settings.token_repetition_penalty_sustain = state['repetition_penalty_range']
|
||||
self.generator.settings.token_repetition_penalty_sustain = -1 if state['repetition_penalty_range'] <= 0 else state['repetition_penalty_range']
|
||||
if state['ban_eos_token']:
|
||||
self.generator.disallow_tokens([self.tokenizer.eos_token_id])
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue