Skip to content

Commit

Permalink
chore: use cpu wheel for torchvision
Browse files Browse the repository at this point in the history
  • Loading branch information
bdvllrs committed Oct 23, 2024
1 parent 6068c1f commit 7e4aca8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
poetry source add torch-cpu --priority=explicit --no-interaction https://download.pytorch.org/whl/cpu
torch_version=$(poetry show torch --no-ansi | grep 'version' | awk '{print $3}')
poetry add --lock --no-interaction --source torch-cpu "torch@$torch_version"
torchvision_version=$(poetry show torchvision --no-ansi | grep 'version' | awk '{print $3}')
poetry add --lock --no-interaction --source torch-cpu "torchvision@$torchvision_version"
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v4
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ migrate-ckpt = {git = "https://github.com/bdvllrs/migrate-ckpt.git", rev = "v0.2
cfg-tools = {git = "https://github.com/bdvllrs/cfg-tools.git", rev = "v0.3.0"}
pillow = "^10.3.0"
numpy = "^1.26"
torch = ">=2.0.1,<2.5.0"
torch = ">=2.0.1,<2.6.0"
wandb = "^0.18.3"
lightning = ">=2.1.0"
pydantic = "^2.6.0"
torchvision = ">=0.15.2,<0.20"
torchvision = ">=0.15.2,<0.21"
rich = "^13.4.2"

[tool.poetry.group.dev.dependencies]
Expand Down

0 comments on commit 7e4aca8

Please sign in to comment.