Merge pull request #572 from clusterfudge/issues/571

Potential fix for issues/571
This commit is contained in:
oobabooga 2023-03-27 14:06:38 -03:00 committed by GitHub
commit 48a6c9513e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,8 +240,6 @@ def generate_reply(question, max_new_tokens, do_sample, temperature, top_p, typi
break
yield formatted_outputs(reply, shared.model_name)
yield formatted_outputs(reply, shared.model_name)
# Stream the output naively for FlexGen since it doesn't support 'stopping_criteria'
else:
for i in range(max_new_tokens//8+1):