Skip to content

Commit

Permalink
update remove file.
Browse files Browse the repository at this point in the history
  • Loading branch information
shibing624 committed Sep 8, 2023
1 parent 8b90c59 commit 75fa4c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/gpt/inference_multigpu_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,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 75fa4c4

Please sign in to comment.