Lightning-AI / Lightning-AI/lit-llama
Resume in the pretraining code
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 6.1k
- Forks
- 517
- PR merge metrics
- No merged PRs in 30d
Description
I would like to request a new feature in the code: the ability to resume training from a checkpoint.
Currently, the code can save a checkpoint of the model's state at any point during training. However, there is no way to resume training from a checkpoint.
The code can save two things along with the model state_dict: 1)the optimizer, 2)the id of the last example it has seen (assuming the data is fed sequentially to the model not randomly)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the pretraining checkpoint save and load paths, then inspect how the model state_dict, optimizer state, and last-example id are handled. Done means training can restart from a checkpoint while preserving the optimizer and sequential data position.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100