Skip to content

Commit 7e840ff

Browse files
authored
[skip ci] Updated nightly to latest stable pytorch-xla in teaser notebook (pytorch#1990)
* [skip ci] Updated nightly to stable pytorch-xla in teaser notebook * [skip ci] Updated nightly to stable pytorch-xla in teaser notebook * [skip ci] Updated nightly to latest stable pytorch-xla in teaser notebook
1 parent d95cdb7 commit 7e840ff

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

assets/tldr/teaser.ipynb

+3-4
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@
4848
"with_torch_launch = \"WORLD_SIZE\" in os.environ\n",
4949
"\n",
5050
"if in_colab:\n",
51-
" VERSION = \"nightly\"\n",
52-
" !curl https://raw.githubusercontent.com/pytorch/xla/master/contrib/scripts/env-setup.py -o pytorch-xla-env-setup.py\n",
53-
" !python pytorch-xla-env-setup.py --version $VERSION"
51+
" VERSION = !curl -s https://api.github.com/repos/pytorch/xla/releases/latest | grep -Po '\"tag_name\": \"v\\K.*?(?=\")'\n",
52+
" !pip install cloud-tpu-client==0.10 https://storage.googleapis.com/tpu-pytorch/wheels/torch_xla-{VERSION[0]}-cp37-cp37m-linux_x86_64.whl"
5453
]
5554
},
5655
{
@@ -485,4 +484,4 @@
485484
},
486485
"nbformat": 4,
487486
"nbformat_minor": 4
488-
}
487+
}

0 commit comments

Comments
 (0)