Skip to content

Commit e94b27e

Browse files
aivanoufacebook-github-bot
authored andcommitted
Update pytorch to 1.10RC (#288)
Summary: Pull Request resolved: #288 Test Plan: Passing unittests Reviewed By: d4l3k Differential Revision: D31814228 Pulled By: aivanou fbshipit-source-id: b42139ce73f196dee22e846a20b68020064b4557
1 parent a7727c7 commit e94b27e

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

.github/workflows/python-unittests.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,20 @@ jobs:
1010
unittest:
1111
strategy:
1212
matrix:
13-
python-version: [3.7, 3.8, 3.9]
14-
platform: [ubuntu-18.04]
1513
include:
14+
# TODO: uncomment this when torch.1-10 is released
15+
# - python-version: 3.9
16+
# platform: macos-latest
17+
# TODO: remove this when torch.1-10 is released
18+
- python-version: 3.7
19+
platform: ubuntu-18.04
20+
torch-whl: https://download.pytorch.org/whl/test/cu113/torch-1.10.0%2Bcu113-cp37-cp37m-linux_x86_64.whl
21+
- python-version: 3.8
22+
platform: ubuntu-18.04
23+
torch-whl: https://download.pytorch.org/whl/test/cu113/torch-1.10.0%2Bcu113-cp38-cp38-linux_x86_64.whl
1624
- python-version: 3.9
17-
platform: macos-latest
25+
platform: ubuntu-18.04
26+
torch-whl: https://download.pytorch.org/whl/test/cu113/torch-1.10.0%2Bcu113-cp39-cp39-linux_x86_64.whl
1827
fail-fast: false
1928
runs-on: ${{ matrix.platform }}
2029
steps:
@@ -30,6 +39,8 @@ jobs:
3039
set -eux
3140
pip install coverage codecov
3241
pip install -e .[dev]
42+
pip uninstall -y torch
43+
pip install ${{ matrix.torch-whl }}
3344
- name: Run tests
3445
run: coverage run -m unittest discover --verbose --start-directory . --pattern "*_test.py"
3546
- name: Coverage

torchx/runtime/container/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ WORKDIR /app
1414
COPY dev-requirements.txt /app
1515
RUN pip install -r dev-requirements.txt
1616

17+
# TODO: Remove this and get dependency on torch 1.10 when it is released
18+
19+
RUN pip uninstall -y torch
20+
21+
RUN pip install https://download.pytorch.org/whl/test/cu113/torch-1.10.0%2Bcu113-cp37-cp37m-linux_x86_64.whl
22+
23+
RUN pip uninstall -y torchtext
24+
25+
RUN pip install https://download.pytorch.org/whl/test/torchtext-0.10.0-cp37-cp37m-linux_x86_64.whl
26+
1727
COPY . /app
1828

1929
RUN python setup.py install

0 commit comments

Comments
 (0)