Open drisspg opened 2 weeks ago
cc @msaroufim @atalman
FWIW when I tried the below it installed rocm binaries on my cuda machine
pip install --pre torch--index-url https://download.pytorch.org/whl/nightly/
The default behavior is unpredictable so adding the architecture at the end is usually the right thing to do
Although packaging the CUDA runtime libraries does not feel right so that we'll fix
And we don't really need expecttest or hypothesis as dependencies so I just removed those here https://github.com/pytorch/ao/pull/369
hi @drisspg is this colab only issue ? I am running on linux and everything installs correctly:
pip install --pre torchao-nightly --index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall
Looking in indexes: https://download.pytorch.org/whl/nightly/cpu
Collecting torchao-nightly
Using cached https://download.pytorch.org/whl/nightly/cpu/torchao_nightly-2024.6.21%2Bcpu-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (273 kB)
Collecting torch==2.5.0.dev20240620 (from torchao-nightly)
Using cached https://download.pytorch.org/whl/nightly/cpu/torch-2.5.0.dev20240620%2Bcpu-cp311-cp311-linux_x86_64.whl (195.2 MB)
Collecting filelock (from torch==2.5.0.dev20240620->torchao-nightly)
Using cached https://download.pytorch.org/whl/nightly/filelock-3.13.1-py3-none-any.whl (11 kB)
Collecting typing-extensions>=4.8.0 (from torch==2.5.0.dev20240620->torchao-nightly)
Using cached https://download.pytorch.org/whl/nightly/typing_extensions-4.8.0-py3-none-any.whl (31 kB)
Collecting sympy (from torch==2.5.0.dev20240620->torchao-nightly)
Using cached https://download.pytorch.org/whl/nightly/sympy-1.12-py3-none-any.whl (5.7 MB)
Collecting networkx (from torch==2.5.0.dev20240620->torchao-nightly)
Using cached https://download.pytorch.org/whl/nightly/networkx-3.2.1-py3-none-any.whl (1.6 MB)
Collecting jinja2 (from torch==2.5.0.dev20240620->torchao-nightly)
Using cached https://download.pytorch.org/whl/nightly/Jinja2-3.1.3-py3-none-any.whl (133 kB)
Collecting fsspec (from torch==2.5.0.dev20240620->torchao-nightly)
Using cached https://download.pytorch.org/whl/nightly/fsspec-2024.2.0-py3-none-any.whl (170 kB)
Collecting MarkupSafe>=2.0 (from jinja2->torch==2.5.0.dev20240620->torchao-nightly)
Using cached https://download.pytorch.org/whl/nightly/MarkupSafe-2.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (28 kB)
Collecting mpmath>=0.19 (from sympy->torch==2.5.0.dev20240620->torchao-nightly)
Using cached https://download.pytorch.org/whl/nightly/mpmath-1.2.1-py3-none-any.whl (532 kB)
Installing collected packages: mpmath, typing-extensions, sympy, networkx, MarkupSafe, fsspec, filelock, jinja2, torch, torchao-nightly
Attempting uninstall: mpmath
Found existing installation: mpmath 1.3.0
Uninstalling mpmath-1.3.0:
Successfully uninstalled mpmath-1.3.0
Attempting uninstall: typing-extensions
Found existing installation: typing_extensions 4.11.0
Uninstalling typing_extensions-4.11.0:
Successfully uninstalled typing_extensions-4.11.0
Attempting uninstall: sympy
Found existing installation: sympy 1.12
Uninstalling sympy-1.12:
Successfully uninstalled sympy-1.12
Attempting uninstall: networkx
Found existing installation: networkx 3.2.1
Uninstalling networkx-3.2.1:
Successfully uninstalled networkx-3.2.1
Attempting uninstall: MarkupSafe
Found existing installation: MarkupSafe 2.1.3
Uninstalling MarkupSafe-2.1.3:
Successfully uninstalled MarkupSafe-2.1.3
Attempting uninstall: fsspec
Found existing installation: fsspec 2024.2.0
Uninstalling fsspec-2024.2.0:
Successfully uninstalled fsspec-2024.2.0
Attempting uninstall: filelock
Found existing installation: filelock 3.13.1
Uninstalling filelock-3.13.1:
Successfully uninstalled filelock-3.13.1
Attempting uninstall: jinja2
Found existing installation: Jinja2 3.1.4
Uninstalling Jinja2-3.1.4:
Successfully uninstalled Jinja2-3.1.4
Attempting uninstall: torch
Found existing installation: torch 2.5.0.dev20240620+cpu
Uninstalling torch-2.5.0.dev20240620+cpu:
Successfully uninstalled torch-2.5.0.dev20240620+cpu
Attempting uninstall: torchao-nightly
Found existing installation: torchao-nightly 2024.6.21+cpu
Uninstalling torchao-nightly-2024.6.21+cpu:
Successfully uninstalled torchao-nightly-2024.6.21+cpu
Successfully installed MarkupSafe-2.1.5 filelock-3.13.1 fsspec-2024.2.0 jinja2-3.1.3 mpmath-1.2.1 networkx-3.2.1 sympy-1.12 torch-2.5.0.dev20240620+cpu torchao-nightly-2024.6.21+cpu typing-extensions-4.8.0
Yeah I have only seen this on colab
Summary
Error 1
Running in colab if I want to only install the cpu version to my machine there are some issues:
%pip install --pre torchao-nightly --index-url https://download.pytorch.org/whl/nightly/ # CPU only builds
This in fact does not work and errors with:Error 2
Lets say I preinstall the missing packags
I then get:
Which looks lik eits trying to get nvidia realted things even though I am trying to only get the cpu build
If I run:
things work but installs nvidia runtime libraries