Skip to content

Commit 421d48f

Browse files
dulinrileyfacebook-github-bot
authored andcommitted
Test against stable pytorch instead of nightly
Summary: Monarch is not using any features from nightly torch that aren't available in the stable pytorch release. Using stable can make our builds a little more predictable and avoid version conflicts unique to nightlies. Differential Revision: D87667280
1 parent 426225e commit 421d48f

File tree

7 files changed

+6
-9
lines changed

7 files changed

+6
-9
lines changed

.github/workflows/build-cuda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
include:
1818
- name: 4xlargegpu
1919
runs-on: linux.g5.4xlarge.nvidia.gpu
20-
torch-spec: '--pre torch --index-url https://download.pytorch.org/whl/nightly/cu126'
20+
torch-spec: 'torch'
2121
gpu-arch-type: "cuda"
2222
gpu-arch-version: "12.6"
2323
with:

.github/workflows/publish_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
include:
2222
- name: 4xlarge
2323
runs-on: linux.g5.4xlarge.nvidia.gpu
24-
torch-spec: '--pre torch --index-url https://download.pytorch.org/whl/nightly/cu128'
24+
torch-spec: 'torch'
2525
gpu-arch-type: "cuda"
2626
gpu-arch-version: "12.8"
2727
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main

.github/workflows/test-gpu-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
include:
2323
- name: 4xlargegpu
2424
runs-on: linux.g5.4xlarge.nvidia.gpu
25-
torch-spec: '--pre torch --index-url https://download.pytorch.org/whl/nightly/cu126'
25+
torch-spec: 'torch'
2626
gpu-arch-type: "cuda"
2727
gpu-arch-version: "12.6"
2828
with:

.github/workflows/test-gpu-rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
include:
2323
- name: 4xlargegpu
2424
runs-on: linux.g5.4xlarge.nvidia.gpu
25-
torch-spec: '--pre torch --index-url https://download.pytorch.org/whl/nightly/cu126'
25+
torch-spec: 'torch'
2626
gpu-arch-type: "cuda"
2727
gpu-arch-version: "12.6"
2828
with:

.github/workflows/wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
include:
2222
- name: 4xlarge
2323
runs-on: linux.g5.4xlarge.nvidia.gpu
24-
torch-spec: '--pre torch --index-url https://download.pytorch.org/whl/nightly/cu126'
24+
torch-spec: 'torch'
2525
gpu-arch-type: "cuda"
2626
gpu-arch-version: "12.6"
2727
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ conda update -n monarchenv --all -c conda-forge -y
102102
sudo dnf install -y libibverbs rdma-core libmlx5 libibverbs-devel rdma-core-devel
103103

104104
# Install build dependencies
105-
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu128
106105
pip install -r build-requirements.txt
107106
# Install test dependencies
108107
pip install -r python/tests/requirements.txt
@@ -142,7 +141,6 @@ export CXX=clang++
142141
sudo apt install -y cuda-toolkit-12-8 cuda-12-8
143142

144143
# Install build dependencies
145-
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu128
146144
pip install -r build-requirements.txt
147145
# Install test dependencies
148146
pip install -r python/tests/requirements.txt
@@ -180,7 +178,6 @@ rustup toolchain install nightly
180178
rustup default nightly
181179

182180
# Install build dependencies
183-
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
184181
pip install -r build-requirements.txt
185182
# Install test dependencies
186183
pip install -r python/tests/requirements.txt

scripts/common-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ setup_tensor_engine() {
7070
# Install PyTorch with C++ development headers (libtorch) for Rust compilation
7171
setup_pytorch_with_headers() {
7272
local gpu_arch_version=${1:-"12.6"}
73-
local torch_spec=${2:-"--pre torch --index-url https://download.pytorch.org/whl/nightly/cu126"}
73+
local torch_spec=${2:-"torch"}
7474

7575
echo "Setting up PyTorch with C++ headers (GPU arch: ${gpu_arch_version})..."
7676

0 commit comments

Comments
 (0)