How to include the installation parameters and make BLAS arguments in the requirements.txt? #976
-
🙋🏻♂️I am building a simple project in my local machine and then will deploy on AWS ubuntu server as an API. $env:CMAKE_ARGS = "-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS"
pip install llama-cpp-python 👉🏻 When I do the ⁉ QuestionHow can In include these arguments in the requirements so that in the deployment environment I don't have to configure things manually? - And is that even possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Cross-posted my answer from the issue. @AayushSameerShah late reply but I have a bettter answer for you! In newer versions of # requirements.txt
llama-cpp-python -C cmake.args="-DLLAMA_BLAS=ON;-DLLAMA_BLAS_VENDOR=OpenBLAS" This is also documented now in the README.md now under Hope this helps. |
Beta Was this translation helpful? Give feedback.
Cross-posted my answer from the issue.
@AayushSameerShah late reply but I have a bettter answer for you! In newer versions of
pip
it's possible to specify-C/--config-settings
flag which passes args to the build tool (scikit-build-core in our case) so you can doThis is also documented now in the README.md now under
CLI / requirements.txt
. You may need to runpip install --upgrade pip
if you get an error about the-C
option to upgrade to a newer version of pip.Hope this helps.