Models missing 'requirements.txt' files
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1k
- Forks
- 346
- PR merge metrics
- No merged PRs in 30d
Description
Models lit_llama, lit_llama_generate and lit_llama_lora are failing with ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt' during the installation process as they are missing their requirements.txt files.
Full error with command:
$ python3 benchmark/install.py lit_llama_lora --canary -v
checking packages numpy, torch, torchvision, torchaudio are installed, generating constaints...OK
running setup for /home/user/benchmark/torchbenchmark/canary_models/lit_llama_lora...ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
Traceback (most recent call last):
File "/home/user/benchmark/torchbenchmark/canary_models/lit_llama_lora/install.py", line 4, in <module>
install_lit_llama()
File "/home/user/benchmark/torchbenchmark/util/framework/lit_llama.py", line 57, in install_lit_llama
pip_install_requirements()
File "/home/user/benchmark/utils/python_utils.py", line 47, in pip_install_requirements
subprocess.check_call(
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['bin/python3', '-m', 'pip', 'install', '-r', 'requirements.txt', '-c', '/home/user/benchmark/build/constraints.txt']' returned non-zero exit status 1.
FAIL
Error for /home/user/benchmark/torchbenchmark/canary_models/lit_llama_lora:
---------------------------------------------------------------------------
None
---------------------------------------------------------------------------
Traceback (most recent call last):
File "/home/user/benchmark/install.py", line 120, in <module>
raise RuntimeError("Failed to complete setup")
RuntimeError: Failed to complete setup
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
Check the setup paths for lit_llama, lit_llama_generate, and lit_llama_lora under canary_models, along with their install.py files and util/framework/lit_llama.py. Reproduce the failure with python3 benchmark/install.py lit_llama_lora --canary -v, then verify that installation completes successfully for all three models.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- build-system, testing-qa
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100