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

Can't find config.json at '{pretrained_model_name_or_path} #4

Closed
bui-thanh-lam opened this issue Mar 22, 2023 · 1 comment
Closed

Comments

@bui-thanh-lam
Copy link

bui-thanh-lam commented Mar 22, 2023

Thanks for your interesting work!

I followed your guideline to finetune the model and try it. But the saved models were only these stuff (image below):

image

So, when I loaded the PEFT model to use, it could not find the config.json of the model. How can I get over it?

Note that this is the checkpoint saved by Huggingface Trainer model during training. I canceled the training job so .save_pretrained() method in the end might not execute.

@bui-thanh-lam
Copy link
Author

I found the solution to this: save the config.json seperately, and use the saved weight (i.e. pytorch_model.bin) to load for inference.

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

1 participant