parent
a2127239de
commit
ac19d5101f
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ def generate_reply(question, state, eos_token=None, stopping_strings=[]):
|
||||||
else:
|
else:
|
||||||
for k in ['max_new_tokens', 'do_sample', 'temperature']:
|
for k in ['max_new_tokens', 'do_sample', 'temperature']:
|
||||||
generate_params[k] = state[k]
|
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:
|
if not shared.args.no_stream:
|
||||||
generate_params['max_new_tokens'] = 8
|
generate_params['max_new_tokens'] = 8
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue