Closed rradjabi closed 5 months ago
Hi, to install the package from source, you need a compiler and cmake. In your case it seems that you miss the last one. Since you are using conda, you can install it from there
can you provide more info which compiler is needed? im facing the same issue, but i have the cmake installed
PS C:\Users\Local_Admin\llava_gemma_npu> pip install "intel-npu-acceleration-library @ git+https://github.com/intel/intel-npu-acceleration-library.git" Collecting intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git Cloning https://github.com/intel/intel-npu-acceleration-library.git to c:\users\local_admin\appdata\local\temp\pip-install-2cea1z63\intel-npu-acceleration-library_cbff4a782a394d36bb12e1c5b5c3111d Running command git clone --filter=blob:none --quiet https://github.com/intel/intel-npu-acceleration-library.git 'C:\Users\Local_Admin\AppData\Local\Temp\pip-install-2cea1z63\intel-npu-acceleration-library_cbff4a782a394d36bb12e1c5b5c3111d' Resolved https://github.com/intel/intel-npu-acceleration-library.git to commit f04d499432fec85afd65532711224df7be76d6dc Preparing metadata (setup.py) ... done Requirement already satisfied: numpy in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (1.23.4) Requirement already satisfied: torch in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (2.3.0) Collecting transformers>=4.43.0 (from intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) Using cached transformers-4.43.3-py3-none-any.whl.metadata (43 kB) Requirement already satisfied: neural-compressor in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (2.5.1) Requirement already satisfied: filelock in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from transformers>=4.43.0->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (3.13.4) Collecting huggingface-hub<1.0,>=0.23.2 (from transformers>=4.43.0->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) Using cached huggingface_hub-0.24.5-py3-none-any.whl.metadata (13 kB) Requirement already satisfied: packaging>=20.0 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from transformers>=4.43.0->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (23.2) Requirement already satisfied: pyyaml>=5.1 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from transformers>=4.43.0->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (6.0.1) Requirement already satisfied: regex!=2019.12.17 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from transformers>=4.43.0->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (2024.4.16) Requirement already satisfied: requests in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from transformers>=4.43.0->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (2.31.0) Requirement already satisfied: safetensors>=0.4.1 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from transformers>=4.43.0->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (0.4.3) Requirement already satisfied: tokenizers<0.20,>=0.19 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from transformers>=4.43.0->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (0.19.1) Requirement already satisfied: tqdm>=4.27 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from transformers>=4.43.0->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (4.66.2) Requirement already satisfied: deprecated>=1.2.13 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (1.2.14) Requirement already satisfied: opencv-python-headless in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (4.10.0.82) Requirement already satisfied: pandas in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (1.3.5) Requirement already satisfied: Pillow in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (10.3.0) Requirement already satisfied: prettytable in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (3.10.0) Requirement already satisfied: psutil in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (5.9.8) Requirement already satisfied: py-cpuinfo in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (9.0.0) Requirement already satisfied: schema in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (0.7.7) Requirement already satisfied: scikit-learn in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (1.4.2) Requirement already satisfied: pycocotools in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (2.0.7) Requirement already satisfied: typing-extensions>=4.8.0 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from torch->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (4.11.0) Requirement already satisfied: sympy in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from torch->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (1.12) Requirement already satisfied: networkx in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from torch->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (2.8.8) Requirement already satisfied: jinja2 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from torch->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (3.1.3) Requirement already satisfied: fsspec in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from torch->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (2024.3.1) Requirement already satisfied: mkl<=2021.4.0,>=2021.1.1 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from torch->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (2021.4.0) Requirement already satisfied: wrapt<2,>=1.10 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from deprecated>=1.2.13->neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (1.16.0) Requirement already satisfied: intel-openmp==2021. in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from mkl<=2021.4.0,>=2021.1.1->torch->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (2021.4.0) Requirement already satisfied: tbb==2021. in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from mkl<=2021.4.0,>=2021.1.1->torch->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (2021.12.0) Requirement already satisfied: colorama in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from tqdm>=4.27->transformers>=4.43.0->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (0.4.6) Requirement already satisfied: MarkupSafe>=2.0 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from jinja2->torch->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (2.1.5) Requirement already satisfied: python-dateutil>=2.7.3 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from pandas->neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (2.9.0.post0) Requirement already satisfied: pytz>=2017.3 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from pandas->neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (2024.1) Requirement already satisfied: wcwidth in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from prettytable->neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (0.2.13) Requirement already satisfied: matplotlib>=2.1.0 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from pycocotools->neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (3.8.4) Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from requests->transformers>=4.43.0->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (3.3.2) Requirement already satisfied: idna<4,>=2.5 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from requests->transformers>=4.43.0->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (3.7) Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from requests->transformers>=4.43.0->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (2.2.1) Requirement already satisfied: certifi>=2017.4.17 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from requests->transformers>=4.43.0->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (2024.2.2) Requirement already satisfied: scipy>=1.6.0 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from scikit-learn->neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (1.13.0) Requirement already satisfied: joblib>=1.2.0 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from scikit-learn->neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (1.4.0) Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from scikit-learn->neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (3.4.0) Requirement already satisfied: mpmath>=0.19 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from sympy->torch->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (1.3.0) Requirement already satisfied: contourpy>=1.0.1 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from matplotlib>=2.1.0->pycocotools->neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (1.2.1) Requirement already satisfied: cycler>=0.10 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from matplotlib>=2.1.0->pycocotools->neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (0.12.1) Requirement already satisfied: fonttools>=4.22.0 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from matplotlib>=2.1.0->pycocotools->neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (4.51.0) Requirement already satisfied: kiwisolver>=1.3.1 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from matplotlib>=2.1.0->pycocotools->neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (1.4.5) Requirement already satisfied: pyparsing>=2.3.1 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from matplotlib>=2.1.0->pycocotools->neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (3.1.2) Requirement already satisfied: six>=1.5 in c:\users\local_admin\appdata\local\programs\python\python310\lib\site-packages (from python-dateutil>=2.7.3->pandas->neural-compressor->intel-npu-acceleration-library@ git+https://github.com/intel/intel-npu-acceleration-library.git) (1.16.0) Using cached transformers-4.43.3-py3-none-any.whl (9.4 MB) Using cached huggingface_hub-0.24.5-py3-none-any.whl (417 kB) Building wheels for collected packages: intel-npu-acceleration-library Building wheel for intel-npu-acceleration-library (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [61 lines of output] C:\Users\Local_Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py:318: InformationOnly: Normalizing 'v1.3.0' to '1.3.0' self.metadata.version = self._normalize_version(self.metadata.version) running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-310 creating build\lib.win-amd64-cpython-310\intel_npu_acceleration_library copying intel_npu_acceleration_library\compiler.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library copying intel_npu_acceleration_library\device.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library copying intel_npu_acceleration_library\dtypes.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library copying intel_npu_acceleration_library\modelling.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library copying intel_npu_acceleration_library\optimizations.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library copying intel_npu_acceleration_library\quantization.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library copying intel_npu_acceleration_library_version.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library copying intel_npu_acceleration_library__init.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library creating build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\backend copying intel_npu_acceleration_library\backend\base.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\backend copying intel_npu_acceleration_library\backend\bindings.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\backend copying intel_npu_acceleration_library\backend\compression.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\backend copying intel_npu_acceleration_library\backend\convolution.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\backend copying intel_npu_acceleration_library\backend\factory.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\backend copying intel_npu_acceleration_library\backend\linear.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\backend copying intel_npu_acceleration_library\backend\matmul.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\backend copying intel_npu_acceleration_library\backend\mlp.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\backend copying intel_npu_acceleration_library\backend\ops.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\backend copying intel_npu_acceleration_library\backend\qlinear.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\backend copying intel_npu_acceleration_library\backend\qmatmul.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\backend copying intel_npu_acceleration_library\backend\runtime.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\backend copying intel_npu_acceleration_library\backend\sdpa.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\backend copying intel_npu_acceleration_library\backend\tensor.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\backend copying intel_npu_acceleration_library\backend\utils.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\backend copying intel_npu_acceleration_library\backend__init__.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\backend creating build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\nn copying intel_npu_acceleration_library\nn\autograd.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\nn copying intel_npu_acceleration_library\nn\conv.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\nn copying intel_npu_acceleration_library\nn\functional.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\nn copying intel_npu_acceleration_library\nn\linear.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\nn copying intel_npu_acceleration_library\nn\llm.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\nn copying intel_npu_acceleration_library\nn\module.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\nn copying intel_npu_acceleration_library\nn\init.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\nn creating build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\functional copying intel_npu_acceleration_library\functional\scaled_dot_product_attention.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\functional copying intel_npu_acceleration_library\functional\init__.py -> build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\functional running build_ext cmake C:\Users\Local_Admin\AppData\Local\Temp\pip-install-2cea1z63\intel-npu-acceleration-library_cbff4a782a394d36bb12e1c5b5c3111d -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\Local_Admin\AppData\Local\Temp\pip-install-2cea1z63\intel-npu-acceleration-library_cbff4a782a394d36bb12e1c5b5c3111d\build\lib.win-amd64-cpython-310\intel_npu_acceleration_library\lib -DCMAKE_BUILD_TYPE=Release -DSETUPTOOL_BUILD=True -- Building for: NMake Makefiles CMake Error at CMakeLists.txt:9 (project): Running
'nmake' '-?'
failed with:
no such file or directory
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
error: command 'C:\\Program Files\\CMake\\bin\\cmake.exe' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for intel-npu-acceleration-library Running setup.py clean for intel-npu-acceleration-library Failed to build intel-npu-acceleration-library ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (intel-npu-acceleration-library)
marchyuker able to resolve this?
no, can you guys update the package in PIP or add at least -nightly version for easier deployment?
I am having issues with building from source also. I am on Ubutnu 24.04 thus causing me to build from source. I have all the needed compiler. I got the following errors. Something related with permission? thanks
-- Configuring incomplete, errors occurred!
error: command '/usr/bin/cmake' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
i solve this problem by pip install wheel
Instructions state to you can install from source
pip install "intel-npu-acceleration-library @ git+https://github.com/intel/intel-npu-acceleration-library.git"
but this failsTo Reproduce
conda create -n test-env
conda activate test-env
conda install pip
pip install "intel-npu-acceleration-library @ git+https://github.com/intel/intel-npu-acceleration-library.git"
Expected behavior Expecting it to build and install the package from source.
Screenshots
Desktop (please complete the following information):
Build logs