Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install instructions result is pip version conflicts. #2125

Open
4 tasks
hpcpony opened this issue Dec 12, 2024 · 0 comments
Open
4 tasks

install instructions result is pip version conflicts. #2125

hpcpony opened this issue Dec 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@hpcpony
Copy link

hpcpony commented Dec 12, 2024

System Info

optimum-1.23.3, linux

Who can help?

No response

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction (minimal, reproducible, runnable)

Following the installation instructions at: https://huggingface.co/docs/optimum/en/intel/installation#installation results in failure due to incompatible versions of components

$ pip install --upgrade --upgrade-strategy eager "optimum[neural-compressor]"

  .
  .
  .

Successfully installed MarkupSafe-3.0.2 Pillow-11.0.0 accelerate-1.2.0 aiohappyeyeballs-2.4.4 aiohttp-3.11.10 aiosignal-1.3.1 annotated-types-0.7.0 attrs-24.2.0 charset-normalizer-3.4.0 coloredlogs-15.0.1 contourpy-1.3.1 cycler-0.12.1 datasets-3.2.0 deprecated-1.2.15 dill-0.3.8 filelock-3.16.1 fonttools-4.55.3 frozenlist-1.5.0 fsspec-2024.9.0 huggingface-hub-0.26.5 humanfriendly-10.0 idna-3.10 jinja2-3.1.4 joblib-1.4.2 kiwisolver-1.4.7 matplotlib-3.9.3 mpmath-1.3.0 multidict-6.1.0 multiprocess-0.70.16 networkx-3.4.2 neural-compressor-3.1.1 numpy-1.26.4 nvidia-cublas-cu12-12.4.5.8 nvidia-cuda-cupti-cu12-12.4.127 nvidia-cuda-nvrtc-cu12-12.4.127 nvidia-cuda-runtime-cu12-12.4.127 nvidia-cudnn-cu12-9.1.0.70 nvidia-cufft-cu12-11.2.1.3 nvidia-curand-cu12-10.3.5.147 nvidia-cusolver-cu12-11.6.1.9 nvidia-cusparse-cu12-12.3.1.170 nvidia-nccl-cu12-2.21.5 nvidia-nvjitlink-cu12-12.4.127 nvidia-nvtx-cu12-12.4.127 onnx-1.17.0 opencv-python-headless-4.10.0.84 optimum-1.23.3 optimum-intel-1.21.0 packaging-24.2 pandas-2.2.3 prettytable-3.12.0 propcache-0.2.1 protobuf-5.29.1 psutil-6.1.0 py-cpuinfo-9.0.0 pyarrow-18.1.0 pycocotools-2.0.8 pydantic-2.10.3 pydantic-core-2.27.1 pyparsing-3.2.0 python-dateutil-2.9.0.post0 pytz-2024.2 pyyaml-6.0.2 regex-2024.11.6 safetensors-0.4.5 schema-0.7.7 scikit-learn-1.6.0 scipy-1.14.1 sentencepiece-0.2.0 setuptools-75.6.0 six-1.17.0 sympy-1.13.1 threadpoolctl-3.5.0 tokenizers-0.20.3 torch-2.5.1 tqdm-4.67.1 transformers-4.45.2 triton-3.1.0 typing-extensions-4.12.2 tzdata-2024.2 wcwidth-0.2.13 wrapt-1.17.0 xxhash-3.5.0 yarl-1.18.3

$ pip install --upgrade --upgrade-strategy eager "optimum[openvino]"

  .
  .
  .
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.

neural-compressor 3.1.1 requires numpy<2.0, but you have numpy 2.1.3 which is incompatible.

Successfully installed about-time-4.2.1 alive-progress-3.2.0 autograd-1.7.0 cma-3.2.2 grapheme-0.6.0 jsonschema-4.23.0 jsonschema-specifications-2024.10.1 jstyleson-0.0.2 markdown-it-py-3.0.0 mdurl-0.1.2 natsort-8.4.0 networkx-3.3 ninja-1.11.1.2 nncf-2.14.0 numpy-2.1.3 openvino-2024.5.0 openvino-telemetry-2024.5.0 openvino-tokenizers-2024.5.0.0 pydot-2.0.0 pygments-2.18.0 pymoo-0.6.1.3 referencing-0.35.1 rich-13.9.4 rpds-py-0.22.3 tabulate-0.9.0 transformers-4.46.3

$pip install --upgrade --upgrade-strategy eager "optimum[ipex]"

  .
  .
  .
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.

nncf 2.14.0 requires networkx<=3.3,>=2.6, but you have networkx 3.4.2 which is incompatible.
nncf 2.14.0 requires numpy<2.2.0,>=1.19.1, but you have numpy 2.2.0 which is incompatible.
openvino 2024.5.0 requires numpy<2.2.0,>=1.16.6, but you have numpy 2.2.0 which is incompatible.
neural-compressor 3.1.1 requires numpy<2.0, but you have numpy 2.2.0 which is incompatible.

Successfully installed intel-extension-for-pytorch-2.5.0 networkx-3.4.2 numpy-2.2.0

Expected behavior

Following installation instructions results in a valid installation.

@hpcpony hpcpony added the bug Something isn't working label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant