Skip to content

Commit

Permalink
chore: Pytorch gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
saattrupdan committed Oct 31, 2024
1 parent c5b797a commit 8eceb45
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,19 @@ dev-dependencies = [
]

[tool.uv.sources]
torch = { index = "pytorch-cpu", marker = "extra == 'onprem_cpu'" }
torch = [
{ index = "pytorch-cpu", marker = "extra == 'onprem_cpu'" },
{ index = "pytorch-cu126", marker = "extra != 'onprem_cpu'" },
]

[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true

[[tool.uv.index]]
name = "pypi"
url = "https://pypi.org/simple"
name = "pytorch-cu126"
url = "https://download.pytorch.org/whl/cu126"

[project.scripts]
ragger-demo = "ragger.cli:run_demo"
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8eceb45

Please sign in to comment.