Skip to content

Commit

Permalink
Fix torch dependency versioning
Browse files Browse the repository at this point in the history
See keras-team/keras#19603 for reason why we needed to pin this
  • Loading branch information
PhotonicGluon committed Jun 29, 2024
1 parent 6513e76 commit 989d25d
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 90 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ Attempting to install the `torch` backend using
poetry install --with torch
```

fails with a message like `Unable to find installation candidates for torch (2.3.1+cpu)`. To remedy, run
fails with a message like `Unable to find installation candidates for torch (2.2.2+cpu)`. To remedy, run

```bash
pip install torch torchaudio torchvision
pip install torch~=2.2.2 torchvision~=0.17.2 torchaudio~=2.2.2
```

<!-- end installation -->
Expand Down
118 changes: 36 additions & 82 deletions poetry.lock

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

12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,17 @@ tensorflow = { version = "~2.16.1", extras = ["and-cuda"] }
optional = true

[tool.poetry.group.torch.dependencies]
torch = { version = "~2.3.1+cpu", source = "pytorch-cpu" }
torchvision = { version = "~0.18.1+cpu", source = "pytorch-cpu" }
torchaudio = { version = "~2.3.1+cpu", source = "pytorch-cpu" }
torch = { version = "~2.2.2+cpu", source = "pytorch-cpu" }
torchvision = { version = "~0.17.2+cpu", source = "pytorch-cpu" }
torchaudio = { version = "~2.2.2+cpu", source = "pytorch-cpu" }

[tool.poetry.group.torch-gpu]
optional = true

[tool.poetry.group.torch-gpu.dependencies]
torch = "~2.3.1+cpu"
torchvision = "~0.18.1+cpu"
torchaudio = "~2.3.1+cpu"
torch = "~2.2.2"
torchvision = "~0.17.2"
torchaudio = "~2.2.2"

[tool.poetry.group.jax]
optional = true
Expand Down

0 comments on commit 989d25d

Please sign in to comment.