Skip to content

Commit e65d38e

Browse files
authored
Update pytorch nightly to 2.9.0.dev20250820 (#4301)
* Builds on top of @sjarus's commit for updating to 2.9.0.dev20250820 * Updated the CI build to initialize python 3.11 version correctly.
1 parent b1053f8 commit e65d38e

File tree

7 files changed

+21
-19
lines changed

7 files changed

+21
-19
lines changed

.github/actions/setup-build/action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ runs:
2626

2727
steps:
2828
- name: Set up Python
29-
if: ${{ runner.arch == 'X64' }}
3029
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
3130
with:
3231
python-version: '3.11'

.github/workflows/ci.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
fail-fast: true
2323
matrix:
2424
torch-version: [nightly, stable]
25+
2526
name: Build and Test (Linux, torch-${{ matrix.torch-version }}, assertions)
2627
runs-on: torch-mlir-cpubuilder-linux-x86-64-scale
2728
env:
@@ -40,25 +41,25 @@ jobs:
4041
restore-keys: |
4142
build-test-cpp-asserts-manylinux-${{ matrix.torch-version }}-v2-
4243
43-
- name: "Setting up Python"
44-
run: |
45-
sudo apt update
46-
sudo apt install software-properties-common -y
47-
sudo add-apt-repository ppa:deadsnakes/ppa -y
48-
sudo apt install python3.11 python3-pip -y
49-
sudo apt-get install python3.11-dev python3.11-venv build-essential -y
50-
51-
- name: Install python deps (torch-${{ matrix.torch-version }})
52-
run: |
53-
export cache_dir="${{ env.CACHE_DIR }}"
54-
bash build_tools/ci/install_python_deps.sh ${{ matrix.torch-version }}
55-
5644
- name: ccache
5745
uses: hendrikmuhs/ccache-action@63069e3931dedbf3b63792097479563182fe70d1 # v1.2.18
5846
with:
5947
key: ${{ github.job }}-${{ matrix.torch-version }}
6048
save: ${{ needs.setup.outputs.write-caches == 1 }}
6149

50+
- name: Setup workspace and python
51+
uses: ./.github/actions/setup-build
52+
53+
- name: Display Python version and path
54+
run: |
55+
python -c "import sys; print(sys.version)"
56+
which python
57+
58+
- name: Install python deps (torch-${{ matrix.torch-version }})
59+
run: |
60+
cd $GITHUB_WORKSPACE
61+
./build_tools/ci/install_python_deps.sh ${{ matrix.torch-version }}
62+
6263
- name: Build project
6364
run: |
6465
export cache_dir="${{ env.CACHE_DIR }}"

lib/Dialect/Torch/Transforms/AbstractInterpLibrary.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6172,7 +6172,7 @@ StringRef mlir::torch::Torch::getAbstractInterpLibrary() {
61726172
" %true = torch.constant.bool true\n"
61736173
" %none = torch.constant.none\n"
61746174
" %str_0 = torch.constant.str \"AssertionError: \"\n"
6175-
" %str_1 = torch.constant.str \"The dims of tensor b ({}) must be less than or equal tothe dims of tensor a ({}) \"\n"
6175+
" %str_1 = torch.constant.str \"The dims of tensor b ({}) must be less than or equal to the dims of tensor a ({}) \"\n"
61766176
" %int0 = torch.constant.int 0\n"
61776177
" %int1 = torch.constant.int 1\n"
61786178
" %0 = torch.aten.len.t %arg0 : !torch.list<int> -> !torch.int\n"

projects/pt1/e2e_testing/xfail_sets.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3427,7 +3427,9 @@
34273427
"ElementwiseBitwiseAndStaticShapeModule_basic",
34283428
}
34293429

3430-
if torch_version_for_comparison() >= version.parse("2.5.0.dev"):
3430+
if torch_version_for_comparison() >= version.parse(
3431+
"2.5.0.dev"
3432+
) and torch_version_for_comparison() < version.parse("2.9.0.dev"):
34313433
ONNX_XFAIL_SET = ONNX_XFAIL_SET | {
34323434
# ERROR: value (Tensor with shape=[2, 3, 8, 20], dtype=torch.float32, min=+nan, max=+nan, mean=+nan) is not close to golden value (Tensor with shape=[2, 3, 8, 20], dtype=torch.float32, min=-2.394, max=+2.454, mean=-0.02828)
34333435
"ScaledDotProductAttentionBoolMaskModule_basic",

pytorch-hash.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
382411c3d8fe3b2eed522fa97c24e8caa9530bec
1+
7956a1d1d0dc7cdaaaa42d0863eebb1b1e75eb65

pytorch-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
-f https://download.pytorch.org/whl/nightly/cpu/torch/
22
--pre
3-
torch==2.8.0.dev20250622
3+
torch==2.9.0.dev20250820

torchvision-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
-f https://download.pytorch.org/whl/nightly/cpu/torchvision/
22
--pre
3-
torchvision==0.23.0.dev20250622
3+
torchvision==0.24.0.dev20250820

0 commit comments

Comments
 (0)