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

tt-metalium wheel file has dependency on pytorch cpu #17531

Open
blozano-tt opened this issue Feb 4, 2025 · 1 comment
Open

tt-metalium wheel file has dependency on pytorch cpu #17531

blozano-tt opened this issue Feb 4, 2025 · 1 comment
Assignees

Comments

@blozano-tt
Copy link
Contributor

ERROR: Could not find a version that satisfies the requirement torch==2.2.1+cpu (from ttnn==0.56.0rc7+any) (from versions: 1.4.0, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2, 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.4.0, 2.4.1)
#9 12.72 ERROR: No matching distribution found for torch==2.2.1+cpu (from ttnn==0.56.0rc7+any)
#9 ERROR: process "/bin/sh -c pip3 install $WHEEL_FILENAME" did not complete successfully: exit code: 1

Here are the problems with this:

  1. ttnn is supposed to be usable without pytorch
  2. We are forcing the CPU variant of pytorch, which would force customers who already have the GPU variant to downgrade
  3. The wheel file cannot be pip installed in a fresh ubuntu machine, because it has a dependency on a non pypi pip repository ... (pytorch's)

We need to fix this, and make it so that ttnn wheel file does not depend on pytorch.

This is blocking the creation of light weight release docker images.

Related to #17059

@ayerofieiev-tt can someone from ttnn team take ownership of this?

@blozano-tt
Copy link
Contributor Author

Looks like this has been the case for 2 years:

tt-metal/pyproject.toml

Lines 26 to 27 in 07fd4df

# extra index required https://download.pytorch.org/whl/cpu
"torch==2.2.1+cpu",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants