From 9a4674ed11a14bea08020e988b305c2d864a3be8 Mon Sep 17 00:00:00 2001 From: atalman Date: Thu, 9 Jan 2025 10:38:37 -0800 Subject: [PATCH 1/9] Amazon Linux 2023 validation --- .github/workflows/validate-linux-binaries.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/validate-linux-binaries.yml b/.github/workflows/validate-linux-binaries.yml index 6268742832..ecdd01285b 100644 --- a/.github/workflows/validate-linux-binaries.yml +++ b/.github/workflows/validate-linux-binaries.yml @@ -169,3 +169,20 @@ jobs: # Validate binaries source ../../test-infra/.github/scripts/validate_binaries.sh + + linux-amazon-2023: + uses: ./.github/workflows/linux_job.yml + name: amazon-linux-2023-test + with: + runner: "linux.g5.4xlarge.nvidia.gpu" + repository: "pytorch/pytorch" + ref: main + job-name: "amazon-linux-2023-test" + docker-image: 'almalinux/9-base' + docker-build-dir: "skip-docker-build" + timeout: 180 + script: | + set -ex + python3 -m ensurepip --upgrade + python3 -m pip install torch --index-url https://download.pytorch.org/whl/test/cu124 + python3 -c "import torch;" From 810c8f6dfe1f6786c4d942eea7e9b18f74bc78fc Mon Sep 17 00:00:00 2001 From: atalman Date: Thu, 9 Jan 2025 10:48:52 -0800 Subject: [PATCH 2/9] fix --- .github/workflows/validate-linux-binaries.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate-linux-binaries.yml b/.github/workflows/validate-linux-binaries.yml index ecdd01285b..cbcf6a8010 100644 --- a/.github/workflows/validate-linux-binaries.yml +++ b/.github/workflows/validate-linux-binaries.yml @@ -184,5 +184,5 @@ jobs: script: | set -ex python3 -m ensurepip --upgrade - python3 -m pip install torch --index-url https://download.pytorch.org/whl/test/cu124 + python3 -m pip install torch==2.5.1 --index-url https://download.pytorch.org/whl/test/cu124 python3 -c "import torch;" From b7b94693e435dc3ca1aba6f3f7ef8c04e0024b1e Mon Sep 17 00:00:00 2001 From: atalman Date: Thu, 9 Jan 2025 11:21:24 -0800 Subject: [PATCH 3/9] fix --- .github/workflows/validate-linux-binaries.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/validate-linux-binaries.yml b/.github/workflows/validate-linux-binaries.yml index cbcf6a8010..e5ac138f22 100644 --- a/.github/workflows/validate-linux-binaries.yml +++ b/.github/workflows/validate-linux-binaries.yml @@ -175,14 +175,11 @@ jobs: name: amazon-linux-2023-test with: runner: "linux.g5.4xlarge.nvidia.gpu" - repository: "pytorch/pytorch" - ref: main job-name: "amazon-linux-2023-test" docker-image: 'almalinux/9-base' - docker-build-dir: "skip-docker-build" timeout: 180 script: | set -ex python3 -m ensurepip --upgrade - python3 -m pip install torch==2.5.1 --index-url https://download.pytorch.org/whl/test/cu124 + python3 -m pip install torch--index-url https://download.pytorch.org/whl/test/cu124 python3 -c "import torch;" From 58e314717b94a6da46ef1886ef0e19834da5a99a Mon Sep 17 00:00:00 2001 From: atalman Date: Thu, 9 Jan 2025 11:39:14 -0800 Subject: [PATCH 4/9] fix --- .github/workflows/validate-linux-binaries.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/validate-linux-binaries.yml b/.github/workflows/validate-linux-binaries.yml index e5ac138f22..9176b40ab9 100644 --- a/.github/workflows/validate-linux-binaries.yml +++ b/.github/workflows/validate-linux-binaries.yml @@ -175,11 +175,15 @@ jobs: name: amazon-linux-2023-test with: runner: "linux.g5.4xlarge.nvidia.gpu" + repository: "pytorch/pytorch" + ref: main job-name: "amazon-linux-2023-test" docker-image: 'almalinux/9-base' + docker-build-dir: "skip-docker-build" timeout: 180 script: | set -ex + cd .ci/pytorch/ python3 -m ensurepip --upgrade python3 -m pip install torch--index-url https://download.pytorch.org/whl/test/cu124 python3 -c "import torch;" From 4412261cf793a95f773aadd7a9877993f88bc278 Mon Sep 17 00:00:00 2001 From: atalman Date: Thu, 9 Jan 2025 11:42:28 -0800 Subject: [PATCH 5/9] test --- .github/workflows/validate-linux-binaries.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate-linux-binaries.yml b/.github/workflows/validate-linux-binaries.yml index 9176b40ab9..b02613d29b 100644 --- a/.github/workflows/validate-linux-binaries.yml +++ b/.github/workflows/validate-linux-binaries.yml @@ -185,5 +185,5 @@ jobs: set -ex cd .ci/pytorch/ python3 -m ensurepip --upgrade - python3 -m pip install torch--index-url https://download.pytorch.org/whl/test/cu124 + python3 -m pip install torch --index-url https://download.pytorch.org/whl/test/cu124 python3 -c "import torch;" From c61c0e3e7236a8f0d1bff47d22a807f211d7aef4 Mon Sep 17 00:00:00 2001 From: atalman Date: Thu, 9 Jan 2025 11:49:12 -0800 Subject: [PATCH 6/9] test --- .github/workflows/validate-linux-binaries.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate-linux-binaries.yml b/.github/workflows/validate-linux-binaries.yml index b02613d29b..d3c8839260 100644 --- a/.github/workflows/validate-linux-binaries.yml +++ b/.github/workflows/validate-linux-binaries.yml @@ -185,5 +185,5 @@ jobs: set -ex cd .ci/pytorch/ python3 -m ensurepip --upgrade - python3 -m pip install torch --index-url https://download.pytorch.org/whl/test/cu124 + python3 -m pip install torch==2.5.1 --index-url https://download.pytorch.org/whl/test/cu124 python3 -c "import torch;" From c6a6e1e9c1fd92561e5b5cb9ea2c94e5e34464c8 Mon Sep 17 00:00:00 2001 From: atalman Date: Thu, 9 Jan 2025 11:59:21 -0800 Subject: [PATCH 7/9] fix --- .github/workflows/validate-linux-binaries.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validate-linux-binaries.yml b/.github/workflows/validate-linux-binaries.yml index d3c8839260..594dda719b 100644 --- a/.github/workflows/validate-linux-binaries.yml +++ b/.github/workflows/validate-linux-binaries.yml @@ -185,5 +185,13 @@ jobs: set -ex cd .ci/pytorch/ python3 -m ensurepip --upgrade - python3 -m pip install torch==2.5.1 --index-url https://download.pytorch.org/whl/test/cu124 + + DWN_PYTORCH_ORG="https://download.pytorch.org/whl/nightly/cu124" + if [[ ${{ inputs.channel }} == 'test' ]]; then + DWN_PYTORCH_ORG="https://download.pytorch.org/whl/test/cu124" + elif [[ ${{ inputs.channel }} == 'release' ]]; then + DWN_PYTORCH_ORG="https://download.pytorch.org/whl/cu124" + fi + + python3 -m pip install torch==2.5.1 --index-url ${DWN_PYTORCH_ORG} python3 -c "import torch;" From 0fa37c65a8358b89ce4249dcceef0acbf2ca3229 Mon Sep 17 00:00:00 2001 From: atalman Date: Thu, 9 Jan 2025 12:03:18 -0800 Subject: [PATCH 8/9] amazonlinus2023 --- .github/workflows/validate-linux-binaries.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate-linux-binaries.yml b/.github/workflows/validate-linux-binaries.yml index 594dda719b..13646419e3 100644 --- a/.github/workflows/validate-linux-binaries.yml +++ b/.github/workflows/validate-linux-binaries.yml @@ -193,5 +193,5 @@ jobs: DWN_PYTORCH_ORG="https://download.pytorch.org/whl/cu124" fi - python3 -m pip install torch==2.5.1 --index-url ${DWN_PYTORCH_ORG} + python3 -m pip install torch --index-url ${DWN_PYTORCH_ORG} python3 -c "import torch;" From 73846ac4726d034c36532df2baa26db4c3b0f998 Mon Sep 17 00:00:00 2001 From: atalman Date: Thu, 9 Jan 2025 12:12:09 -0800 Subject: [PATCH 9/9] fix --- .github/workflows/validate-linux-binaries.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate-linux-binaries.yml b/.github/workflows/validate-linux-binaries.yml index 13646419e3..8c6a946491 100644 --- a/.github/workflows/validate-linux-binaries.yml +++ b/.github/workflows/validate-linux-binaries.yml @@ -194,4 +194,4 @@ jobs: fi python3 -m pip install torch --index-url ${DWN_PYTORCH_ORG} - python3 -c "import torch;" + python3 -c "import torch"