Skip to content

Commit 9784a81

Browse files
committed
add torch1.10 to CI
1 parent b101248 commit 9784a81

File tree

4 files changed

+27
-21
lines changed

4 files changed

+27
-21
lines changed

.circleci/config.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ cpu: &cpu
1010

1111
gpu: &gpu
1212
machine:
13-
#image: ubuntu-1604-cuda-10.1:201909-23
1413
# NOTE: use a cuda vesion that's supported by all our pytorch versions
15-
image: ubuntu-1604-cuda-10.2:202012-01
16-
resource_class: gpu.small
14+
image: ubuntu-1604-cuda-11.1:202012-01
15+
resource_class: gpu.nvidia.small
1716

1817
windows-cpu: &windows_cpu
1918
machine:
@@ -226,22 +225,26 @@ workflows:
226225
regular_test:
227226
jobs:
228227
- linux_cpu_tests:
229-
name: linux_cpu_tests_pytorch1.9
230-
pytorch_version: '1.9.0+cpu'
231-
torchvision_version: '0.10.0+cpu'
228+
name: linux_cpu_tests_pytorch1.10
229+
pytorch_version: '1.10.0+cpu'
230+
torchvision_version: '0.11.1+cpu'
232231
- linux_gpu_tests:
233232
name: linux_gpu_tests_pytorch1.8
234-
pytorch_version: '1.8.1+cu102'
235-
torchvision_version: '0.9.1+cu102'
233+
pytorch_version: '1.8.1+cu111'
234+
torchvision_version: '0.9.1+cu111'
236235
- linux_gpu_tests:
237236
name: linux_gpu_tests_pytorch1.9
238-
pytorch_version: '1.9+cu102'
239-
torchvision_version: '0.10+cu102'
237+
pytorch_version: '1.9+cu111'
238+
torchvision_version: '0.10+cu111'
240239
- linux_gpu_tests:
241-
name: linux_gpu_tests_pytorch1.9_python39
242-
pytorch_version: '1.9+cu102'
243-
torchvision_version: '0.10+cu102'
240+
name: linux_gpu_tests_pytorch1.10
241+
pytorch_version: '1.10+cu111'
242+
torchvision_version: '0.11.1+cu111'
243+
- linux_gpu_tests:
244+
name: linux_gpu_tests_pytorch1.10_python39
245+
pytorch_version: '1.10+cu111'
246+
torchvision_version: '0.11.1+cu111'
244247
python_version: '3.9.6'
245248
- windows_cpu_build:
246-
pytorch_version: '1.9+cpu'
247-
torchvision_version: '0.10+cpu'
249+
pytorch_version: '1.10+cpu'
250+
torchvision_version: '0.11.1+cpu'

.github/workflows/workflow.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ jobs:
1515
with:
1616
python-version: 3.6
1717
- name: Install dependencies
18+
# flake8-bugbear flake8-comprehensions are useful but not available internally
1819
run: |
1920
python -m pip install --upgrade pip
20-
python -m pip install flake8==3.8.1 flake8-bugbear flake8-comprehensions isort==4.3.21
21+
python -m pip install flake8==3.8.1 isort==4.3.21
2122
python -m pip install black==21.4b2
2223
flake8 --version
2324
- name: Lint
@@ -36,12 +37,14 @@ jobs:
3637
strategy:
3738
fail-fast: false
3839
matrix:
39-
torch: [1.8, 1.9]
40+
torch: ["1.8", "1.9", "1.10"]
4041
include:
41-
- torch: 1.8
42+
- torch: "1.8"
4243
torchvision: 0.9
43-
- torch: 1.9
44+
- torch: "1.9"
4445
torchvision: "0.10"
46+
- torch: "1.10"
47+
torchvision: "0.11.1"
4548
steps:
4649
- name: Checkout
4750
uses: actions/checkout@v2

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN wget https://bootstrap.pypa.io/get-pip.py && \
2020
# install dependencies
2121
# See https://pytorch.org/ for other options if you use a different version of CUDA
2222
RUN pip install --user tensorboard cmake # cmake from apt-get is too old
23-
RUN pip install --user torch==1.9 torchvision==0.10 -f https://download.pytorch.org/whl/cu111/torch_stable.html
23+
RUN pip install --user torch==1.10 torchvision==0.11.1 -f https://download.pytorch.org/whl/cu111/torch_stable.html
2424

2525
RUN pip install --user 'git+https://github.com/facebookresearch/fvcore'
2626
# install detectron2

docker/deploy.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN export CXXFLAGS=-D_GLIBCXX_USE_CXX11_ABI=$(python3 -c 'import torch; print(i
2121
./configure --prefix=$HOME/.local && make && make install
2222

2323
# install libtorchvision
24-
RUN git clone --branch v0.10.0 https://github.com/pytorch/vision/
24+
RUN git clone --branch v0.11.1 https://github.com/pytorch/vision/
2525
RUN mkdir vision/build && cd vision/build && \
2626
cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/.local -DCMAKE_BUILD_TYPE=Release -DWITH_CUDA=on -DTORCH_CUDA_ARCH_LIST=$TORCH_CUDA_ARCH_LIST && \
2727
make && make install

0 commit comments

Comments
 (0)