mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 16:17:57 +01:00
Change a comment
This commit is contained in:
parent
05e9da0c12
commit
f79805f4a4
@ -367,7 +367,7 @@ def generate_reply(question, tokens, do_sample, max_new_tokens, temperature, top
|
|||||||
t1 = time.time()
|
t1 = time.time()
|
||||||
print(f"Output generated in {(t1-t0):.2f} seconds ({(len(output)-len(input_ids[0]))/(t1-t0)/8:.2f} it/s, {len(output)-len(input_ids[0])} tokens)")
|
print(f"Output generated in {(t1-t0):.2f} seconds ({(len(output)-len(input_ids[0]))/(t1-t0)/8:.2f} it/s, {len(output)-len(input_ids[0])} tokens)")
|
||||||
|
|
||||||
# Generate the reply 1 token at a time
|
# Generate the reply 8 tokens at a time
|
||||||
else:
|
else:
|
||||||
yield formatted_outputs(original_question, model_name)
|
yield formatted_outputs(original_question, model_name)
|
||||||
for i in tqdm(range(tokens//8+1)):
|
for i in tqdm(range(tokens//8+1)):
|
||||||
|
Loading…
Reference in New Issue
Block a user