-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Torch installation instructions for different platforms #7859
Comments
closed by #7769 |
@charliermarsh even though #7769 is merged, i was wondering how we can achieve the task mentioned in the description of this issue. you may link index to source and source to dependency, but python markers do not support environment variables as markers and if i create an extra "cuda" i don't know how to specify source or index in the optional-dependencies section. basically if i install my project with --extras cpu it should only pull torch from the CPU index and if i provide --extras cuda then it should pull torch from a cuda index. this also brings up the question what is exactly the point of having
|
@chitralverma -- The specific case around using extras to manage this is not supported yet, because extras aren't mutually exclusive (you could enable both |
I'm gonna combine this issue with #5945. |
Hi, coming from poetry, I am trying out uv due to poetry's super slow resolutions and bulk.
Our workflow is as follows,
sentence-transformers
which pulls in torch as well.In short, we'd like to use uv to create a project in which the project source code remains the same, it is developed on Mac and only pulls in CPU dependencies by default. But for the target deployment environment where GPUs are available, we should be able to deploy the same project with an extra flag that pulls in the torch's GPU dependencies as well.
In poetry, we were following something like this, any suggestions on how to do this uv/ rye as we are very new with this?
Also referencing, pytorch/pytorch#136275
Dev Env Details:
uv == latest, 0.4.18
python >= 3.8
platform: mac, sequoia, cpu-only env
Prod Env Details:
uv == latest, 0.4.18
python >= 3.8
platform: linux, gpu env
cc @charliermarsh @mitsuhiko
The text was updated successfully, but these errors were encountered: