Skip to content

Commit 2908c90

Browse files
committed
update torchbench installation
Signed-off-by: Anatoly Myachev <[email protected]>
1 parent 21cde65 commit 2908c90

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/e2e-reusable.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ jobs:
154154

155155
- name: Install python test dependencies
156156
run: |
157-
pip install pyyaml pandas scipy 'numpy==1.26.4' psutil pyre_extensions torchrec
157+
pip install pyyaml pandas scipy 'numpy==1.26.4' psutil
158158
159159
- name: Install transformers package
160160
if: ${{ inputs.suite == 'huggingface' }}
@@ -203,13 +203,21 @@ jobs:
203203
if: ${{ inputs.suite == 'torchbench' }}
204204
run: |
205205
cd benchmark
206+
sed -i 's/^ *pynvml.*//' requirements.txt
207+
pip install -r requirements.txt
208+
echo "PYTHONPATH=${PWD}:${PYTHONPATH}" >> ${GITHUB_ENV}
209+
# for dlrm
210+
pip install pyre-extensions
211+
curl -fsSL https://raw.githubusercontent.com/facebookresearch/dlrm/refs/heads/torchrec-dlrm/requirements.txt |xargs pip install
212+
# for soft_actor_critic, temp fix
213+
pip install git+https://github.com/nocoding03/gym@fix-np
214+
206215
if [[ "${{ inputs.only_one_model }}" ]]; then
207216
python install.py "${{ inputs.only_one_model }}"
208217
else
209218
# install all models
210-
python install.py
219+
python install.py --continue_on_fail
211220
fi
212-
pip install -e .
213221
214222
- name: Run e2e ${{ inputs.test_mode }} tests
215223
env:

0 commit comments

Comments
 (0)