mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
Fix bug in multigpu setups
This commit is contained in:
parent
5bed607b77
commit
d88b7836c6
@ -194,7 +194,7 @@ def generate_reply(question, max_new_tokens, do_sample, temperature, top_p, typi
|
|||||||
yield formatted_outputs(reply, shared.model_name)
|
yield formatted_outputs(reply, shared.model_name)
|
||||||
|
|
||||||
if not shared.args.flexgen:
|
if not shared.args.flexgen:
|
||||||
if output[-1] == n:
|
if int(output[-1]) == int(n):
|
||||||
break
|
break
|
||||||
input_ids = torch.reshape(output, (1, output.shape[0]))
|
input_ids = torch.reshape(output, (1, output.shape[0]))
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user