mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-26 14:20:40 +01:00
parent
a2127239de
commit
ac19d5101f
@ -209,7 +209,7 @@ def generate_reply(question, state, eos_token=None, stopping_strings=[]):
|
||||
else:
|
||||
for k in ['max_new_tokens', 'do_sample', 'temperature']:
|
||||
generate_params[k] = state[k]
|
||||
generate_params['stop'] = state['eos_token_ids'][-1]
|
||||
generate_params['stop'] = eos_token_ids[-1]
|
||||
if not shared.args.no_stream:
|
||||
generate_params['max_new_tokens'] = 8
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user