Skip to content

Commit 7077d40

Browse files
committed
Reconfigure JAX in Colab to use latest image.
PiperOrigin-RevId: 721679162 Change-Id: Ib15e5ff170687b2ef2fe2af206ebce4d9803b928
1 parent 4c821a3 commit 7077d40

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

gencast_mini_demo.ipynb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,21 @@
7575
"%pip install --upgrade https://github.com/deepmind/graphcast/archive/master.zip"
7676
]
7777
},
78+
{
79+
"cell_type": "code",
80+
"execution_count": null,
81+
"metadata": {
82+
"id": "HH8S9fND3KRB"
83+
},
84+
"outputs": [],
85+
"source": [
86+
"# @title Reconfigure jax if running on TPU.\n",
87+
"\n",
88+
"# This is required due to outdated jax and libtpu versions in Colab TPU images.\n",
89+
"%pip uninstall -y libtpu libtpu-nightly\n",
90+
"%pip install -U \"jax[tpu]\" -f https://storage.googleapis.com/jax-releases/libtpu_releases.html"
91+
]
92+
},
7893
{
7994
"cell_type": "code",
8095
"execution_count": null,

0 commit comments

Comments
 (0)