Skip to content

Commit

Permalink
[torch_xla] Test 2.6rc3 wheel against 2.6rc3 tag (#530)
Browse files Browse the repository at this point in the history
And when we cut the next rc wheel, it will also use the corresponding
tag.
  • Loading branch information
tengyifei authored Jan 9, 2025
1 parent 076f56e commit 738dc43
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions dags/legacy_test/tests/pytorch/r2.6/common.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ local mixins = import 'templates/mixins.libsonnet';
local utils = import 'templates/utils.libsonnet';
local volumes = import 'templates/volumes.libsonnet';

local rcVersion = 'rc3';

{
local r2_6 = {
frameworkPrefix: 'pt-2-6',
tpuSettings+: {
softwareVersion: 'tpu-ubuntu2204-base',
},
imageTag: 'r2.6.0-rc3_3.10',
imageTag: 'r2.6.0-%(rc)s_3.10' % {rc: rcVersion},
},
PyTorchTest:: common.PyTorchTest + r2_6 {
local config = self,
Expand Down Expand Up @@ -106,13 +108,13 @@ local volumes = import 'templates/volumes.libsonnet';
pip install torch==2.6 --index-url https://download.pytorch.org/whl/test/cpu
# torchvision commit reference: https://github.com/pytorch/pytorch/blob/release/2.6/.github/ci_commit_pins/vision.txt
pip install --user --no-use-pep517 "git+https://github.com/pytorch/vision.git@d23a6e1664d20707c11781299611436e1f0c104f"
pip install https://storage.googleapis.com/pytorch-xla-releases/wheels/tpuvm/torch_xla-2.6.0rc3-cp310-cp310-manylinux_2_28_x86_64.whl
pip install https://storage.googleapis.com/pytorch-xla-releases/wheels/tpuvm/torch_xla-2.6.0%(rc)s-cp310-cp310-manylinux_2_28_x86_64.whl
pip install torch_xla[tpu] -f https://storage.googleapis.com/libtpu-releases/index.html -f https://storage.googleapis.com/libtpu-wheels/index.html
pip install pillow
git clone --depth=1 https://github.com/pytorch/pytorch.git
cd pytorch
git clone -b r2.6 https://github.com/pytorch/xla.git
|||,
git clone -b v2.6.0-%(rc)s https://github.com/pytorch/xla.git
||| % {rc: rcVersion},
},
podTemplate+:: {
spec+: {
Expand Down Expand Up @@ -149,16 +151,16 @@ local volumes = import 'templates/volumes.libsonnet';
pip uninstall -y torch torchvision
pip install torch==2.6 --index-url https://download.pytorch.org/whl/test/cpu
pip install --user --no-use-pep517 "git+https://github.com/pytorch/vision.git@d23a6e1664d20707c11781299611436e1f0c104f"
pip install https://storage.googleapis.com/pytorch-xla-releases/wheels/tpuvm/torch_xla-2.6.0rc3-cp310-cp310-manylinux_2_28_x86_64.whl
pip install https://storage.googleapis.com/pytorch-xla-releases/wheels/tpuvm/torch_xla-2.6.0%(rc)s-cp310-cp310-manylinux_2_28_x86_64.whl
mkdir -p pytorch/xla
git clone -b r2.6 https://github.com/pytorch/xla.git pytorch/xla
git clone -b v2.6.0-%(rc)s https://github.com/pytorch/xla.git pytorch/xla
%s
%(cmd)s
# Run whatever is in `command` here
"${@:0}"
||| % config.tpuSettings.tpuVmExports,
||| % {cmd: config.tpuSettings.tpuVmExports, rc: rcVersion},
],
command: [
'torchrun',
Expand Down

0 comments on commit 738dc43

Please sign in to comment.