Skip to content

Commit 2404c0b

Browse files
committed
Updated walkthrough notebook
Signed-off-by: Grace Sng <[email protected]>
1 parent 55a6310 commit 2404c0b

File tree

1 file changed

+52
-30
lines changed

1 file changed

+52
-30
lines changed

notebooks/walkthrough.ipynb

Lines changed: 52 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,52 @@
238238
}
239239
]
240240
},
241+
{
242+
"cell_type": "code",
243+
"source": [
244+
"pip install gpustat"
245+
],
246+
"metadata": {
247+
"colab": {
248+
"base_uri": "https://localhost:8080/"
249+
},
250+
"id": "pn7WLx36DpTg",
251+
"outputId": "8413ae67-ab22-4954-d671-4ddd4cc22381"
252+
},
253+
"execution_count": 23,
254+
"outputs": [
255+
{
256+
"output_type": "stream",
257+
"name": "stdout",
258+
"text": [
259+
"Collecting gpustat\n",
260+
" Downloading gpustat-1.1.1.tar.gz (98 kB)\n",
261+
"\u001b[?25l \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m0.0/98.1 kB\u001b[0m \u001b[31m?\u001b[0m eta \u001b[36m-:--:--\u001b[0m\r\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m98.1/98.1 kB\u001b[0m \u001b[31m9.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
262+
"\u001b[?25h Installing build dependencies ... \u001b[?25l\u001b[?25hdone\n",
263+
" Getting requirements to build wheel ... \u001b[?25l\u001b[?25hdone\n",
264+
" Preparing metadata (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n",
265+
"Collecting nvidia-ml-py>=11.450.129 (from gpustat)\n",
266+
" Downloading nvidia_ml_py-12.570.86-py3-none-any.whl.metadata (8.7 kB)\n",
267+
"Requirement already satisfied: psutil>=5.6.0 in /usr/local/lib/python3.11/dist-packages (from gpustat) (5.9.5)\n",
268+
"Collecting blessed>=1.17.1 (from gpustat)\n",
269+
" Downloading blessed-1.20.0-py2.py3-none-any.whl.metadata (13 kB)\n",
270+
"Requirement already satisfied: wcwidth>=0.1.4 in /usr/local/lib/python3.11/dist-packages (from blessed>=1.17.1->gpustat) (0.2.13)\n",
271+
"Requirement already satisfied: six>=1.9.0 in /usr/local/lib/python3.11/dist-packages (from blessed>=1.17.1->gpustat) (1.17.0)\n",
272+
"Downloading blessed-1.20.0-py2.py3-none-any.whl (58 kB)\n",
273+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m58.4/58.4 kB\u001b[0m \u001b[31m5.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
274+
"\u001b[?25hDownloading nvidia_ml_py-12.570.86-py3-none-any.whl (44 kB)\n",
275+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m44.4/44.4 kB\u001b[0m \u001b[31m4.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
276+
"\u001b[?25hBuilding wheels for collected packages: gpustat\n",
277+
" Building wheel for gpustat (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n",
278+
" Created wheel for gpustat: filename=gpustat-1.1.1-py3-none-any.whl size=26608 sha256=56886eeb00c620277ad48366e6f60b747bd7cd9ebb3da078c06e8b1eb030a6a6\n",
279+
" Stored in directory: /root/.cache/pip/wheels/c9/2b/d9/a0b77d6e8623ce6b5c73813af455a3ace394abfc2e8aef7ed6\n",
280+
"Successfully built gpustat\n",
281+
"Installing collected packages: nvidia-ml-py, blessed, gpustat\n",
282+
"Successfully installed blessed-1.20.0 gpustat-1.1.1 nvidia-ml-py-12.570.86\n"
283+
]
284+
}
285+
]
286+
},
241287
{
242288
"cell_type": "code",
243289
"execution_count": null,
@@ -262,23 +308,11 @@
262308
},
263309
{
264310
"cell_type": "code",
265-
"execution_count": 8,
311+
"execution_count": 24,
266312
"metadata": {
267-
"id": "GtLY4ihkJ5YR",
268-
"colab": {
269-
"base_uri": "https://localhost:8080/"
270-
},
271-
"outputId": "1e1e579c-c9fc-4fcc-fc97-f26821844b62"
313+
"id": "GtLY4ihkJ5YR"
272314
},
273-
"outputs": [
274-
{
275-
"output_type": "stream",
276-
"name": "stderr",
277-
"text": [
278-
"WARNING:guidance.models._model:gpustat is not installed, run `pip install gpustat` to collect GPU stats.\n"
279-
]
280-
}
281-
],
315+
"outputs": [],
282316
"source": [
283317
"from pywhyllm.suggesters.simple_model_suggester import SimpleModelSuggester\n",
284318
"modeler = SimpleModelSuggester('gpt-4')"
@@ -538,23 +572,11 @@
538572
},
539573
{
540574
"cell_type": "code",
541-
"execution_count": 18,
575+
"execution_count": 25,
542576
"metadata": {
543-
"id": "MNL9qLCNJ5YT",
544-
"colab": {
545-
"base_uri": "https://localhost:8080/"
546-
},
547-
"outputId": "bcb1f6e0-2937-439b-a3f0-0f4ec91567e6"
577+
"id": "MNL9qLCNJ5YT"
548578
},
549-
"outputs": [
550-
{
551-
"output_type": "stream",
552-
"name": "stderr",
553-
"text": [
554-
"WARNING:guidance.models._model:gpustat is not installed, run `pip install gpustat` to collect GPU stats.\n"
555-
]
556-
}
557-
],
579+
"outputs": [],
558580
"source": [
559581
"from pywhyllm.suggesters.simple_identification_suggester import SimpleIdentificationSuggester\n",
560582
"identifier = SimpleIdentificationSuggester('gpt-4')"

0 commit comments

Comments
 (0)