Lightning-AI / Lightning-AI/lit-llama
[question] assert lora_path.is_file() error
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 6.1k
- Forks
- 517
- PR merge metrics
- No merged PRs in 30d
Description
Dear all,
While I was running 'generate/lora.py', I encountered the error below:
...
lit-llama/generate/lora.py", line 55, in main
assert lora_path.is_file()
AssertionError
could you tell me how I can resolve this? Line 55 is the '):' for 'def main ('
Thanks in advance.
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 with generate/lora.py and inspect how lora_path is assigned before the assertion at line 55. Verify that the expected LoRA checkpoint path exists and is a file, then rerun the command to confirm the assertion is no longer raised.
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
- Needs clarification
- Newbie friendliness
- 25/100