Skip to content

Install pytorch from pypi using local CUDA build #150742

@ikrommyd

Description

@ikrommyd

🚀 The feature, motivation and pitch

It's great that nvidia provides wheels for the CUDA related packages and we don't need conda/mamba to install pytorch anymore, but those packages take up space if you install pytorch in multiple environments.
I would be nice if you could install a pytorch version from pypi that could grab and use your local cuda build.

For example, cupy provides pip install cupy-cuda12x. jax provides pip install "jax[cuda12_local]" and as far as I'm aware, pip install tensorflow also appears to use the GPU even if I don't specify pip install "tensorflow[and-cuda]" which could install the nvidia/cuda wheels as well.

Please close if this is just not possible in pytorch's case or a duplicate (I didn't see it if it's there).

Alternatives

Just have the available space and install the nvidia wheels on every environment separately.

Additional context

No response

cc @seemethere @malfet @osalpekar @atalman @pytorch/pytorch-dev-infra

Metadata

Metadata

Assignees

Labels

enhancementNot as big of a feature, but technically not a bug. Should be easy to fixhas workaroundmodule: binariesAnything related to official binaries that we release to usersmodule: ciRelated to continuous integrationneeds designWe want to add this feature but we need to figure out how firstoncall: relengIn support of CI and Release EngineeringtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

No type

Projects

Status

Cold Storage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy