Skip to content

Missing pip install for torch==2.4.0+cpu #133128

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

Closed
mvpatel2000 opened this issue Aug 9, 2024 · 10 comments
Closed

Missing pip install for torch==2.4.0+cpu #133128

mvpatel2000 opened this issue Aug 9, 2024 · 10 comments
Labels
module: binaries Anything related to official binaries that we release to users triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@mvpatel2000
Copy link
Contributor

mvpatel2000 commented Aug 9, 2024

🐛 Describe the bug

Previously, pip install --no-cache-dir --find-links https://download.pytorch.org/whl/torch_stable.html torch==2.3.1+cpu worked to install CPU version explicitly.

However, pip install --no-cache-dir --find-links https://download.pytorch.org/whl/torch_stable.html torch==2.4.0+cpu does not work. Are the whl files for 2.4 missing?

Versions

N/A

cc @seemethere @malfet @osalpekar @atalman

@ZailiWang
Copy link
Contributor

ZailiWang commented Aug 13, 2024

Hi, this link is deprecated since 2.4. Please use the official installation guide instead.

ChengyuZhu6 pushed a commit to ChengyuZhu6/intel-extension-for-pytorch that referenced this issue Aug 16, 2024
1. Bump pytorch and ipex to 2.4.0
2. update the link of `TORCH_CPU_URL`. `https://download.pytorch.org/whl/cpu/torch_stable.html` is deprecated since torch 2.4.
   See pytorch/pytorch#133128.

Signed-off-by: ChengyuZhu6 <[email protected]>
@nisarpro
Copy link

Hi, this link is deprecated since 2.4. Please use the official installation guide instead.

Still it is not available for macosx x86 platform

@atalman
Copy link
Contributor

atalman commented Aug 19, 2024

Hi @mvpatel2000 and @nisarpro Please use official install commands from https://pytorch.org/get-started/locally/
For linux its:

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu

MacOS x86 binaries where deprecated since release 2.3.0.

@mvpatel2000
Copy link
Contributor Author

Closing as resolved.

We previously used the command in original post for building dockerfiles for specific versions. I have now replaced it with:

        pip${PYTHON_VERSION} install --no-cache-dir --find-links https://download.pytorch.org/whl/torch/ \
            torch==${PYTORCH_VERSION}+${CUDA_VERSION_TAG}

@malfet malfet added module: binaries Anything related to official binaries that we release to users triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module and removed triage review labels Aug 19, 2024
@nisarpro
Copy link

nisarpro commented Aug 20, 2024 via email

@nisarpro
Copy link

This still installs torch 2.2.2 but not 2.4.0

@nisarpro
Copy link

python --version
Python 3.12.5

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
Collecting torch
Downloading https://download.pytorch.org/whl/cpu/torch-2.2.2-cp312-none-macosx_10_9_x86_64.whl (151.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 151.0/151.0 MB 11.3 MB/s eta 0:00:00
Successfully installed torch-2.2.2 torchaudio-2.2.2 torchvision-0.17.2

but not 2.4.0

@lvjing2
Copy link

lvjing2 commented Oct 24, 2024

me too

@leisongao2005
Copy link

I am also experiencing this issue on M2 Mac.

Tried using pip and conda, both can only install up to version 2.3.0

@lvjing2
Copy link

lvjing2 commented Oct 24, 2024

image
this maby be the reason, those list in https://download.pytorch.org/whl/torch/ do not have the whl for you machine.

for example, there is no whl for macos + intel version , and this is the official announcement issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: binaries Anything related to official binaries that we release to users triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

No branches or pull requests

8 participants