Skip to content

Commit

Permalink
update file exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
shibing624 committed Sep 8, 2023
1 parent 6d14add commit 7f06299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inference_multigpu_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def main():
repetition_penalty=args.repetition_penalty,
)
stop_str = tokenizer.eos_token if tokenizer.eos_token else prompt_template.stop_str
if os.path.exists(args.output_file):
if local_rank <= 0 and os.path.exists(args.output_file):
os.remove(args.output_file)
count = 0
for batch in tqdm(
Expand Down

0 comments on commit 7f06299

Please sign in to comment.