Lightning-AI / Lightning-AI/litgpt
KeyError in convert_hf_checkpoint.py when using 'TinyLlama-1.1B-intermediate-step-480k-1T' checkpoint
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13.7k
- Forks
- 1.5k
- Avg merge
- 15h 37m
- Merged PRs (30d)
- 1
Description
Encountered a KeyError running convert_hf_checkpoint.py with the specified checkpoint directory 'checkpoints/PY007/TinyLlama-1.1B-intermediate-step-480k-1T'. The error occurs in lit_gpt/config.py at the line(85) conf_dict = name_to_config[name].copy().
Command: python scripts/convert_hf_checkpoint.py --checkpoint_dir checkpoints/PY007/TinyLlama-1.1B-intermediate-step-480k-1T

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
Start by reproducing the command in scripts/convert_hf_checkpoint.py with the named TinyLlama checkpoint directory. Trace the configuration lookup at line 85 of lit_gpt/config.py and determine why this checkpoint name is not resolved. Done means the conversion completes without the reported KeyError for the specified checkpoint.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100