Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file or directory: 'training_args.bin' #2

Open
jingzhang697 opened this issue Oct 28, 2022 · 1 comment
Open

No such file or directory: 'training_args.bin' #2

jingzhang697 opened this issue Oct 28, 2022 · 1 comment

Comments

@jingzhang697
Copy link

Hello,
Thank you very much for your answer to my previous question. I appreciate this article very much and am very interested in it. I have tried to run the code, but in the process of running it, I encountered a problem. torch.load(op.join(args.eval_model_dir, 'training_args.bin'))shows no file between 530-540 of the train.py code, and I didn't find it in the folder. This problem has puzzled me for a long time, and I haven't found a solution. Hope to get your help, thank you very much!
def restore_training_settings(args):
assert not args.do_train and (args.do_test or args.do_eval)
train_args = torch.load(op.join(args.eval_model_dir, 'training_args.bin'))

@mesnico
Copy link
Owner

mesnico commented Oct 28, 2022

Dear @jingzhang697 , thank for your interest in our work.
This problem is most likely due to a wrong download of the checkpoint folder or a wrong configuration of the path pointed by args.eval_model_dir.

Make sure that you correctly downloaded the folder using the command explained in the README:

path/to/azcopy copy 'https://biglmdiag.blob.core.windows.net/vinvl/model_ckpts/coco_ir/base/checkpoint-0132780/' <checkpoint-target-folder> --recursive

where you have to substitute <checkpoint-target-folder> with the path where you want to store the downloaded files.

If you are already sure you correctly performed this step, what files do you see in the downloaded folder?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants