From f8d6ccd2d8132838bae03eaf383a71c6c30a5d05 Mon Sep 17 00:00:00 2001 From: Felicity Liao Date: Tue, 11 Mar 2025 15:42:11 -0700 Subject: [PATCH 1/3] Fix importlib metadata (#2800) Summary: Pull Request resolved: https://github.com/pytorch/torchrec/pull/2800 Differential Revision: D70998736 --- .github/scripts/validate_binaries.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/scripts/validate_binaries.sh b/.github/scripts/validate_binaries.sh index a0c4234a8..eb1e87e57 100755 --- a/.github/scripts/validate_binaries.sh +++ b/.github/scripts/validate_binaries.sh @@ -162,5 +162,9 @@ conda run -n "${CONDA_ENV}" python -c "import torch; print(torch.version.cuda)" # python 3.11 needs torchx-nightly conda run -n "${CONDA_ENV}" pip install torchx-nightly iopath +# python 3.9 needs import-metadata +conda run -n "${CONDA_ENV}" pip install importlib_metadata + + # Finally run smoke test conda run -n "${CONDA_ENV}" torchx run -s local_cwd dist.ddp -j 1 --gpu 2 --script test_installation.py From 1c8e10830df72672209a4b06b76bed0fcdc8445b Mon Sep 17 00:00:00 2001 From: Felicity Liao Date: Tue, 11 Mar 2025 15:42:11 -0700 Subject: [PATCH 2/3] Temporary Commit at 3/11/2025, 3:38:30 PM (#2801) Summary: Pull Request resolved: https://github.com/pytorch/torchrec/pull/2801 Differential Revision: D70999813 --- .github/scripts/validate_binaries.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/validate_binaries.sh b/.github/scripts/validate_binaries.sh index eb1e87e57..115f69c66 100755 --- a/.github/scripts/validate_binaries.sh +++ b/.github/scripts/validate_binaries.sh @@ -163,7 +163,7 @@ conda run -n "${CONDA_ENV}" python -c "import torch; print(torch.version.cuda)" conda run -n "${CONDA_ENV}" pip install torchx-nightly iopath # python 3.9 needs import-metadata -conda run -n "${CONDA_ENV}" pip install importlib_metadata +conda run -n "${CONDA_ENV}" pip install importlib-metadata # Finally run smoke test From fbdace726e17325d6f951019b16dd1a52d4edc13 Mon Sep 17 00:00:00 2001 From: Felicity Liao Date: Tue, 11 Mar 2025 15:42:11 -0700 Subject: [PATCH 3/3] Temporary Commit at 3/11/2025, 3:41:43 PM Differential Revision: D71000056 --- .github/workflows/build-wheels-linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-wheels-linux.yml b/.github/workflows/build-wheels-linux.yml index 50dc5ccdc..40da70434 100644 --- a/.github/workflows/build-wheels-linux.yml +++ b/.github/workflows/build-wheels-linux.yml @@ -57,7 +57,7 @@ jobs: test-infra-repository: pytorch/test-infra test-infra-ref: main build-matrix: ${{ needs.filter-matrix.outputs.matrix }} - pre-script: "" + pre-script: .github/scripts/validate_binaries.sh post-script: .github/scripts/install_fbgemm.sh package-name: torchrec smoke-test-script: ""