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

ERROR at the saving stage in the starcoder finetune scripts #20

Open
ttssp opened this issue Sep 6, 2023 · 3 comments
Open

ERROR at the saving stage in the starcoder finetune scripts #20

ttssp opened this issue Sep 6, 2023 · 3 comments
Assignees

Comments

@ttssp
Copy link

ttssp commented Sep 6, 2023

Hi friends,

I was trying the finetuing/starcoder/finetune.py using torch.distributed.launch, and met the following error :
FileNotFoundError: [Errno 2] No such file or directory: './checkpoints/checkpoint-10/pytorch_model.bin' caused at /finetuning/starcoder/finetune.py", line 35.

Could anyone let me know how to solve it?

image
@ttssp
Copy link
Author

ttssp commented Sep 6, 2023

not quite sure what is pytorch_model.bin, when it is generated and why we should remove it..

@ArmelRandy
Copy link
Collaborator

Hi. This part of the code is due to the fact that we wrote it when the peft library was still nascent. With recent version of transformers and peft, you don’t have to create your own callbacks. Feel free to remove this callback from your trainer.

@ttssp
Copy link
Author

ttssp commented Sep 6, 2023

Thanks a lot for the reply. I'll try right now.

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