We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d95cdb7 commit 7e840ffCopy full SHA for 7e840ff
assets/tldr/teaser.ipynb
@@ -48,9 +48,8 @@
48
"with_torch_launch = \"WORLD_SIZE\" in os.environ\n",
49
"\n",
50
"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"
+ " VERSION = !curl -s https://api.github.com/repos/pytorch/xla/releases/latest | grep -Po '\"tag_name\": \"v\\K.*?(?=\")'\n",
+ " !pip install cloud-tpu-client==0.10 https://storage.googleapis.com/tpu-pytorch/wheels/torch_xla-{VERSION[0]}-cp37-cp37m-linux_x86_64.whl"
54
]
55
},
56
{
@@ -485,4 +484,4 @@
485
484
486
"nbformat": 4,
487
"nbformat_minor": 4
488
-}
+}
0 commit comments