Incorrect Relative Path to constraints.txt in bloom/requirements.txt
System Info
Summary
After the recent move of examples/bloom/requirements.txt to examples/models/contrib/bloom/requirements.txt (commit #2978), the relative path to constraints.txt inside the file is no longer valid.
Problem
This line in requirements.txt:
-c ../constraints.txt
...fails with the error:
ERROR: Could not open requirements file: [Errno 2] No such file or directory: '.../../constraints.txt'
because constraints.txt is actually located at:
examples/constraints.txt
Suggested Fix:
Update the path in requirements.txt to:
-c ../../../constraints.txt
or, alternatively, move constraints.txt up to match the new relative structure.
Who can help?
No response
Information
- [x] The official example scripts
- [ ] My own modified scripts
Tasks
- [x] An officially supported task in the
examplesfolder (such as GLUE/SQuAD, ...) - [ ] My own task or dataset (give details below)
Reproduction
Error When running:
!pip install -r TensorRT-LLM/examples/models/contrib/bloom/requirements.txt
Error I received:
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'examples/models/contrib/bloom/../constraints.txt'
Expected behavior
Requirement already satisfied: tensorrt_llm>=0.0.0.dev0 ...
Downloading datasets-2.14.7 ...
Successfully built rouge_score
Successfully installed datasets-2.14.7 dill-0.3.7 fsspec-2023.10.0 multiprocess-0.70.15 pyarrow-hotfix-0.6 rouge_score-0.1.2
actual behavior
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'TensorRT-LLM/examples/models/contrib/bloom/../constraints.txt'
additional notes
Update the path in requirements.txt to:
-c ../../../constraints.txt
I see that this is going to be addressed by https://github.com/NVIDIA/TensorRT-LLM/pull/3003.
@Pradeep-18062002 Thanks a lot for reporting the issue and help fix it!