Run name issue, different run name file in webpage & local

When using wandb lib within huggingface lib, I assign the runname in the running script and wandb create a run in the webpage according to the name, but when the code also create a randomly named file in the local and the code would try to open the local file. What should I do to align the both?