@@ -18,22 +18,22 @@ local mixins = import 'templates/mixins.libsonnet';
1818local utils = import 'templates/utils.libsonnet' ;
1919local volumes = import 'templates/volumes.libsonnet' ;
2020
21- local rcVersion = 'rc5 ' ;
21+ local rcVersion = 'rc1 ' ;
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.
2525local 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.12 ' % {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}
0 commit comments