"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "b35bac4d3b1af7e2389809f96e8ada11da6cc503"
Unverified Commit 5638af7d authored by Xiang Xu's avatar Xiang Xu Committed by GitHub
Browse files

[CI] update torch version in ci (#2652)

parent 6e1d6a47
...@@ -54,9 +54,7 @@ jobs: ...@@ -54,9 +54,7 @@ jobs:
pip install wheel pip install wheel
- run: - run:
name: Install PyTorch name: Install PyTorch
command: | command: pip install torch==<< parameters.torch >>+cpu torchvision==<< parameters.torchvision >>+cpu -f https://download.pytorch.org/whl/torch_stable.html
python -V
python -m pip install torch==<< parameters.torch >>+cpu torchvision==<< parameters.torchvision >>+cpu -f https://download.pytorch.org/whl/torch_stable.html
- when: - when:
condition: condition:
equal: ["3.9.0", << parameters.python >>] equal: ["3.9.0", << parameters.python >>]
...@@ -65,11 +63,11 @@ jobs: ...@@ -65,11 +63,11 @@ jobs:
- run: - run:
name: Install mmdet3d dependencies name: Install mmdet3d dependencies
command: | command: |
python -m pip install git+ssh://git@github.com/open-mmlab/mmengine.git@main pip install git+ssh://git@github.com/open-mmlab/mmengine.git@main
pip install -U openmim pip install -U openmim
mim install 'mmcv >= 2.0.0rc4' mim install 'mmcv >= 2.0.0rc4'
mim install 'mmdet >= 3.0.0' pip install git+ssh://git@github.com/open-mmlab/mmdetection.git@dev-3.x
pip install -r requirements.txt pip install -r requirements/tests.txt
- run: - run:
name: Build and install name: Build and install
command: | command: |
...@@ -77,9 +75,9 @@ jobs: ...@@ -77,9 +75,9 @@ jobs:
- run: - run:
name: Run unittests name: Run unittests
command: | command: |
python -m coverage run --branch --source mmdet3d -m pytest tests/ coverage run --branch --source mmdet3d -m pytest tests/
python -m coverage xml coverage xml
python -m coverage report -m coverage report -m
build_cuda: build_cuda:
parameters: parameters:
...@@ -87,7 +85,7 @@ jobs: ...@@ -87,7 +85,7 @@ jobs:
type: string type: string
cuda: cuda:
type: enum type: enum
enum: ["10.1", "10.2", "11.1"] enum: ["10.1", "10.2", "11.1", "11.7"]
cudnn: cudnn:
type: integer type: integer
default: 7 default: 7
...@@ -116,7 +114,7 @@ jobs: ...@@ -116,7 +114,7 @@ jobs:
docker exec mmdet3d pip install -U openmim docker exec mmdet3d pip install -U openmim
docker exec mmdet3d mim install 'mmcv >= 2.0.0rc4' docker exec mmdet3d mim install 'mmcv >= 2.0.0rc4'
docker exec mmdet3d pip install -e /mmdetection docker exec mmdet3d pip install -e /mmdetection
docker exec mmdet3d pip install -r requirements.txt docker exec mmdet3d pip install -r requirements/tests.txt
- run: - run:
name: Build and install name: Build and install
command: | command: |
...@@ -124,7 +122,7 @@ jobs: ...@@ -124,7 +122,7 @@ jobs:
- run: - run:
name: Run unittests name: Run unittests
command: | command: |
docker exec mmdet3d python -m pytest tests/ docker exec mmdet3d pytest tests/
workflows: workflows:
pr_stage_lint: pr_stage_lint:
...@@ -148,15 +146,15 @@ workflows: ...@@ -148,15 +146,15 @@ workflows:
- dev-1.x - dev-1.x
- build_cpu: - build_cpu:
name: minimum_version_cpu name: minimum_version_cpu
torch: 1.6.0 torch: 1.8.1
torchvision: 0.7.0 torchvision: 0.9.1
python: 3.7.4 # The lowest python 3.7.x version available on CircleCI images python: 3.7.4 # The lowest python 3.7.x version available on CircleCI images
requires: requires:
- lint - lint
- build_cpu: - build_cpu:
name: maximum_version_cpu name: maximum_version_cpu
torch: 1.13.0 torch: 2.0.0
torchvision: 0.14.0 torchvision: 0.15.1
python: 3.9.0 python: 3.9.0
requires: requires:
- minimum_version_cpu - minimum_version_cpu
...@@ -172,14 +170,21 @@ workflows: ...@@ -172,14 +170,21 @@ workflows:
cuda: "10.2" cuda: "10.2"
requires: requires:
- hold - hold
- build_cuda:
name: maximum_version_gpu
torch: 2.0.0
cuda: "11.7"
cudnn: 8
requires:
- hold
merge_stage_test: merge_stage_test:
when: when:
not: << pipeline.parameters.lint_only >> not: << pipeline.parameters.lint_only >>
jobs: jobs:
- build_cuda: - build_cuda:
name: minimum_version_gpu name: minimum_version_gpu
torch: 1.6.0 torch: 1.8.1
cuda: "10.1" cuda: "10.2"
filters: filters:
branches: branches:
only: only:
......
...@@ -21,7 +21,7 @@ jobs: ...@@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
python-version: [3.7, 3.8, 3.9] python-version: [3.8, 3.9]
torch: [1.8.1] torch: [1.8.1]
include: include:
- torch: 1.8.1 - torch: 1.8.1
...@@ -43,7 +43,7 @@ jobs: ...@@ -43,7 +43,7 @@ jobs:
pip install -U openmim pip install -U openmim
mim install 'mmcv >= 2.0.0rc4' mim install 'mmcv >= 2.0.0rc4'
- name: Install MMDet - name: Install MMDet
run: mim install 'mmdet>=3.0.0' run: pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
- name: Install other dependencies - name: Install other dependencies
run: pip install -r requirements/tests.txt run: pip install -r requirements/tests.txt
- name: Build and install - name: Build and install
...@@ -59,12 +59,8 @@ jobs: ...@@ -59,12 +59,8 @@ 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.1, 1.13.0] torch: [1.8.1, 1.9.1, 1.10.1, 1.11.0, 1.12.0, 1.13.0, 2.0.0]
include: include:
- torch: 1.6.0
torchvision: 0.7.0
- torch: 1.7.1
torchvision: 0.8.2
- torch: 1.8.1 - torch: 1.8.1
torchvision: 0.9.1 torchvision: 0.9.1
- torch: 1.9.1 - torch: 1.9.1
...@@ -73,8 +69,8 @@ jobs: ...@@ -73,8 +69,8 @@ jobs:
torchvision: 0.11.2 torchvision: 0.11.2
- torch: 1.11.0 - torch: 1.11.0
torchvision: 0.12.0 torchvision: 0.12.0
- torch: 1.12.1 - torch: 1.12.0
torchvision: 0.13.1 torchvision: 0.13.0
- torch: 1.13.0 - torch: 1.13.0
torchvision: 0.14.0 torchvision: 0.14.0
- torch: 2.0.0 - torch: 2.0.0
...@@ -97,7 +93,7 @@ jobs: ...@@ -97,7 +93,7 @@ jobs:
pip install -U openmim pip install -U openmim
mim install 'mmcv >= 2.0.0rc4' mim install 'mmcv >= 2.0.0rc4'
- name: Install MMDet - name: Install MMDet
run: mim install 'mmdet>=3.0.0' run: pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
- name: Install other dependencies - name: Install other dependencies
run: pip install -r requirements/tests.txt run: pip install -r requirements/tests.txt
- name: Build and install - name: Build and install
...@@ -147,7 +143,7 @@ jobs: ...@@ -147,7 +143,7 @@ jobs:
pip install git+https://github.com/open-mmlab/mmengine.git@main pip install git+https://github.com/open-mmlab/mmengine.git@main
pip install -U openmim pip install -U openmim
mim install 'mmcv >= 2.0.0rc4' mim install 'mmcv >= 2.0.0rc4'
mim install 'mmdet>=3.0.0' pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
pip install -r requirements/tests.txt pip install -r requirements/tests.txt
- name: Build and install - name: Build and install
run: pip install -e . run: pip install -e .
...@@ -183,7 +179,43 @@ jobs: ...@@ -183,7 +179,43 @@ jobs:
pip install git+https://github.com/open-mmlab/mmengine.git@main pip install git+https://github.com/open-mmlab/mmengine.git@main
pip install -U openmim pip install -U openmim
mim install 'mmcv >= 2.0.0rc4' mim install 'mmcv >= 2.0.0rc4'
mim install 'mmdet>=3.0.0' pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
pip install -r requirements/tests.txt
- name: Build and install
run: pip install -e .
- name: Run unittests and generate coverage report
run: |
coverage run --branch --source mmcv -m pytest tests
coverage xml
coverage report -m
build_cu117:
runs-on: ubuntu-22.04
container:
image: pytorch/pytorch:2.0.0-cuda11.7-cudnn8-devel
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: pip install pip --upgrade && pip install wheel
- name: Fetch GPG keys
run: |
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
- name: Install system dependencies
run: apt-get update && apt-get install -y git ffmpeg libturbojpeg
- name: Install mmdet3d dependencies
run: |
pip install git+https://github.com/open-mmlab/mmengine.git@main
pip install -U openmim
mim install 'mmcv >= 2.0.0rc4'
pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
pip install -r requirements/tests.txt pip install -r requirements/tests.txt
- name: Build and install - name: Build and install
run: pip install -e . run: pip install -e .
...@@ -201,12 +233,17 @@ jobs: ...@@ -201,12 +233,17 @@ jobs:
platform: [cpu, cu111] platform: [cpu, cu111]
torch: [1.8.1] torch: [1.8.1]
torchvision: [0.9.1] torchvision: [0.9.1]
include:
- python-version: 3.8
platform: cu117
torch: 2.0.0
torchvision: 0.15.1
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.python }} python-version: ${{ matrix.python-version }}
- name: Upgrade pip - name: Upgrade pip
run: python -m pip install pip --upgrade && pip install wheel run: python -m pip install pip --upgrade && pip install wheel
- name: Install lmdb - name: Install lmdb
...@@ -218,7 +255,7 @@ jobs: ...@@ -218,7 +255,7 @@ jobs:
pip install git+https://github.com/open-mmlab/mmengine.git@main pip install git+https://github.com/open-mmlab/mmengine.git@main
pip install -U openmim pip install -U openmim
mim install 'mmcv >= 2.0.0rc4' mim install 'mmcv >= 2.0.0rc4'
mim install 'mmdet>=3.0.0' pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
pip install -r requirements/tests.txt pip install -r requirements/tests.txt
- name: Build and install - name: Build and install
run: pip install -e . run: pip install -e .
......
...@@ -40,7 +40,7 @@ jobs: ...@@ -40,7 +40,7 @@ jobs:
pip install -U openmim pip install -U openmim
mim install 'mmcv >= 2.0.0rc4' mim install 'mmcv >= 2.0.0rc4'
- name: Install MMDet - name: Install MMDet
run: mim install 'mmdet>=3.0.0' run: pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
- name: Install other dependencies - name: Install other dependencies
run: pip install -r requirements/tests.txt run: pip install -r requirements/tests.txt
- name: Build and install - name: Build and install
...@@ -86,7 +86,43 @@ jobs: ...@@ -86,7 +86,43 @@ jobs:
pip install git+https://github.com/open-mmlab/mmengine.git@main pip install git+https://github.com/open-mmlab/mmengine.git@main
pip install -U openmim pip install -U openmim
mim install 'mmcv >= 2.0.0rc4' mim install 'mmcv >= 2.0.0rc4'
mim install 'mmdet>=3.0.0' pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
pip install -r requirements/tests.txt
- name: Build and install
run: pip install -e .
- name: Run unittests and generate coverage report
run: |
coverage run --branch --source mmdet3d -m pytest tests/
coverage xml
coverage report -m
build_cu117:
runs-on: ubuntu-22.04
container:
image: pytorch/pytorch:2.0.0-cuda11.7-cudnn8-devel
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: pip install pip --upgrade && pip install wheel
- name: Fetch GPG keys
run: |
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
- name: Install system dependencies
run: apt-get update && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6
- name: Install mmdet3d dependencies
run: |
pip install git+https://github.com/open-mmlab/mmengine.git@main
pip install -U openmim
mim install 'mmcv >= 2.0.0rc4'
pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
pip install -r requirements/tests.txt pip install -r requirements/tests.txt
- name: Build and install - name: Build and install
run: pip install -e . run: pip install -e .
...@@ -104,6 +140,11 @@ jobs: ...@@ -104,6 +140,11 @@ jobs:
platform: [cpu, cu111] platform: [cpu, cu111]
torch: [1.8.1] torch: [1.8.1]
torchvision: [0.9.1] torchvision: [0.9.1]
include:
- python-version: 3.8
platform: cu117
torch: 2.0.0
torchvision: 0.15.1
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
...@@ -121,7 +162,7 @@ jobs: ...@@ -121,7 +162,7 @@ jobs:
pip install git+https://github.com/open-mmlab/mmengine.git@main pip install git+https://github.com/open-mmlab/mmengine.git@main
pip install -U openmim pip install -U openmim
mim install 'mmcv >= 2.0.0rc4' mim install 'mmcv >= 2.0.0rc4'
mim install 'mmdet>=3.0.0' pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
pip install -r requirements/tests.txt pip install -r requirements/tests.txt
- name: Build and install - name: Build and install
run: pip install -e . run: pip install -e .
......
...@@ -21,11 +21,11 @@ jobs: ...@@ -21,11 +21,11 @@ jobs:
strategy: strategy:
matrix: matrix:
python-version: [3.7] python-version: [3.7]
torch: [1.8.0] torch: [1.8.1]
include: include:
- torch: 1.8.0 - torch: 1.8.1
torch_version: torch1.8 torch_version: torch1.8
torchvision: 0.9.0 torchvision: 0.9.1
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment