Skip to content

Commit 445cf9c

Browse files
authored
[samples] Install iree-turbine nightly wheels in Colab notebooks (#24222)
The latest published iree-turbine wheel on `PyPI` (`v3.9.0, 2025-11-25`) calls the removed static method `RankedTensorType.isinstance(x)`, which was dropped from the MLIR Python bindings in `iree-base-compiler 3.11.0` (released `2026-03-20`). This has broken the nightly samples workflow since `2026-03-20`. The fix already landed on iree-turbine main in commit [/dc5ce4aa](iree-org/iree-turbine@dc5ce4a) but no PyPI release has been cut since. The revision just uses the nightly wheels which as the same as the IREE setup in colab notebooks. Signed-off-by: hanhanW <hanhan0912@gmail.com>
1 parent 4b41063 commit 445cf9c

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

samples/colab/pytorch_aot_advanced.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
],
151151
"source": [
152152
"#@title Install iree-turbine\n",
153-
"!python -m pip install iree-turbine"
153+
"!python -m pip install --pre iree-turbine -f https://iree.dev/pip-release-links.html"
154154
]
155155
},
156156
{

samples/colab/pytorch_aot_simple.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
"source": [
152152
"#@title Install iree-turbine\n",
153153
"\n",
154-
"!python -m pip install iree-turbine"
154+
"!python -m pip install --pre iree-turbine -f https://iree.dev/pip-release-links.html"
155155
]
156156
},
157157
{

samples/colab/pytorch_huggingface_whisper.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
}
174174
],
175175
"source": [
176-
"!python -m pip install iree-turbine"
176+
"!python -m pip install --pre iree-turbine -f https://iree.dev/pip-release-links.html"
177177
]
178178
},
179179
{

samples/colab/pytorch_jit.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
],
149149
"source": [
150150
"#@title Install iree-turbine\n",
151-
"!python -m pip install iree-turbine"
151+
"!python -m pip install --pre iree-turbine -f https://iree.dev/pip-release-links.html"
152152
]
153153
},
154154
{

0 commit comments

Comments
 (0)