Skip to content

Commit 9897869

Browse files
authored
Add r2.8 release nightly tests (GoogleCloudPlatform#775)
* Update MAS test nightly wheels * Add PTXLA r2.7 release nightly test * Finish version changes * Remove unused TORCH_XLA_CUDA_WHEEL * Correct enum selection
1 parent e1f4dcb commit 9897869

13 files changed

Lines changed: 62 additions & 48 deletions

dags/legacy_test/tests/pytorch/r2.7/accelerate-smoke.libsonnet renamed to dags/legacy_test/tests/pytorch/r2.8/accelerate-smoke.libsonnet

File renamed without changes.
File renamed without changes.

dags/legacy_test/tests/pytorch/r2.7/common.libsonnet renamed to dags/legacy_test/tests/pytorch/r2.8/common.libsonnet

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ local volumes = import 'templates/volumes.libsonnet';
2020

2121
local rcVersion = 'rc5';
2222

23-
// make sure the vision commit aligns with upstream. E.g., for 2.7 release:
24-
// https://github.com/pytorch/pytorch/blob/release/2.7/.github/ci_commit_pins/vision.txt.
23+
// make sure the vision commit aligns with upstream. E.g., for 2.8 release:
24+
// https://github.com/pytorch/pytorch/blob/release/2.8/.github/ci_commit_pins/vision.txt.
2525
local vision_commit = 'd23a6e1664d20707c11781299611436e1f0c104f';
2626

2727

2828
{
29-
local r2_7 = {
30-
frameworkPrefix: 'pt-2-7',
29+
local r2_8 = {
30+
frameworkPrefix: 'pt-2-8',
3131
tpuSettings+: {
3232
softwareVersion: 'tpu-ubuntu2204-base',
3333
},
34-
imageTag: 'r2.7.0-%(rc)s_3.10' % {rc: rcVersion},
34+
imageTag: 'r2.8.0-%(rc)s_3.10' % {rc: rcVersion},
3535
},
36-
PyTorchTest:: common.PyTorchTest + r2_7 {
36+
PyTorchTest:: common.PyTorchTest + r2_8 {
3737
local config = self,
3838

3939
podTemplate+:: {
@@ -74,7 +74,7 @@ local vision_commit = 'd23a6e1664d20707c11781299611436e1f0c104f';
7474
7575
ctc = cloud_tpu_client.Client(tpu=os.path.basename('$(TPU_NAME)'), zone=os.path.dirname('$(TPU_NAME)'))
7676
ctc.wait_for_healthy()
77-
ctc.configure_tpu_version(f'pytorch-2.7-dev{libtpu_date}', restart_type='always')
77+
ctc.configure_tpu_version(f'pytorch-2.8-dev{libtpu_date}', restart_type='always')
7878
ctc.wait_for_healthy()
7979
|||,
8080
],
@@ -110,16 +110,16 @@ local vision_commit = 'd23a6e1664d20707c11781299611436e1f0c104f';
110110
sudo apt install -y libopenblas-base
111111
# for huggingface tests
112112
sudo apt install -y libsndfile-dev
113-
# Install torchvision by pinned commit in PyTorch 2.7 release branch.
114-
pip install torch==2.7.0 --index-url https://download.pytorch.org/whl/test/cpu
115-
# torchvision commit reference: https://github.com/pytorch/pytorch/blob/release/2.7/.github/ci_commit_pins/vision.txt
113+
# Install torchvision by pinned commit in PyTorch 2.8 release branch.
114+
pip install torch==2.8.0 --index-url https://download.pytorch.org/whl/test/cpu
115+
# torchvision commit reference: https://github.com/pytorch/pytorch/blob/release/2.8/.github/ci_commit_pins/vision.txt
116116
pip install --user --no-use-pep517 "git+https://github.com/pytorch/vision.git@%(vision_commit)s"
117-
pip install https://storage.googleapis.com/pytorch-xla-releases/wheels/tpuvm/torch_xla-2.7.0%(rc)s-cp310-cp310-linux_x86_64.whl
117+
pip install https://storage.googleapis.com/pytorch-xla-releases/wheels/tpuvm/torch_xla-2.8.0%(rc)s-cp310-cp310-linux_x86_64.whl
118118
pip install torch_xla[tpu] -f https://storage.googleapis.com/libtpu-releases/index.html -f https://storage.googleapis.com/libtpu-wheels/index.html
119119
pip install pillow
120120
git clone --depth=1 https://github.com/pytorch/pytorch.git
121121
cd pytorch
122-
git clone -b v2.7.0-%(rc)s https://github.com/pytorch/xla.git
122+
git clone -b v2.8.0-%(rc)s https://github.com/pytorch/xla.git
123123
||| % {rc: rcVersion, vision_commit: vision_commit},
124124
},
125125
podTemplate+:: {
@@ -155,12 +155,12 @@ local vision_commit = 'd23a6e1664d20707c11781299611436e1f0c104f';
155155
156156
nvidia-smi
157157
pip uninstall -y torch torchvision
158-
pip install torch==2.7.0 --index-url https://download.pytorch.org/whl/test/cpu
158+
pip install torch==2.8.0 --index-url https://download.pytorch.org/whl/test/cpu
159159
pip install --user --no-use-pep517 "git+https://github.com/pytorch/vision.git@%(vision_commit)s"
160-
pip install https://storage.googleapis.com/pytorch-xla-releases/wheels/cuda/12.6/torch_xla-2.7.0%(rc)s-cp310-cp310-linux_x86_64.whl
160+
pip install https://storage.googleapis.com/pytorch-xla-releases/wheels/cuda/12.6/torch_xla-2.8.0%(rc)s-cp310-cp310-linux_x86_64.whl
161161
162162
mkdir -p pytorch/xla
163-
git clone -b v2.7.0-%(rc)s https://github.com/pytorch/xla.git pytorch/xla
163+
git clone -b v2.8.0-%(rc)s https://github.com/pytorch/xla.git pytorch/xla
164164
165165
%(cmd)s
166166
@@ -238,5 +238,5 @@ local vision_commit = 'd23a6e1664d20707c11781299611436e1f0c104f';
238238
HuggingfacePipVersionConstraints:: common.HuggingfacePipVersionConstraints,
239239

240240
// DEPRECATED: Use PyTorchTpuVmMixin instead
241-
tpu_vm_r2_7_install: self.PyTorchTpuVmMixin.tpuSettings.tpuVmPytorchSetup,
241+
tpu_vm_r2_8_install: self.PyTorchTpuVmMixin.tpuSettings.tpuVmPytorchSetup,
242242
}
File renamed without changes.

dags/legacy_test/tests/pytorch/r2.7/llama2-model.libsonnet renamed to dags/legacy_test/tests/pytorch/r2.8/llama2-model.libsonnet

File renamed without changes.
File renamed without changes.

dags/legacy_test/tests/pytorch/r2.7/resnet50-mp.libsonnet renamed to dags/legacy_test/tests/pytorch/r2.8/resnet50-mp.libsonnet

File renamed without changes.

dags/legacy_test/tests/pytorch/r2.7/stable-diffusion-2.libsonnet renamed to dags/legacy_test/tests/pytorch/r2.8/stable-diffusion-2.libsonnet

File renamed without changes.
File renamed without changes.

dags/legacy_test/tests/pytorch/targets.jsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
// limitations under the License.
1414

1515
local nightly = import 'nightly/targets.jsonnet';
16-
local r2_7 = import 'r2.7/targets.jsonnet';
16+
local r2_8 = import 'r2.8/targets.jsonnet';
1717

1818
// Add new versions here
1919
std.flattenArrays([
2020
nightly,
21-
r2_7,
21+
r2_8,
2222
])

0 commit comments

Comments
 (0)