Add torch 2.1.0 checking in CI (#1389)

This commit is contained in:
Yiyao Yang 2023-10-18 18:42:13 +08:00 committed by GitHub
parent d198b53426
commit 7495b33f34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 19 deletions

View File

@ -137,16 +137,22 @@ jobs:
type: string type: string
cuda: cuda:
type: enum type: enum
enum: ["10.1", "10.2", "11.1", "11.7"] enum: ["10.1", "10.2", "11.1", "11.7", "11.8"]
cudnn: cudnn:
type: integer type: integer
default: 7 default: 7
machine: machine:
image: ubuntu-2004-cuda-11.4:202110-01 image: linux-cuda-11:default
docker_layer_caching: true docker_layer_caching: true
resource_class: gpu.nvidia.small resource_class: gpu.nvidia.small.multi
steps: steps:
- checkout - checkout
- run:
name: Install nvidia-container-toolkit and Restart Docker
command: |
sudo apt-get update
sudo apt-get install -y nvidia-container-toolkit
sudo systemctl restart docker
- run: - run:
name: Build Docker image name: Build Docker image
command: | command: |
@ -261,8 +267,8 @@ workflows:
- lint - lint
- build_cpu: - build_cpu:
name: maximum_version_cpu name: maximum_version_cpu
torch: 2.0.0 torch: 2.1.0
torchvision: 0.15.1 torchvision: 0.16.0
python: 3.9.0 python: 3.9.0
requires: requires:
- minimum_version_cpu - minimum_version_cpu
@ -290,8 +296,8 @@ workflows:
- hold - hold
- build_cuda: - build_cuda:
name: maximum_version_gpu name: maximum_version_gpu
torch: 2.0.0 torch: 2.1.0
cuda: "11.7" cuda: "11.8"
cudnn: 8 cudnn: 8
requires: requires:
- hold - hold

View File

@ -58,7 +58,7 @@ jobs:
strategy: strategy:
matrix: matrix:
python-version: [3.7] python-version: [3.7]
torch: [1.6.0, 1.7.1, 1.8.1, 1.9.1, 1.10.1, 1.11.0, 1.12.0, 1.13.0] torch: [1.6.0, 1.7.1, 1.8.1, 1.9.1, 1.10.1, 1.11.0, 1.12.0, 1.13.0, 2.0.0, 2.1.0]
include: include:
- torch: 1.6.0 - torch: 1.6.0
torchvision: 0.7.0 torchvision: 0.7.0
@ -79,6 +79,14 @@ jobs:
- torch: 2.0.0 - torch: 2.0.0
torchvision: 0.15.1 torchvision: 0.15.1
python-version: 3.8 python-version: 3.8
- torch: 2.1.0
torchvision: 0.16.0
python-version: 3.8
exclude:
- torch: 2.0.0
python-version: 3.7
- torch: 2.1.0
python-version: 3.7
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
@ -228,8 +236,8 @@ jobs:
runs-on: macos-latest runs-on: macos-latest
strategy: strategy:
matrix: matrix:
python-version: [3.7] python-version: [3.8]
torch: [1.6.0, 1.8.1, 1.13.0] torch: [1.6.0, 1.8.1, 1.13.0, 2.1.0]
include: include:
- torch: 1.6.0 - torch: 1.6.0
torchvision: 0.7.0 torchvision: 0.7.0
@ -237,6 +245,8 @@ jobs:
torchvision: 0.9.1 torchvision: 0.9.1
- torch: 1.13.0 - torch: 1.13.0
torchvision: 0.14.0 torchvision: 0.14.0
- torch: 2.1.0
torchvision: 0.16.0
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python 3.7 - name: Set up Python 3.7
@ -273,13 +283,17 @@ jobs:
matrix: matrix:
python-version: [3.7] python-version: [3.7]
platform: [cpu, cu111] platform: [cpu, cu111]
torch: [1.8.1] torch: [1.8.1, 2.1.0]
torchvision: [0.9.1] torchvision: [0.9.1, 0.16.0]
include: include:
- python-version: 3.8 - python-version: 3.8
platform: cu117 platform: cu117
torch: 2.0.0 torch: 2.0.0
torchvision: 0.15.1 torchvision: 0.15.1
- python-version: 3.8
platform: cu118
torch: 2.1.0
torchvision: 0.16.0
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}

View File

@ -136,15 +136,13 @@ jobs:
runs-on: windows-2022 runs-on: windows-2022
strategy: strategy:
matrix: matrix:
python-version: [3.7] torch: [2.1.0]
platform: [cpu, cu111] torchvision: [0.16.0]
torch: [1.8.1]
torchvision: [0.9.1]
include: include:
- python-version: 3.8 - python-version: 3.8
platform: cu117 platform: cu118
torch: 2.0.0 torch: 2.1.0
torchvision: 0.15.1 torchvision: 0.16.0
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}