We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 956504f commit 8c9ce59Copy full SHA for 8c9ce59
generate.py
@@ -615,11 +615,7 @@ def _main(
615
# arbitrarily large number as chat mode goes until max_seq length
616
# or user exits
617
num_samples = generator_args.num_samples if not generator_args.chat_mode else 100000
618
- i = (
619
- -1
620
- ) # long loop and Im scared someone will add a continue in it, so start at -1 and increment at the start
621
- while i < num_samples:
622
- i += 1
+ for i in range(num_samples):
623
device_sync(device=builder_args.device)
624
if i >= 0 and generator_args.chat_mode:
625
prompt = input("User: ")
0 commit comments