Created
September 18, 2023 10:18
-
-
Save CrashTD/e3ef7d4901a22b7795e1618b196e3d36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ CT_HIPBLAS=1 pip install . --no-binary ctransformers | |
Processing /home/mk/Daten/textgen/text-generation-webui/ctransformers | |
Installing build dependencies ... done | |
Getting requirements to build wheel ... done | |
Preparing metadata (pyproject.toml) ... done | |
Requirement already satisfied: huggingface-hub in /home/mk/Daten/textgen/lib/python3.10/site-packages (from ctransformers==0.2.27) (0.17.1) | |
Collecting py-cpuinfo<10.0.0,>=9.0.0 (from ctransformers==0.2.27) | |
Using cached py_cpuinfo-9.0.0-py3-none-any.whl (22 kB) | |
Requirement already satisfied: filelock in /home/mk/Daten/textgen/lib/python3.10/site-packages (from huggingface-hub->ctransformers==0.2.27) (3.9.0) | |
Requirement already satisfied: fsspec in /home/mk/Daten/textgen/lib/python3.10/site-packages (from huggingface-hub->ctransformers==0.2.27) (2023.6.0) | |
Requirement already satisfied: requests in /home/mk/Daten/textgen/lib/python3.10/site-packages (from huggingface-hub->ctransformers==0.2.27) (2.28.1) | |
Requirement already satisfied: tqdm>=4.42.1 in /home/mk/Daten/textgen/lib/python3.10/site-packages (from huggingface-hub->ctransformers==0.2.27) (4.66.1) | |
Requirement already satisfied: pyyaml>=5.1 in /home/mk/.local/lib/python3.10/site-packages (from huggingface-hub->ctransformers==0.2.27) (5.4.1) | |
Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/mk/Daten/textgen/lib/python3.10/site-packages (from huggingface-hub->ctransformers==0.2.27) (4.7.1) | |
Requirement already satisfied: packaging>=20.9 in /home/mk/Daten/textgen/lib/python3.10/site-packages (from huggingface-hub->ctransformers==0.2.27) (23.1) | |
Requirement already satisfied: charset-normalizer<3,>=2 in /home/mk/Daten/textgen/lib/python3.10/site-packages (from requests->huggingface-hub->ctransformers==0.2.27) (2.1.1) | |
Requirement already satisfied: idna<4,>=2.5 in /home/mk/Daten/textgen/lib/python3.10/site-packages (from requests->huggingface-hub->ctransformers==0.2.27) (3.4) | |
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/mk/Daten/textgen/lib/python3.10/site-packages (from requests->huggingface-hub->ctransformers==0.2.27) (1.26.13) | |
Requirement already satisfied: certifi>=2017.4.17 in /home/mk/Daten/textgen/lib/python3.10/site-packages (from requests->huggingface-hub->ctransformers==0.2.27) (2022.12.7) | |
Building wheels for collected packages: ctransformers | |
Building wheel for ctransformers (pyproject.toml) ... error | |
error: subprocess-exited-with-error | |
× Building wheel for ctransformers (pyproject.toml) did not run successfully. | |
│ exit code: 1 | |
╰─> [139 lines of output] | |
-------------------------------------------------------------------------------- | |
-- Trying 'Ninja' generator | |
-------------------------------- | |
--------------------------- | |
---------------------- | |
----------------- | |
------------ | |
------- | |
-- | |
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): | |
Compatibility with CMake < 3.5 will be removed from a future version of | |
CMake. | |
Update the VERSION argument <min> value or use a ...<max> suffix to tell | |
CMake that the project does not need compatibility with older versions. | |
Not searching for unused variables given on the command line. | |
-- The C compiler identification is GNU 13.2.1 | |
-- 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 | |
-- The CXX compiler identification is GNU 13.2.1 | |
-- 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 | |
-- Configuring done (0.4s) | |
-- Generating done (0.0s) | |
-- Build files have been written to: /home/mk/Daten/textgen/text-generation-webui/ctransformers/_cmake_test_compile/build | |
-- | |
------- | |
------------ | |
----------------- | |
---------------------- | |
--------------------------- | |
-------------------------------- | |
-- Trying 'Ninja' generator - success | |
-------------------------------------------------------------------------------- | |
Configuring Project | |
Working directory: | |
/home/mk/Daten/textgen/text-generation-webui/ctransformers/_skbuild/linux-x86_64-3.10/cmake-build | |
Command: | |
/tmp/pip-build-env-kwmzj4ts/overlay/lib/python3.10/site-packages/cmake/data/bin/cmake /home/mk/Daten/textgen/text-generation-webui/ctransformers -G Ninja -DCMAKE_MAKE_PROGRAM:FILEPATH=/tmp/pip-build-env-kwmzj4ts/overlay/lib/python3.10/site-packages/ninja/data/bin/ninja --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/home/mk/Daten/textgen/text-generation-webui/ctransformers/_skbuild/linux-x86_64-3.10/cmake-install -DPYTHON_VERSION_STRING:STRING=3.10.9 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/tmp/pip-build-env-kwmzj4ts/overlay/lib/python3.10/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/home/mk/Daten/textgen/bin/python -DPYTHON_INCLUDE_DIR:PATH=/home/mk/Daten/textgen/include/python3.10 -DPYTHON_LIBRARY:PATH=/home/mk/Daten/textgen/lib/libpython3.10.so -DPython_EXECUTABLE:PATH=/home/mk/Daten/textgen/bin/python -DPython_ROOT_DIR:PATH=/home/mk/Daten/textgen -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/home/mk/Daten/textgen/include/python3.10 -DPython3_EXECUTABLE:PATH=/home/mk/Daten/textgen/bin/python -DPython3_ROOT_DIR:PATH=/home/mk/Daten/textgen -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/home/mk/Daten/textgen/include/python3.10 -DCMAKE_MAKE_PROGRAM:FILEPATH=/tmp/pip-build-env-kwmzj4ts/overlay/lib/python3.10/site-packages/ninja/data/bin/ninja -DCT_HIPBLAS=1 -DCMAKE_BUILD_TYPE:STRING=Release | |
Not searching for unused variables given on the command line. | |
-- CT_INSTRUCTIONS: avx2 | |
-- CT_CUBLAS: OFF | |
-- CT_HIPBLAS: 1 | |
-- CT_METAL: OFF | |
-- x86 detected | |
CMake Warning at CMakeLists.txt:171 (message): | |
Only LLVM is supported for HIP, hint: CC=/opt/rocm/llvm/bin/clang | |
CMake Warning at CMakeLists.txt:174 (message): | |
Only LLVM is supported for HIP, hint: CXX=/opt/rocm/llvm/bin/clang++ | |
CMake Deprecation Warning at /opt/rocm/lib/cmake/hip/hip-config.cmake:20 (cmake_minimum_required): | |
Compatibility with CMake < 3.5 will be removed from a future version of | |
CMake. | |
Update the VERSION argument <min> value or use a ...<max> suffix to tell | |
CMake that the project does not need compatibility with older versions. | |
Call Stack (most recent call first): | |
CMakeLists.txt:177 (find_package) | |
-- hip::amdhip64 is SHARED_LIBRARY | |
c++: error: unrecognized command-line option ‘--rtlib=compiler-rt’ | |
CMake Deprecation Warning at /opt/rocm/lib/cmake/hip/hip-config.cmake:20 (cmake_minimum_required): | |
Compatibility with CMake < 3.5 will be removed from a future version of | |
CMake. | |
Update the VERSION argument <min> value or use a ...<max> suffix to tell | |
CMake that the project does not need compatibility with older versions. | |
Call Stack (most recent call first): | |
/tmp/pip-build-env-kwmzj4ts/overlay/lib/python3.10/site-packages/cmake/data/share/cmake-3.27/Modules/CMakeFindDependencyMacro.cmake:76 (find_package) | |
/opt/rocm/lib/cmake/hipblas/hipblas-config.cmake:90 (find_dependency) | |
CMakeLists.txt:178 (find_package) | |
-- hip::amdhip64 is SHARED_LIBRARY | |
c++: error: unrecognized command-line option ‘--rtlib=compiler-rt’ | |
-- HIP and hipBLAS found | |
-- Configuring done (0.0s) | |
-- Generating done (0.0s) | |
-- Build files have been written to: /home/mk/Daten/textgen/text-generation-webui/ctransformers/_skbuild/linux-x86_64-3.10/cmake-build | |
[1/5] Building CXX object CMakeFiles/ctransformers.dir/models/ggml/cmpnct_unicode.cpp.o | |
FAILED: CMakeFiles/ctransformers.dir/models/ggml/cmpnct_unicode.cpp.o | |
/usr/bin/c++ -DCC_TURING=1000000000 -DGGML_CUDA_DMMV_X=32 -DGGML_CUDA_MMQ_Y=64 -DGGML_CUDA_MMV_Y=1 -DGGML_USE_HIPBLAS -DGGML_USE_K_QUANTS -DK_QUANTS_PER_ITERATION=2 -D__HIP_PLATFORM_AMD__=1 -D__HIP_PLATFORM_HCC__=1 -Dctransformers_EXPORTS -I/home/mk/Daten/textgen/text-generation-webui/ctransformers/models -isystem /opt/rocm/include -O3 -DNDEBUG -std=gnu++11 -fPIC -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar -mfma -mavx2 -mf16c -mavx -x hip --offload-arch=gfx900 --offload-arch=gfx906 --offload-arch=gfx908 --offload-arch=gfx90a --offload-arch=gfx1030 -MD -MT CMakeFiles/ctransformers.dir/models/ggml/cmpnct_unicode.cpp.o -MF CMakeFiles/ctransformers.dir/models/ggml/cmpnct_unicode.cpp.o.d -o CMakeFiles/ctransformers.dir/models/ggml/cmpnct_unicode.cpp.o -c /home/mk/Daten/textgen/text-generation-webui/ctransformers/models/ggml/cmpnct_unicode.cpp | |
c++: error: unrecognized command-line option ‘--offload-arch=gfx900’ | |
c++: error: unrecognized command-line option ‘--offload-arch=gfx906’ | |
c++: error: unrecognized command-line option ‘--offload-arch=gfx908’ | |
c++: error: unrecognized command-line option ‘--offload-arch=gfx90a’ | |
c++: error: unrecognized command-line option ‘--offload-arch=gfx1030’ | |
[2/5] Building CXX object CMakeFiles/ctransformers.dir/models/llm.cc.o | |
FAILED: CMakeFiles/ctransformers.dir/models/llm.cc.o | |
/usr/bin/c++ -DCC_TURING=1000000000 -DGGML_CUDA_DMMV_X=32 -DGGML_CUDA_MMQ_Y=64 -DGGML_CUDA_MMV_Y=1 -DGGML_USE_HIPBLAS -DGGML_USE_K_QUANTS -DK_QUANTS_PER_ITERATION=2 -D__HIP_PLATFORM_AMD__=1 -D__HIP_PLATFORM_HCC__=1 -Dctransformers_EXPORTS -I/home/mk/Daten/textgen/text-generation-webui/ctransformers/models -isystem /opt/rocm/include -O3 -DNDEBUG -std=gnu++11 -fPIC -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar -mfma -mavx2 -mf16c -mavx -x hip --offload-arch=gfx900 --offload-arch=gfx906 --offload-arch=gfx908 --offload-arch=gfx90a --offload-arch=gfx1030 -MD -MT CMakeFiles/ctransformers.dir/models/llm.cc.o -MF CMakeFiles/ctransformers.dir/models/llm.cc.o.d -o CMakeFiles/ctransformers.dir/models/llm.cc.o -c /home/mk/Daten/textgen/text-generation-webui/ctransformers/models/llm.cc | |
c++: error: unrecognized command-line option ‘--offload-arch=gfx900’ | |
c++: error: unrecognized command-line option ‘--offload-arch=gfx906’ | |
c++: error: unrecognized command-line option ‘--offload-arch=gfx908’ | |
c++: error: unrecognized command-line option ‘--offload-arch=gfx90a’ | |
c++: error: unrecognized command-line option ‘--offload-arch=gfx1030’ | |
[3/5] Building CXX object CMakeFiles/ctransformers.dir/models/ggml/ggml-cuda.cu.o | |
FAILED: CMakeFiles/ctransformers.dir/models/ggml/ggml-cuda.cu.o | |
/usr/bin/c++ -DCC_TURING=1000000000 -DGGML_CUDA_DMMV_X=32 -DGGML_CUDA_MMQ_Y=64 -DGGML_CUDA_MMV_Y=1 -DGGML_USE_HIPBLAS -DGGML_USE_K_QUANTS -DK_QUANTS_PER_ITERATION=2 -D__HIP_PLATFORM_AMD__=1 -D__HIP_PLATFORM_HCC__=1 -Dctransformers_EXPORTS -I/home/mk/Daten/textgen/text-generation-webui/ctransformers/models -isystem /opt/rocm/include -O3 -DNDEBUG -std=gnu++11 -fPIC -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar -mfma -mavx2 -mf16c -mavx -x hip --offload-arch=gfx900 --offload-arch=gfx906 --offload-arch=gfx908 --offload-arch=gfx90a --offload-arch=gfx1030 -MD -MT CMakeFiles/ctransformers.dir/models/ggml/ggml-cuda.cu.o -MF CMakeFiles/ctransformers.dir/models/ggml/ggml-cuda.cu.o.d -o CMakeFiles/ctransformers.dir/models/ggml/ggml-cuda.cu.o -c /home/mk/Daten/textgen/text-generation-webui/ctransformers/models/ggml/ggml-cuda.cu | |
c++: error: unrecognized command-line option ‘--offload-arch=gfx900’ | |
c++: error: unrecognized command-line option ‘--offload-arch=gfx906’ | |
c++: error: unrecognized command-line option ‘--offload-arch=gfx908’ | |
c++: error: unrecognized command-line option ‘--offload-arch=gfx90a’ | |
c++: error: unrecognized command-line option ‘--offload-arch=gfx1030’ | |
ninja: build stopped: subcommand failed. | |
Traceback (most recent call last): | |
File "/tmp/pip-build-env-kwmzj4ts/overlay/lib/python3.10/site-packages/skbuild/setuptools_wrap.py", line 674, in setup | |
cmkr.make(make_args, install_target=cmake_install_target, env=env) | |
File "/tmp/pip-build-env-kwmzj4ts/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 697, in make | |
self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env) | |
File "/tmp/pip-build-env-kwmzj4ts/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 742, in make_impl | |
raise SKBuildError(msg) | |
An error occurred while building with CMake. | |
Command: | |
/tmp/pip-build-env-kwmzj4ts/overlay/lib/python3.10/site-packages/cmake/data/bin/cmake --build . --target install --config Release -- | |
Install target: | |
install | |
Source directory: | |
/home/mk/Daten/textgen/text-generation-webui/ctransformers | |
Working directory: | |
/home/mk/Daten/textgen/text-generation-webui/ctransformers/_skbuild/linux-x86_64-3.10/cmake-build | |
Please check the install target is valid and see CMake's output for more information. | |
[end of output] | |
note: This error originates from a subprocess, and is likely not a problem with pip. | |
ERROR: Failed building wheel for ctransformers | |
Failed to build ctransformers | |
ERROR: Could not build wheels for ctransformers, which is required to install pyproject.toml-based projects |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment