Skip to content

Commit 9355954

Browse files
authored
fix nbs again gain (#157)
1 parent eae088b commit 9355954

File tree

3 files changed

+35
-46
lines changed

3 files changed

+35
-46
lines changed

examples/cuda_e2e.ipynb

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -34,34 +34,29 @@
3434
"source": [
3535
"import os\n",
3636
"BRANCH = os.getenv(\"BRANCH\", \"main\")\n",
37-
"os.environ[\"SCRIPT_ADDRESS\"] = f\"https://raw.githubusercontent.com/makslevental/mlir-python-extras/refs/heads/{BRANCH}/scripts/get_latest_bindings.py\"\n",
38-
"!curl $SCRIPT_ADDRESS -o get_latest_bindings.py\n",
39-
"!latest_cuda_version=$(python get_latest_bindings.py \"cuda\") && pip install -q mlir_python_bindings==$latest_cuda_version -f https://makslevental.github.io/wheels\n",
40-
"!pip install -q git+https://github.com/makslevental/mlir-python-extras@$BRANCH"
37+
"os.environ[\"SCRIPT_ADDRESS\"] = f\"https://raw.githubusercontent.com/makslevental/mlir-python-extras/refs/heads/{BRANCH}/scripts/get_latest_bindings.py\""
4138
],
4239
"metadata": {
4340
"colab": {
4441
"base_uri": "https://localhost:8080/"
4542
},
4643
"id": "Xh-QUDWiX-FD",
47-
"outputId": "6865a63a-daa4-4610-e33a-721d37c0211f",
48-
"ExecuteTime": {
49-
"end_time": "2025-05-15T22:44:10.812357Z",
50-
"start_time": "2025-05-15T22:44:04.735503Z"
51-
}
44+
"outputId": "6865a63a-daa4-4610-e33a-721d37c0211f"
5245
},
53-
"outputs": [
54-
{
55-
"name": "stdout",
56-
"output_type": "stream",
57-
"text": [
58-
" % Total % Received % Xferd Average Speed Time Time Time Current\r\n",
59-
" Dload Upload Total Spent Left Speed\r\n",
60-
"100 2421 100 2421 0 0 40214 0 --:--:-- --:--:-- --:--:-- 40350\r\n"
61-
]
62-
}
63-
],
64-
"execution_count": 9
46+
"outputs": [],
47+
"execution_count": null
48+
},
49+
{
50+
"metadata": {},
51+
"cell_type": "code",
52+
"outputs": [],
53+
"execution_count": null,
54+
"source": [
55+
"%%bash\n",
56+
"curl $SCRIPT_ADDRESS -o get_latest_bindings.py\n",
57+
"latest_cuda_version=$(python get_latest_bindings.py \"cuda\") && pip install -q mlir_python_bindings==$latest_cuda_version -f https://makslevental.github.io/wheels\n",
58+
"pip install -q git+https://github.com/makslevental/mlir-python-extras@$BRANCH"
59+
]
6560
},
6661
{
6762
"cell_type": "markdown",

examples/mlir_python_extras.ipynb

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,19 @@
2121
"# !pip install -q mlir-python-extras -f https://makslevental.github.io/wheels\n",
2222
"import os\n",
2323
"BRANCH = os.getenv(\"BRANCH\", \"main\")\n",
24-
"os.environ[\"SCRIPT_ADDRESS\"] = f\"https://raw.githubusercontent.com/makslevental/mlir-python-extras/refs/heads/{BRANCH}/scripts/get_latest_bindings.py\"\n",
25-
"!curl $SCRIPT_ADDRESS -o get_latest_bindings.py\n",
26-
"!latest_version=$(python get_latest_bindings.py \"none\") && pip install -q mlir_python_bindings==$latest_version -f https://makslevental.github.io/wheels\n",
27-
"!pip install -q git+https://github.com/makslevental/mlir-python-extras@$BRANCH"
24+
"os.environ[\"SCRIPT_ADDRESS\"] = f\"https://raw.githubusercontent.com/makslevental/mlir-python-extras/refs/heads/{BRANCH}/scripts/get_latest_bindings.py\""
25+
]
26+
},
27+
{
28+
"metadata": {},
29+
"cell_type": "code",
30+
"outputs": [],
31+
"execution_count": null,
32+
"source": [
33+
"%%bash\n",
34+
"curl $SCRIPT_ADDRESS -o get_latest_bindings.py\n",
35+
"latest_version=$(python get_latest_bindings.py \"none\") && pip install -q mlir_python_bindings==$latest_version -f https://makslevental.github.io/wheels\n",
36+
"pip install -q git+https://github.com/makslevental/mlir-python-extras@$BRANCH"
2837
]
2938
},
3039
{

examples/vectorization_e2e.ipynb

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,7 @@
3232
]
3333
},
3434
{
35-
"metadata": {
36-
"ExecuteTime": {
37-
"end_time": "2025-05-15T22:45:29.673103Z",
38-
"start_time": "2025-05-15T22:45:18.737745Z"
39-
}
40-
},
35+
"metadata": {},
4136
"cell_type": "code",
4237
"source": [
4338
"# if running by yourself, you can use this instead\n",
@@ -49,18 +44,8 @@
4944
"!latest_version=$(python get_latest_bindings.py \"none\") && pip install -q mlir_python_bindings==$latest_version -f https://makslevental.github.io/wheels\n",
5045
"!pip install -q git+https://github.com/makslevental/mlir-python-extras@$BRANCH\n"
5146
],
52-
"outputs": [
53-
{
54-
"name": "stdout",
55-
"output_type": "stream",
56-
"text": [
57-
" % Total % Received % Xferd Average Speed Time Time Time Current\r\n",
58-
" Dload Upload Total Spent Left Speed\r\n",
59-
"100 2421 100 2421 0 0 15636 0 --:--:-- --:--:-- --:--:-- 15720\r\n"
60-
]
61-
}
62-
],
63-
"execution_count": 1
47+
"outputs": [],
48+
"execution_count": null
6449
},
6550
{
6651
"metadata": {},
@@ -70,8 +55,6 @@
7055
{
7156
"metadata": {},
7257
"cell_type": "code",
73-
"outputs": [],
74-
"execution_count": null,
7558
"source": [
7659
"import numpy as np\n",
7760
"\n",
@@ -104,7 +87,9 @@
10487
"from mlir.extras.dialects.ext import transform\n",
10588
"from mlir.extras.runtime.passes import Pipeline, run_pipeline\n",
10689
"from mlir.extras.runtime.refbackend import LLVMJITBackend\n"
107-
]
90+
],
91+
"outputs": [],
92+
"execution_count": null
10893
},
10994
{
11095
"cell_type": "markdown",

0 commit comments

Comments
 (0)