Fix llama-cpp-python build for Apple Silicon (#763)

* Fix llama-cpp-python build for Apple Silicon

* Make ShellCheck happy

* Make gaby happy

---------

Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
This commit is contained in:
Mariusz Kogen
2023-09-20 14:35:50 +02:00
committed by GitHub
parent 3f4a0be6a7
commit 7f6321ae82
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ _term() {
}
# Install python bindings
pip install llama-cpp-python==0.1.78 || {
UNAME_M=$(dpkg --print-architecture) pip install llama-cpp-python==0.1.78 || {
echo 'Failed to install llama-cpp-python'
exit 1
}

View File

@@ -9,7 +9,7 @@ pip install -e ./api || {
}
# Install python bindings
pip install llama-cpp-python==0.1.78 || {
UNAME_M=$(dpkg --print-architecture) pip install llama-cpp-python==0.1.78 || {
echo 'Failed to install llama-cpp-python'
exit 1
}