Skip to content

Commit

Permalink
fix: avoid downloading CUDA junk
Browse files Browse the repository at this point in the history
  • Loading branch information
dhdaines committed Nov 17, 2024
1 parent 4b2b10b commit 6cf7ca5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@ addopts = "--cov=alexi --cov-report html"
[tool.hatch.envs.default]
features = [ "dev", "api", "yolo" ]

[tool.hatch.envs.default.env-vars]
# Avoid downloading gigabytes of CUDA junk
PIP_EXTRA_INDEX_URL = "https://download.pytorch.org/whl/cpu"
UV_EXTRA_INDEX_URL = "https://download.pytorch.org/whl/cpu"

[tool.hatch.envs.gpu.env-vars]
# Disable PyTorch CPU respository
PIP_EXTRA_INDEX_URL = ""
UV_EXTRA_INDEX_URL = ""

[tool.hatch.envs.default.scripts]
test = [
"pytest", "coverage html"
Expand Down

0 comments on commit 6cf7ca5

Please sign in to comment.