From 2177b4514a9167118314506c0ea06e5218e24a1b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Sep 2025 01:02:39 +0000 Subject: [PATCH 1/5] build(deps): update numpy requirement in /requirements Updates the requirements on [numpy](https://github.com/numpy/numpy) to permit the latest version. - [Release notes](https://github.com/numpy/numpy/releases) - [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst) - [Commits](https://github.com/numpy/numpy/compare/v1.21.0...v2.3.3) --- updated-dependencies: - dependency-name: numpy dependency-version: 2.3.3 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- requirements/fabric/test.txt | 2 +- requirements/pytorch/test.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements/fabric/test.txt b/requirements/fabric/test.txt index fd1f1b1c76397..33e8ff86add86 100644 --- a/requirements/fabric/test.txt +++ b/requirements/fabric/test.txt @@ -1,5 +1,5 @@ coverage ==7.10.6 -numpy >=1.21.0, <1.27.0 +numpy >=1.21.0, <2.4.0 pytest ==8.4.2 pytest-cov ==6.3.0 pytest-timeout ==2.4.0 diff --git a/requirements/pytorch/test.txt b/requirements/pytorch/test.txt index b3986620373ee..3f2eca95c6d2c 100644 --- a/requirements/pytorch/test.txt +++ b/requirements/pytorch/test.txt @@ -8,7 +8,7 @@ pytest-random-order ==1.2.0 # needed in tests cloudpickle >=1.3, <3.2.0 scikit-learn >0.22.1, <1.8.0 -numpy >1.20.0, <1.27.0 +numpy >1.20.0, <2.4.0 onnx >1.12.0, <1.20.0 onnxruntime >=1.12.0, <1.23.0 onnxscript >= 0.1.0, < 0.5.0 From 844a5cacca8289736a2e67851859663f4804ea39 Mon Sep 17 00:00:00 2001 From: jirka Date: Mon, 15 Sep 2025 10:09:02 +0200 Subject: [PATCH 2/5] patch --- .github/workflows/ci-tests-fabric.yml | 7 +++++-- .github/workflows/ci-tests-pytorch.yml | 5 +++++ requirements/fabric/test.txt | 1 - requirements/pytorch/test.txt | 1 - 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-tests-fabric.yml b/.github/workflows/ci-tests-fabric.yml index 882fea6c965c6..51fad3c3834ef 100644 --- a/.github/workflows/ci-tests-fabric.yml +++ b/.github/workflows/ci-tests-fabric.yml @@ -85,11 +85,9 @@ jobs: - name: Append Env. vars for Linux if: ${{ runner.os == 'Linux' }} run: echo "GLOO_SOCKET_IFNAME=eth0" >> $GITHUB_ENV - - name: Append Env. vars for MacOS if: ${{ runner.os == 'macOS' }} run: echo "GLOO_SOCKET_IFNAME=lo0" >> $GITHUB_ENV - - name: Append Env. vars for Windows if: ${{ runner.os == 'windows' }} run: | @@ -134,6 +132,11 @@ jobs: --find-links="${TORCH_URL}" uv pip list + - name: Patch NumPy for old Torch versions + if: ${{ startsWith(matrix.pytorch-version, '2.1') || startsWith(matrix.pytorch-version, '2.2') || startsWith(matrix.pytorch-version, '2.3') }} + # Patch numpy to avoid "RuntimeError: Numpy is not available" + run: uv pip install -U "numpy<1.24" + - name: Dump handy wheels if: github.event_name == 'push' && github.ref == 'refs/heads/master' continue-on-error: true diff --git a/.github/workflows/ci-tests-pytorch.yml b/.github/workflows/ci-tests-pytorch.yml index 168a6783514c3..12a0520e84863 100644 --- a/.github/workflows/ci-tests-pytorch.yml +++ b/.github/workflows/ci-tests-pytorch.yml @@ -138,6 +138,11 @@ jobs: --find-links="https://download.pytorch.org/whl/torch-tensorrt" uv pip list + - name: Patch NumPy for old Torch versions + if: ${{ startsWith(matrix.pytorch-version, '2.1') || startsWith(matrix.pytorch-version, '2.2') || startsWith(matrix.pytorch-version, '2.3') }} + # Patch numpy to avoid "RuntimeError: Numpy is not available" + run: uv pip install -U "numpy<1.24" + - name: Drop LAI from extensions if: ${{ matrix.config.pkg-name != 'lightning' }} # Lightning is dependency of Habana or other accelerators/integrations so in case we test PL we need to remove it diff --git a/requirements/fabric/test.txt b/requirements/fabric/test.txt index 33e8ff86add86..e4090ab0a30da 100644 --- a/requirements/fabric/test.txt +++ b/requirements/fabric/test.txt @@ -1,5 +1,4 @@ coverage ==7.10.6 -numpy >=1.21.0, <2.4.0 pytest ==8.4.2 pytest-cov ==6.3.0 pytest-timeout ==2.4.0 diff --git a/requirements/pytorch/test.txt b/requirements/pytorch/test.txt index 3f2eca95c6d2c..680d939f3ad10 100644 --- a/requirements/pytorch/test.txt +++ b/requirements/pytorch/test.txt @@ -8,7 +8,6 @@ pytest-random-order ==1.2.0 # needed in tests cloudpickle >=1.3, <3.2.0 scikit-learn >0.22.1, <1.8.0 -numpy >1.20.0, <2.4.0 onnx >1.12.0, <1.20.0 onnxruntime >=1.12.0, <1.23.0 onnxscript >= 0.1.0, < 0.5.0 From 472607d40c060fdd3a5bec167ea9cf596b0c29aa Mon Sep 17 00:00:00 2001 From: jirka Date: Mon, 15 Sep 2025 10:09:30 +0200 Subject: [PATCH 3/5] patch --- .github/workflows/ci-tests-pytorch.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci-tests-pytorch.yml b/.github/workflows/ci-tests-pytorch.yml index 12a0520e84863..f77e56df139db 100644 --- a/.github/workflows/ci-tests-pytorch.yml +++ b/.github/workflows/ci-tests-pytorch.yml @@ -90,7 +90,6 @@ jobs: - name: Append Env. vars for Linux if: ${{ runner.os == 'Linux' }} run: echo "GLOO_SOCKET_IFNAME=eth0" >> $GITHUB_ENV - - name: Append Env. vars for MacOS if: ${{ runner.os == 'macOS' }} run: echo "GLOO_SOCKET_IFNAME=lo0" >> $GITHUB_ENV From ad7ff56c436acea9252cf822e830b1a65238d3ac Mon Sep 17 00:00:00 2001 From: jirka Date: Mon, 15 Sep 2025 12:14:41 +0200 Subject: [PATCH 4/5] typo --- .github/workflows/ci-tests-fabric.yml | 2 +- .github/workflows/ci-tests-pytorch.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-tests-fabric.yml b/.github/workflows/ci-tests-fabric.yml index 51fad3c3834ef..47b724ca4a788 100644 --- a/.github/workflows/ci-tests-fabric.yml +++ b/.github/workflows/ci-tests-fabric.yml @@ -133,7 +133,7 @@ jobs: uv pip list - name: Patch NumPy for old Torch versions - if: ${{ startsWith(matrix.pytorch-version, '2.1') || startsWith(matrix.pytorch-version, '2.2') || startsWith(matrix.pytorch-version, '2.3') }} + if: ${{ startsWith(matrix.config.pytorch-version, '2.1') || startsWith(matrix.config.pytorch-version, '2.2') || startsWith(matrix.config.pytorch-version, '2.3') }} # Patch numpy to avoid "RuntimeError: Numpy is not available" run: uv pip install -U "numpy<1.24" diff --git a/.github/workflows/ci-tests-pytorch.yml b/.github/workflows/ci-tests-pytorch.yml index f77e56df139db..56c025a86de93 100644 --- a/.github/workflows/ci-tests-pytorch.yml +++ b/.github/workflows/ci-tests-pytorch.yml @@ -138,7 +138,7 @@ jobs: uv pip list - name: Patch NumPy for old Torch versions - if: ${{ startsWith(matrix.pytorch-version, '2.1') || startsWith(matrix.pytorch-version, '2.2') || startsWith(matrix.pytorch-version, '2.3') }} + if: ${{ startsWith(matrix.config.pytorch-version, '2.1') || startsWith(matrix.config.pytorch-version, '2.2') || startsWith(matrix.config.pytorch-version, '2.3') }} # Patch numpy to avoid "RuntimeError: Numpy is not available" run: uv pip install -U "numpy<1.24" From f1a7c5e604aa703ac739a6cc7de6bdfd5dc053d4 Mon Sep 17 00:00:00 2001 From: jirka Date: Tue, 16 Sep 2025 19:27:08 +0200 Subject: [PATCH 5/5] Empty-Commit