-
Hi there, I'm trying to install different pytorch dependencies depending on my computing environment (i.e. CPU or GPU). Following my answer at #1714 (comment), I'm trying: [project]
name = "my_project"
requires-python = ">=3.12"
[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["linux-64"]
[tool.pixi.dependencies]
python = ">=3.12"
[tool.pixi.feature.cpu]
pypi-options = { extra-index-urls = ["https://download.pytorch.org/whl/cpu"] }
pypi-dependencies = { "torch" = "*", "torchvision" = "*"}
[tool.pixi.feature.gpu]
system-requirements = {cuda = "12.4"}
pypi-options = { extra-index-urls = ["https://download.pytorch.org/whl/cu124"] }
pypi-dependencies = { "torch" = "*", "torchvision" = "*"}
[tool.pixi.environments]
default = {features = [], solve-group = "default"}
cpu = {features = ["cpu"], solve-group = "default"}
gpu = {features = ["gpu"], solve-group = "default"} But when I look at
Any help great appreciated. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
asmith26
Sep 3, 2024
Replies: 1 comment 1 reply
-
Oh hi! I missed this sorry, but the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Many thanks for your help and info @tdejager. Can confirm this works for me:
a…