You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I reviewed the Discussions, and have a new bug or useful enhancement to share.
Expected Behavior
Please provide a detailed written description of what you were trying to do, and what you expected llama-cpp-python to do.
Current Behavior
Please provide a detailed written description of what llama-cpp-python did, instead.
Environment and Context
Please provide detailed information about your computer setup. This is important in case the issue is not reproducible except for under certain specific conditions.
Physical (or virtual) hardware you are using, e.g. for Linux:
$ lscpu
(rolli) admin@sophon:~$ lscpu
Architecture: aarch64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 2
Vendor ID: ARM
Model: 4
Model name: Cortex-A53
Stepping: r0p4
BogoMIPS: 50.00
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Spec store bypass: Not affected
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Not affected
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Not affected
Operating System, e.g. for Linux:
$ uname -a
(rolli) admin@sophon:~$ uname -a
Linux sophon 5.10.4-tag--00079-ge4a7aebb1781 #1 SMP Wed Mar 20 19:44:39 CST 2024 aarch64 aarch64 aarch64 GNU/Linux
SDK version, e.g. for Linux:
$ python3 --version
$ make --version
$ g++ --version
(rolli) admin@sophon:$ python --version
Python 3.9.19
(rolli) admin@sophon:$ make --version
GNU Make 4.2.1
Built for aarch64-unknown-linux-gnu
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
(rolli) admin@sophon:~$ g++ --version
g++ (Ubuntu 9.3.0-10ubuntu2) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Failure Information (for bugs)
(base) admin@sophon:~$ pip3 install llama-cpp-python -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting llama-cpp-python
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/8e/ae/551f28037d9a49693f7b09b0e22912be4e839b1af5f4ae6ab721162a37a4/llama_cpp_python-0.2.57.tar.gz (36.9 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting typing-extensions>=4.5.0 (from llama-cpp-python)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f9/de/dc04a3ea60b22624b51c703a84bbe0184abcd1d0b9bc8074b5d6b7ab90bb/typing_extensions-4.10.0-py3-none-any.whl (33 kB)
Collecting numpy>=1.20.0 (from llama-cpp-python)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/fc/a5/4beee6488160798683eed5bdb7eead455892c3b4e1f78d79d8d3f3b084ac/numpy-1.26.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.2 MB)
Collecting diskcache>=5.6.1 (from llama-cpp-python)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/3f/27/4570e78fc0bf5ea0ca45eb1de3818a23787af9b390c0b0a0033a1b8236f9/diskcache-5.6.3-py3-none-any.whl (45 kB)
Collecting jinja2>=2.11.3 (from llama-cpp-python)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/30/6d/6de6be2d02603ab56e72997708809e8a5b0fbfee080735109b40a3564843/Jinja2-3.1.3-py3-none-any.whl (133 kB)
Collecting MarkupSafe>=2.0 (from jinja2>=2.11.3->llama-cpp-python)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/0a/7b/85681ae3c33c385b10ac0f8dd025c30af83c78cec1c37a6aa3b55e67f5ec/MarkupSafe-2.1.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (26 kB)
Building wheels for collected packages: llama-cpp-python
Building wheel for llama-cpp-python (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for llama-cpp-python (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [163 lines of output]
*** scikit-build-core 0.8.2 using CMake 3.28.4 (wheel)
*** Configuring CMake...
2024-03-24 15:19:20,478 - scikit_build_core - WARNING - libdir/ldlibrary: /home/admin/miniforge3/lib/libpython3.10.a is not a real file!
2024-03-24 15:19:20,479 - scikit_build_core - WARNING - Can't find a Python library, got libdir=/home/admin/miniforge3/lib, ldlibrary=libpython3.10.a, multiarch=aarch64-linux-gnu, masd=None
loading initial cache file /tmp/tmp29qg6qv6/build/CMakeInit.txt
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.25.1")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Warning: ccache not found - consider installing it for faster compilation or disable this warning with LLAMA_CCACHE=OFF
-- CMAKE_SYSTEM_PROCESSOR: aarch64
-- ARM detected
-- Performing Test COMPILER_SUPPORTS_FP16_FORMAT_I3E
-- Performing Test COMPILER_SUPPORTS_FP16_FORMAT_I3E - Failed
CMake Warning (dev) at CMakeLists.txt:21 (install):
Target llama has PUBLIC_HEADER files but no PUBLIC_HEADER DESTINATION.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at CMakeLists.txt:30 (install):
Target llama has PUBLIC_HEADER files but no PUBLIC_HEADER DESTINATION.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done (2.2s)
-- Generating done (0.0s)
-- Build files have been written to: /tmp/tmp29qg6qv6/build
*** Building project with Ninja...
Change Dir: '/tmp/tmp29qg6qv6/build'
Run Build Command(s): /tmp/pip-build-env-ettx8air/normal/lib/python3.10/site-packages/ninja/data/bin/ninja -v
[1/23] cd /tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp && /tmp/pip-build-env-ettx8air/normal/lib/python3.10/site-packages/cmake/data/bin/cmake -DMSVC= -DCMAKE_C_COMPILER_VERSION=9.3.0 -DCMAKE_C_COMPILER_ID=GNU -DCMAKE_VS_PLATFORM_NAME= -DCMAKE_C_COMPILER=/usr/bin/cc -P /tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/common/../scripts/gen-build-info-cpp.cmake
-- Found Git: /usr/bin/git (found version "2.25.1")
[2/23] /usr/bin/c++ -DGGML_SCHED_MAX_COPIES=4 -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -O3 -DNDEBUG -std=gnu++11 -fPIC -Wmissing-declarations -Wmissing-noreturn -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-array-bounds -Wno-format-truncation -Wextra-semi -MD -MT vendor/llama.cpp/common/CMakeFiles/build_info.dir/build-info.cpp.o -MF vendor/llama.cpp/common/CMakeFiles/build_info.dir/build-info.cpp.o.d -o vendor/llama.cpp/common/CMakeFiles/build_info.dir/build-info.cpp.o -c /tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/common/build-info.cpp
[3/23] /usr/bin/cc -DGGML_SCHED_MAX_COPIES=4 -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -I/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/. -O3 -DNDEBUG -std=gnu11 -fPIC -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes -Werror=implicit-int -Werror=implicit-function-declaration -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wdouble-promotion -pthread -MD -MT vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-quants.c.o -MF vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-quants.c.o.d -o vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-quants.c.o -c /tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c
FAILED: vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-quants.c.o
/usr/bin/cc -DGGML_SCHED_MAX_COPIES=4 -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -I/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/. -O3 -DNDEBUG -std=gnu11 -fPIC -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes -Werror=implicit-int -Werror=implicit-function-declaration -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wdouble-promotion -pthread -MD -MT vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-quants.c.o -MF vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-quants.c.o.d -o vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-quants.c.o -c /tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c: In function ‘ggml_vec_dot_q3_K_q8_K’:
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:508:27: error: implicit declaration of function ‘vld1q_s8_x4’; did you mean ‘vld1q_s8_x2’? [-Werror=implicit-function-declaration]
508 | #define ggml_vld1q_s8_x4 vld1q_s8_x4
| ^~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:5677:48: note: in expansion of macro ‘ggml_vld1q_s8_x4’
5677 | const ggml_int8x16x4_t q8bytes_1 = ggml_vld1q_s8_x4(q8); q8 += 64;
| ^~~~~~~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:508:27: error: invalid initializer
508 | #define ggml_vld1q_s8_x4 vld1q_s8_x4
| ^~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:5677:48: note: in expansion of macro ‘ggml_vld1q_s8_x4’
5677 | const ggml_int8x16x4_t q8bytes_1 = ggml_vld1q_s8_x4(q8); q8 += 64;
| ^~~~~~~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:508:27: error: invalid initializer
508 | #define ggml_vld1q_s8_x4 vld1q_s8_x4
| ^~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:5678:48: note: in expansion of macro ‘ggml_vld1q_s8_x4’
5678 | const ggml_int8x16x4_t q8bytes_2 = ggml_vld1q_s8_x4(q8); q8 += 64;
| ^~~~~~~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c: In function ‘ggml_vec_dot_q5_K_q8_K’:
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:508:27: error: invalid initializer
508 | #define ggml_vld1q_s8_x4 vld1q_s8_x4
| ^~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:7162:46: note: in expansion of macro ‘ggml_vld1q_s8_x4’
7162 | const ggml_int8x16x4_t q8bytes = ggml_vld1q_s8_x4(q8); q8 += 64;
| ^~~~~~~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c: In function ‘ggml_vec_dot_q6_K_q8_K’:
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:506:27: error: implicit declaration of function ‘vld1q_u8_x4’; did you mean ‘vld1q_u8_x2’? [-Werror=implicit-function-declaration]
506 | #define ggml_vld1q_u8_x4 vld1q_u8_x4
| ^~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:7844:40: note: in expansion of macro ‘ggml_vld1q_u8_x4’
7844 | ggml_uint8x16x4_t q6bits = ggml_vld1q_u8_x4(q6); q6 += 64;
| ^~~~~~~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:506:27: error: invalid initializer
506 | #define ggml_vld1q_u8_x4 vld1q_u8_x4
| ^~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:7844:40: note: in expansion of macro ‘ggml_vld1q_u8_x4’
7844 | ggml_uint8x16x4_t q6bits = ggml_vld1q_u8_x4(q6); q6 += 64;
| ^~~~~~~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:508:27: error: invalid initializer
508 | #define ggml_vld1q_s8_x4 vld1q_s8_x4
| ^~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:7845:40: note: in expansion of macro ‘ggml_vld1q_s8_x4’
7845 | ggml_int8x16x4_t q8bytes = ggml_vld1q_s8_x4(q8); q8 += 64;
| ^~~~~~~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:508:27: error: incompatible types when assigning to type ‘int8x16x4_t’ {aka ‘struct int8x16x4_t’} from type ‘int’
508 | #define ggml_vld1q_s8_x4 vld1q_s8_x4
| ^~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:7870:23: note: in expansion of macro ‘ggml_vld1q_s8_x4’
7870 | q8bytes = ggml_vld1q_s8_x4(q8); q8 += 64;
| ^~~~~~~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c: In function ‘ggml_vec_dot_iq2_xxs_q8_K’:
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:508:27: error: incompatible types when assigning to type ‘int8x16x4_t’ {aka ‘struct int8x16x4_t’} from type ‘int’
508 | #define ggml_vld1q_s8_x4 vld1q_s8_x4
| ^~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:8599:19: note: in expansion of macro ‘ggml_vld1q_s8_x4’
8599 | q8b = ggml_vld1q_s8_x4(q8); q8 += 64;
| ^~~~~~~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c: In function ‘ggml_vec_dot_iq2_xs_q8_K’:
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:508:27: error: incompatible types when assigning to type ‘int8x16x4_t’ {aka ‘struct int8x16x4_t’} from type ‘int’
508 | #define ggml_vld1q_s8_x4 vld1q_s8_x4
| ^~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:8737:19: note: in expansion of macro ‘ggml_vld1q_s8_x4’
8737 | q8b = ggml_vld1q_s8_x4(q8); q8 += 64;
| ^~~~~~~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c: In function ‘ggml_vec_dot_iq2_s_q8_K’:
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:508:27: error: incompatible types when assigning to type ‘int8x16x4_t’ {aka ‘struct int8x16x4_t’} from type ‘int’
508 | #define ggml_vld1q_s8_x4 vld1q_s8_x4
| ^~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:9021:19: note: in expansion of macro ‘ggml_vld1q_s8_x4’
9021 | q8b = ggml_vld1q_s8_x4(q8); q8 += 64;
| ^~~~~~~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c: In function ‘ggml_vec_dot_iq3_xxs_q8_K’:
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:508:27: error: incompatible types when assigning to type ‘int8x16x4_t’ {aka ‘struct int8x16x4_t’} from type ‘int’
508 | #define ggml_vld1q_s8_x4 vld1q_s8_x4
| ^~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:9213:19: note: in expansion of macro ‘ggml_vld1q_s8_x4’
9213 | q8b = ggml_vld1q_s8_x4(q8); q8 += 64;
| ^~~~~~~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c: In function ‘ggml_vec_dot_iq3_s_q8_K’:
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:508:27: error: incompatible types when assigning to type ‘int8x16x4_t’ {aka ‘struct int8x16x4_t’} from type ‘int’
508 | #define ggml_vld1q_s8_x4 vld1q_s8_x4
| ^~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:9378:19: note: in expansion of macro ‘ggml_vld1q_s8_x4’
9378 | q8b = ggml_vld1q_s8_x4(q8); q8 += 64;
| ^~~~~~~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c: In function ‘ggml_vec_dot_iq1_s_q8_K’:
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:508:27: error: incompatible types when assigning to type ‘int8x16x4_t’ {aka ‘struct int8x16x4_t’} from type ‘int’
508 | #define ggml_vld1q_s8_x4 vld1q_s8_x4
| ^~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:9604:19: note: in expansion of macro ‘ggml_vld1q_s8_x4’
9604 | q8b = ggml_vld1q_s8_x4(q8); q8 += 64;
| ^~~~~~~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c: In function ‘ggml_vec_dot_iq4_xs_q8_K’:
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:508:27: error: incompatible types when assigning to type ‘int8x16x4_t’ {aka ‘struct int8x16x4_t’} from type ‘int’
508 | #define ggml_vld1q_s8_x4 vld1q_s8_x4
| ^~~~~~~~~~~
/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-quants.c:9829:22: note: in expansion of macro ‘ggml_vld1q_s8_x4’
9829 | q8b = ggml_vld1q_s8_x4(q8); q8 += 64;
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
[4/23] /usr/bin/cc -DGGML_SCHED_MAX_COPIES=4 -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -I/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/. -O3 -DNDEBUG -std=gnu11 -fPIC -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes -Werror=implicit-int -Werror=implicit-function-declaration -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wdouble-promotion -pthread -MD -MT vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-alloc.c.o -MF vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-alloc.c.o.d -o vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-alloc.c.o -c /tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-alloc.c
[5/23] /usr/bin/cc -DGGML_SCHED_MAX_COPIES=4 -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -I/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/. -O3 -DNDEBUG -std=gnu11 -fPIC -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes -Werror=implicit-int -Werror=implicit-function-declaration -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wdouble-promotion -pthread -MD -MT vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-backend.c.o -MF vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-backend.c.o.d -o vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-backend.c.o -c /tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml-backend.c
[6/23] /usr/bin/c++ -DLLAMA_BUILD -DLLAMA_SHARED -I/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/examples/llava/. -I/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/examples/llava/../.. -I/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/examples/llava/../../common -I/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/. -O3 -DNDEBUG -fPIC -Wno-cast-qual -pthread -MD -MT vendor/llama.cpp/examples/llava/CMakeFiles/llava.dir/llava.cpp.o -MF vendor/llama.cpp/examples/llava/CMakeFiles/llava.dir/llava.cpp.o.d -o vendor/llama.cpp/examples/llava/CMakeFiles/llava.dir/llava.cpp.o -c /tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/examples/llava/llava.cpp
[7/23] /usr/bin/c++ -DGGML_SCHED_MAX_COPIES=4 -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -I/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/common/. -I/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/. -O3 -DNDEBUG -std=gnu++11 -fPIC -Wmissing-declarations -Wmissing-noreturn -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-array-bounds -Wno-format-truncation -Wextra-semi -MD -MT vendor/llama.cpp/common/CMakeFiles/common.dir/sampling.cpp.o -MF vendor/llama.cpp/common/CMakeFiles/common.dir/sampling.cpp.o.d -o vendor/llama.cpp/common/CMakeFiles/common.dir/sampling.cpp.o -c /tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/common/sampling.cpp
[8/23] /usr/bin/c++ -DGGML_SCHED_MAX_COPIES=4 -DLLAMA_BUILD -DLLAMA_SHARED -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -Dllama_EXPORTS -I/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/. -O3 -DNDEBUG -std=gnu++11 -fPIC -Wmissing-declarations -Wmissing-noreturn -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-array-bounds -Wno-format-truncation -Wextra-semi -pthread -MD -MT vendor/llama.cpp/CMakeFiles/llama.dir/unicode.cpp.o -MF vendor/llama.cpp/CMakeFiles/llama.dir/unicode.cpp.o.d -o vendor/llama.cpp/CMakeFiles/llama.dir/unicode.cpp.o -c /tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/unicode.cpp
[9/23] /usr/bin/c++ -DGGML_SCHED_MAX_COPIES=4 -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -I/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/common/. -I/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/. -O3 -DNDEBUG -std=gnu++11 -fPIC -Wmissing-declarations -Wmissing-noreturn -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-array-bounds -Wno-format-truncation -Wextra-semi -MD -MT vendor/llama.cpp/common/CMakeFiles/common.dir/common.cpp.o -MF vendor/llama.cpp/common/CMakeFiles/common.dir/common.cpp.o.d -o vendor/llama.cpp/common/CMakeFiles/common.dir/common.cpp.o -c /tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/common/common.cpp
[10/23] /usr/bin/cc -DGGML_SCHED_MAX_COPIES=4 -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -I/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/. -O3 -DNDEBUG -std=gnu11 -fPIC -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes -Werror=implicit-int -Werror=implicit-function-declaration -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wdouble-promotion -pthread -MD -MT vendor/llama.cpp/CMakeFiles/ggml.dir/ggml.c.o -MF vendor/llama.cpp/CMakeFiles/ggml.dir/ggml.c.o.d -o vendor/llama.cpp/CMakeFiles/ggml.dir/ggml.c.o -c /tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/ggml.c
[11/23] /usr/bin/c++ -DLLAMA_BUILD -DLLAMA_SHARED -I/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/examples/llava/. -I/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/examples/llava/../.. -I/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/examples/llava/../../common -I/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/. -O3 -DNDEBUG -fPIC -Wno-cast-qual -pthread -MD -MT vendor/llama.cpp/examples/llava/CMakeFiles/llava.dir/clip.cpp.o -MF vendor/llama.cpp/examples/llava/CMakeFiles/llava.dir/clip.cpp.o.d -o vendor/llama.cpp/examples/llava/CMakeFiles/llava.dir/clip.cpp.o -c /tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/examples/llava/clip.cpp
[12/23] /usr/bin/c++ -DGGML_SCHED_MAX_COPIES=4 -DLLAMA_BUILD -DLLAMA_SHARED -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -Dllama_EXPORTS -I/tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/. -O3 -DNDEBUG -std=gnu++11 -fPIC -Wmissing-declarations -Wmissing-noreturn -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-array-bounds -Wno-format-truncation -Wextra-semi -pthread -MD -MT vendor/llama.cpp/CMakeFiles/llama.dir/llama.cpp.o -MF vendor/llama.cpp/CMakeFiles/llama.dir/llama.cpp.o.d -o vendor/llama.cpp/CMakeFiles/llama.dir/llama.cpp.o -c /tmp/pip-install-3ccb9slh/llama-cpp-python_80e89b07d82f44ad9ab5ee7b7f870141/vendor/llama.cpp/llama.cpp
ninja: build stopped: subcommand failed.
*** CMake build failed
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for llama-cpp-python
Failed to build llama-cpp-python
ERROR: Could not build wheels for llama-cpp-python, which is required to install pyproject.toml-based projects
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
Steps to Reproduce
Please provide detailed steps for reproducing the issue. We are not sitting in front of your screen, so the more detail the better.
step 1
step 2
step 3
etc.
Note: Many issues seem to be regarding functional or performance issues / differences with llama.cpp. In these cases we need to confirm that you're comparing against the version of llama.cpp that was built with your python package, and which parameters you're passing to the context.
Run llama.cpp's ./main with the same arguments you previously passed to llama-cpp-python and see if you can reproduce the issue. If you can, log an issue with llama.cpp
Failure Logs
Please include any relevant log snippets or files. If it works under one configuration but not under another, please provide logs for both configurations and their corresponding outputs so it is easy to see where behavior changes.
Also, please try to avoid using screenshots if at all possible. Instead, copy/paste the console output and use Github's markdown to cleanly format your logs for easy readability.
× Building editable for llama_cpp_python (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
�[0m�[91m full command: /usr/bin/python /usr/local/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_editable /tmp/tmpn87jsr4h
�[0m�[91m cwd: /usr/src/odsc-llama-cpp-python-aio
�[0m Building editable for llama_cpp_python (pyproject.toml): finished with status 'error'
�[91m ERROR: Failed building editable for llama_cpp_python
�[0mFailed to build llama_cpp_python
�[91mERROR: Could not build wheels for llama_cpp_python, which is required to install pyproject.toml-based projects
�[0mThe command '/bin/sh -c cd odsc-llama-cpp-python-aio && python -m pip install --verbose -e .' returned a non-zero code: 1
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Expected Behavior
Please provide a detailed written description of what you were trying to do, and what you expected
llama-cpp-python
to do.Current Behavior
Please provide a detailed written description of what
llama-cpp-python
did, instead.Environment and Context
Please provide detailed information about your computer setup. This is important in case the issue is not reproducible except for under certain specific conditions.
$ lscpu
(rolli) admin@sophon:~$ lscpu
Architecture: aarch64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 2
Vendor ID: ARM
Model: 4
Model name: Cortex-A53
Stepping: r0p4
BogoMIPS: 50.00
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Spec store bypass: Not affected
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Not affected
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Not affected
$ uname -a
(rolli) admin@sophon:~$ uname -a
Linux sophon 5.10.4-tag--00079-ge4a7aebb1781 #1 SMP Wed Mar 20 19:44:39 CST 2024 aarch64 aarch64 aarch64 GNU/Linux
(rolli) admin@sophon:
$ python --version$ make --versionPython 3.9.19
(rolli) admin@sophon:
GNU Make 4.2.1
Built for aarch64-unknown-linux-gnu
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
(rolli) admin@sophon:~$ g++ --version
g++ (Ubuntu 9.3.0-10ubuntu2) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Failure Information (for bugs)
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
Steps to Reproduce
Please provide detailed steps for reproducing the issue. We are not sitting in front of your screen, so the more detail the better.
Note: Many issues seem to be regarding functional or performance issues / differences with
llama.cpp
. In these cases we need to confirm that you're comparing against the version ofllama.cpp
that was built with your python package, and which parameters you're passing to the context.Try the following:
git clone https://github.com/abetlen/llama-cpp-python
cd llama-cpp-python
rm -rf _skbuild/
# delete any old buildspython -m pip install .
cd ./vendor/llama.cpp
cmake
llama.cpp./main
with the same arguments you previously passed to llama-cpp-python and see if you can reproduce the issue. If you can, log an issue with llama.cppFailure Logs
Please include any relevant log snippets or files. If it works under one configuration but not under another, please provide logs for both configurations and their corresponding outputs so it is easy to see where behavior changes.
Also, please try to avoid using screenshots if at all possible. Instead, copy/paste the console output and use Github's markdown to cleanly format your logs for easy readability.
Example environment info:
The text was updated successfully, but these errors were encountered: