💡 The Warmstarting model tutorial needs to be updated
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 9.3k
- Forks
- 4.4k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 4
Description
🚀 Describe the improvement or the new tutorial
Hello PyTorch Team,
cc @svekars
I recently came across the PyTorch warm starting tutorial
. While informative, I noticed it currently lacks a motivating example and some supporting code.
In my recent research, I explored warm starting by reusing a few layers from an LLM and retraining a smaller model. Surprisingly, in our case, the smaller warm-started model actually outperforms its larger counterpart whose weights it inherits. For example, see Figure 1 in our experiments with GPT-2 XL (1.5B).
Code: train_iniheritune.py
Paper: https://arxiv.org/abs/2404.08634
Please let me know if you’d be open to working on this jointly. I believe it could provide real value to the PyTorch community.
Best,
Sunny
Existing tutorials on this topic
List of existing tutorial is already attached in my previous text. Attaching again.
PyTorch warm starting tutorial
Additional context
Warm starting paper and codebase to be used if we end up collaborating.
Code: train_iniheritune.py
Contributor guide
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
Review the linked warm starting tutorial at docs.pytorch.org/tutorials/recipes/recipes/warmstarting_model_using_parameters_from_a_different_model.html, then read the referenced paper and train_iniheritune.py example. Define the motivating example and supporting code with the maintainers; done means the tutorial includes the agreed example and code and remains consistent with the existing material.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation, machine-learning
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100