Lightning-AI / Lightning-AI/lit-llama

[question] assert lora_path.is_file() error

Open
#462 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.