[chatgpt] Add save checkpoint hook
📌 Checklist before creating the PR
- [ ] I have created an issue for this PR for traceability
- [x] The title follows the standard format:
[doc/gemini/tensor/...]: A concise description - [x] I have added relevant tags if possible for us to better distinguish different PRs
🚨 Issue number
Link this PR to your issue with words like fixed to automatically close the linked issue upon merge
e.g.
fixed #1234,closed #1234,resolved #1234
📝 What does this PR do?
Summarize your work here. if you have any plots/diagrams/screenshots/tables, please attach them here.
Add saving checkpoint callback.
💥 Checklist before requesting a review
- [ ] I have linked my PR to an issue (instruction)
- [ ] My issue clearly describes the problem/feature/proposal, with diagrams/charts/table/code if possible
- [x] I have performed a self-review of my code
- [ ] I have added thorough tests.
- [x] I have added docstrings for all the functions/methods I implemented
⭐️ Do you enjoy contributing to Colossal-AI?
- [x] 🌝 Yes, I do.
- [ ] 🌚 No, I don't.
Tell us more if you don't enjoy contributing to Colossal-AI.
Your pre-commit check failed, follow the steps to run pre-commit on your file for code style consistency.
- install pre-commit via "pip install pre-commit"
- install pre-commit hooks via "pre-commit install"
- run pre-commit on file with format error via "pre-commit run --files path" by replacing "path" with the actual file path
- commit and push to your branch
View your job at https://github.com/hpcaitech/ColossalAI/actions/runs/4201510390. Read our "CONTRIBUTING.md" for more reference to the code style.
Your pre-commit check failed, follow the steps to run pre-commit on your file for code style consistency.
- install pre-commit via "pip install pre-commit"
- install pre-commit hooks via "pre-commit install"
- run pre-commit on file with format error via "pre-commit run --files path" by replacing "path" with the actual file path
- commit and push to your branch
View your job at https://github.com/hpcaitech/ColossalAI/actions/runs/4201610835. Read our "CONTRIBUTING.md" for more reference to the code style.