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

Add warning when using the torch GPU package instead of the CPU variant #1748

Open
edmorley opened this issue Feb 17, 2025 · 0 comments
Open

Comments

@edmorley
Copy link
Member

edmorley commented Feb 17, 2025

Similar to #1343, but for PyTorch.

We should add a warning when we see that an app has installed the torch package from PyPI, which includes all of the GPU packages (that won't actually be used on Heroku) and results in a multi-gigabyte slug size.

PyTorch does have a CPU-only package variant, but it needs the correct package index to be specified. See:
https://pytorch.org/get-started/locally/

eg something like:

torch==<version>+cpu --index-url https://download.pytorch.org/whl/cpu

As seen in:

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

No branches or pull requests

1 participant