Skip to content

Commit 844a5ca

Browse files
committed
patch
1 parent 2177b45 commit 844a5ca

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

.github/workflows/ci-tests-fabric.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,9 @@ jobs:
8585
- name: Append Env. vars for Linux
8686
if: ${{ runner.os == 'Linux' }}
8787
run: echo "GLOO_SOCKET_IFNAME=eth0" >> $GITHUB_ENV
88-
8988
- name: Append Env. vars for MacOS
9089
if: ${{ runner.os == 'macOS' }}
9190
run: echo "GLOO_SOCKET_IFNAME=lo0" >> $GITHUB_ENV
92-
9391
- name: Append Env. vars for Windows
9492
if: ${{ runner.os == 'windows' }}
9593
run: |
@@ -134,6 +132,11 @@ jobs:
134132
--find-links="${TORCH_URL}"
135133
uv pip list
136134
135+
- name: Patch NumPy for old Torch versions
136+
if: ${{ startsWith(matrix.pytorch-version, '2.1') || startsWith(matrix.pytorch-version, '2.2') || startsWith(matrix.pytorch-version, '2.3') }}
137+
# Patch numpy to avoid "RuntimeError: Numpy is not available"
138+
run: uv pip install -U "numpy<1.24"
139+
137140
- name: Dump handy wheels
138141
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
139142
continue-on-error: true

.github/workflows/ci-tests-pytorch.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ jobs:
138138
--find-links="https://download.pytorch.org/whl/torch-tensorrt"
139139
uv pip list
140140
141+
- name: Patch NumPy for old Torch versions
142+
if: ${{ startsWith(matrix.pytorch-version, '2.1') || startsWith(matrix.pytorch-version, '2.2') || startsWith(matrix.pytorch-version, '2.3') }}
143+
# Patch numpy to avoid "RuntimeError: Numpy is not available"
144+
run: uv pip install -U "numpy<1.24"
145+
141146
- name: Drop LAI from extensions
142147
if: ${{ matrix.config.pkg-name != 'lightning' }}
143148
# Lightning is dependency of Habana or other accelerators/integrations so in case we test PL we need to remove it

requirements/fabric/test.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
coverage ==7.10.6
2-
numpy >=1.21.0, <2.4.0
32
pytest ==8.4.2
43
pytest-cov ==6.3.0
54
pytest-timeout ==2.4.0

requirements/pytorch/test.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ pytest-random-order ==1.2.0
88
# needed in tests
99
cloudpickle >=1.3, <3.2.0
1010
scikit-learn >0.22.1, <1.8.0
11-
numpy >1.20.0, <2.4.0
1211
onnx >1.12.0, <1.20.0
1312
onnxruntime >=1.12.0, <1.23.0
1413
onnxscript >= 0.1.0, < 0.5.0

0 commit comments

Comments
 (0)