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

pytorch-quantization2.2.1 version update problem #3651

Closed
xpww opened this issue Feb 5, 2024 · 8 comments
Closed

pytorch-quantization2.2.1 version update problem #3651

xpww opened this issue Feb 5, 2024 · 8 comments
Assignees
Labels
triaged Issue has been triaged by maintainers

Comments

@xpww
Copy link

xpww commented Feb 5, 2024

Description

Currently at https://pypi.org/project/pytorch-quantization/, the latest version of pytorch-quantization is 2.2.1, so use the command pip install --no-cache-dir --extra-index-url in the warehouse https://pypi.nvidia.com pytorch-quantization to install it, pointing to version 2.2.1, and an error will occur during the installation.

However, when building from source code in the github repository, the installed version is actually version 2.1.3, so use pip install --no-cache-dir --extra-index-url https://pypi.nvidia.com pytorch-quantization== 2.1.3 or source code construction: python setup.py install can be successful.

Is it because pytorch-quantization has actually been updated to version 2.2.1, but the corresponding https://github.com/NVIDIA/TensorRT/tree/master/tools/pytorch-quantization warehouse still contains the old files of version 2.1.3? What caused the error when installing the latest version of pytorch-quantization?::

pip install pytorch-quantization==2.2.1

Looking in indexes: https://pypi.org/simple, https://pypi.nvidia.com
Collecting pytorch-quantization==2.2.1
Using cached pytorch-quantization-2.2.1.tar.gz (6.8 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-dsb92h3c/pytorch-quantization_4534ffe9c59042b88b92b666b3c09114/setup.py", line 137, in
raise RuntimeError(open("ERROR.txt", "r").read())
RuntimeError:
###########################################################################################
The package you are trying to install is only a placeholder project on PyPI.org repository.
This package is hosted on NVIDIA Python Package Index.

  This package can be installed as:
  ```
  $ pip install --no-cache-dir --extra-index-url https://pypi.nvidia.com pytorch-quantization
  ```
  ###########################################################################################
  
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Environment

ubuntu2004

NVIDIA-SMI 545.23.08 Driver Version: 545.23.08 CUDA Version: 12.3

Relevant Files

pytorch-quantization-2.2.1.tar.gz from https://pypi.org/project/pytorch-quantization/

Steps To Reproduce

Commands or scripts:pip install pytorch-quantization==2.2.1

Have you tried the latest release?:yes

@zerollzeng
Copy link
Collaborator

Could you please try pip install --no-cache-dir --extra-index-url https://pypi.nvidia.com pytorch-quantization?

@zerollzeng zerollzeng self-assigned this Feb 7, 2024
@zerollzeng zerollzeng added the triaged Issue has been triaged by maintainers label Feb 7, 2024
@xpww
Copy link
Author

xpww commented Feb 7, 2024

Could you please try pip install --no-cache-dir --extra-index-url https://pypi.nvidia.com pytorch-quantization?

This command runs correctly and installs version 2.1.3 of pytorch-quantization. I now suspect that version 2.2.1 of pytorch-quantization in https://pypi.org/project/pytorch-quantization does not actually exist

@zerollzeng
Copy link
Collaborator

pip install --no-cache-dir --extra-index-url https://pypi.nvidia.com pytorch-quantization==2.2.1 works for me

@xpww
Copy link
Author

xpww commented Feb 13, 2024

pip install --no-cache-dir --extra-index-url https://pypi.nvidia.com pytorch-quantization==2.2.1 works for me

I successfully changed the virtual environment again. It seems that this is related to environment conflict. Thanks!

@zerollzeng
Copy link
Collaborator

NP, close this.

@Raj-vivid
Copy link

pip install --no-cache-dir --extra-index-url https://pypi.nvidia.com pytorch-quantization==2.2.1

Facing the same issue. I tried this but it still does not work.

@xpww
Copy link
Author

xpww commented Sep 22, 2024

pip install --no-cache-dir --extra-index-url https://pypi.nvidia.com pytorch-quantization==2.2.1

Facing the same issue. I tried this but it still does not work.

It seems that pip can only install 2.1.3 correctly. If you want to use the latest (2.2.1), git clone the latest tensorrt repository and compile and install it locally.

@Raj-vivid
Copy link

pip install --no-cache-dir --extra-index-url https://pypi.nvidia.com pytorch-quantization==2.2.1

Facing the same issue. I tried this but it still does not work.

It seems that pip can only install 2.1.3 correctly. If you want to use the latest (2.2.1), git clone the latest tensorrt repository and compile and install it locally.

Yup can attest, got it (2.2.1) to work after compiling and installing locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triaged Issue has been triaged by maintainers
Projects
None yet
Development

No branches or pull requests

3 participants