Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Update torch requirement from <1.12.0,>=1.7.0 to >=1.7.0,<1.13.0 (#342)
Browse files Browse the repository at this point in the history
* Update torch requirement from <1.12.0,>=1.7.0 to >=1.7.0,<1.13.0

Updates the requirements on [torch](https://github.com/pytorch/pytorch) to permit the latest version.
- [Release notes](https://github.com/pytorch/pytorch/releases)
- [Changelog](https://github.com/pytorch/pytorch/blob/master/RELEASE.md)
- [Commits](pytorch/pytorch@v1.7.0...v1.12.0)

---
updated-dependencies:
- dependency-name: torch
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* update workflow config

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: epwalsh <[email protected]>
Co-authored-by: Dirk Groeneveld <[email protected]>
  • Loading branch information
3 people committed Sep 29, 2022
1 parent 3e3b3ec commit e5d1f59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ on:

env:
# NOTE: Need to update `TORCH_VERSION` and `TORCH_VISION_VERSION` for new torch releases.
TORCH_VERSION: 1.11.0
TORCH_VISION_VERSION: 0.12.0
TORCH_VERSION: 1.12.0
TORCH_VISION_VERSION: 0.13.0
# Change this to invalidate the current cache.
CACHE_PREFIX: v1
# Disable tokenizers parallelism because this doesn't help, and can cause issues in distributed tests.
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:
if: steps.virtualenv-cache.outputs.cache-hit != 'true'
run: |
test -d .venv || virtualenv -p $(which python) --copies --reset-app-data .venv
pip install torch==${{ env.TORCH_VERSION }}+${{ matrix.task.torch_platform }} torchvision==${{ env.TORCH_VISION_VERSION }}+${{matrix.task.torch_platform}} -f https://download.pytorch.org/whl/torch_stable.html
pip install torch==${{ env.TORCH_VERSION }} torchvision==${{ env.TORCH_VISION_VERSION }} --extra-index-url https://download.pytorch.org/whl/${{ matrix.task.torch_platform }}
- name: Install requirements
run: |
Expand Down Expand Up @@ -289,7 +289,7 @@ jobs:
if: steps.virtualenv-cache.outputs.cache-hit != 'true'
run: |
test -d .venv || virtualenv -p $(which python) --copies --reset-app-data .venv
pip install torch==${{ env.TORCH_VERSION }}+${{ env.TORCH_PLATFORM }} torchvision==${{ env.TORCH_VISION_VERSION }}+${{ env.TORCH_PLATFORM }} -f https://download.pytorch.org/whl/torch_stable.html
pip install torch==${{ env.TORCH_VERSION }} torchvision==${{ env.TORCH_VISION_VERSION }} -f https://download.pytorch.org/whl/${{ env.TORCH_PLATFORM }}
- name: Install requirements
run: |
Expand Down Expand Up @@ -430,7 +430,7 @@ jobs:
if: steps.virtualenv-cache.outputs.cache-hit != 'true'
run: |
test -d .venv || virtualenv -p $(which python) --copies --reset-app-data .venv
pip install torch==${{ env.TORCH_VERSION }}+${{ env.TORCH_PLATFORM }} torchvision==${{ env.TORCH_VISION_VERSION }}+${{ env.TORCH_PLATFORM }} -f https://download.pytorch.org/whl/torch_stable.html
pip install torch==${{ env.TORCH_VERSION }} torchvision==${{ env.TORCH_VISION_VERSION }} -f https://download.pytorch.org/whl/${{ env.TORCH_PLATFORM }}
- name: Install requirements
run: |
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
allennlp[all] @ git+https://github.com/allenai/allennlp.git@main

torch>=1.7.0,<1.12.0
torch>=1.7.0,<1.13.0

# For structured prediction.
conllu==4.4.2
Expand Down

0 comments on commit e5d1f59

Please sign in to comment.