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

Use the feature of resume_from_checkpoint when using python code to run finetuning. #3774

Open
Jianshu-Hu opened this issue Apr 5, 2025 · 1 comment

Comments

@Jianshu-Hu
Copy link

Dear authors,
Thank you so much for this valuable repository!

I have followed the tuturial from https://github.com/modelscope/ms-swift/blob/main/examples/notebook/qwen2vl-ocr/ocr-sft.ipynb to write a python code for finetuning with my own dataset. I am wondering how should I modify the current code for resuming from a saved checkpoint. I have tried to include this argument resume_from_checkpoint in the training_args by setting resume_from_checkpoint to the path of the saved checkpoint. However, the model is not loaded and the training just starts from scratch.

Thank you in advance for helping with this.

Best,
Jianshu

@Jianshu-Hu Jianshu-Hu changed the title Use the function of resume_from_checkpoint when using python code to run finetuning. Use the feature of resume_from_checkpoint when using python code to run finetuning. Apr 5, 2025
@Jintao-Huang
Copy link
Collaborator

It is recommended to use shell for training, which will be easier to get started.

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