Skip to content

Commit a39c5c1

Browse files
authored
[E2E] Align torchbench dependencies to match what torch-xpu-ops uses (#5398)
Signed-off-by: Anatoly Myachev <[email protected]>
1 parent 3de5f93 commit a39c5c1

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/e2e-reusable.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140

141141
- name: Install python test dependencies
142142
run: |
143-
pip install pyyaml pandas scipy 'numpy==1.26.4' psutil pyre_extensions torchrec
143+
pip install pyyaml pandas scipy psutil
144144
145145
- name: Install transformers package
146146
if: ${{ inputs.suite == 'huggingface' }}
@@ -189,11 +189,19 @@ jobs:
189189
if: ${{ inputs.suite == 'torchbench' }}
190190
run: |
191191
cd benchmark
192+
sed -i 's/^ *pynvml.*//' requirements.txt
193+
pip install -r requirements.txt
194+
# for dlrm
195+
pip install pyre-extensions
196+
curl -fsSL https://raw.githubusercontent.com/facebookresearch/dlrm/refs/heads/torchrec-dlrm/requirements.txt |xargs pip install
197+
# for soft_actor_critic, temp fix
198+
pip install git+https://github.com/nocoding03/gym@fix-np
199+
192200
if [[ "${{ inputs.only_one_model }}" ]]; then
193201
python install.py "${{ inputs.only_one_model }}"
194202
else
195203
# install all models
196-
python install.py
204+
python install.py --continue_on_fail
197205
fi
198206
pip install -e .
199207
@@ -203,6 +211,9 @@ jobs:
203211
run: |
204212
cd pytorch
205213
214+
# Some models are still not compatible with numpy>2.0
215+
pip install 'numpy==1.26.4'
216+
206217
export WORKSPACE=$GITHUB_WORKSPACE
207218
208219
if [[ "${{ inputs.TORCH_COMPILE_DEBUG }}" = "1" ]] ; then

0 commit comments

Comments
 (0)