Skip to content

Commit

Permalink
update nncf in surya notebook (#2060)
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova authored May 31, 2024
1 parent 9814a71 commit 6494bbb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 53 deletions.
18 changes: 2 additions & 16 deletions notebooks/llm-chatbot/llm-chatbot.ipynb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"id": "50e1d1d5-3bdd-4224-9f93-bf5d9a83f424",
"metadata": {},
Expand Down Expand Up @@ -39,7 +38,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "5df233b0-0369-4fff-9952-7957a90394a5",
"metadata": {},
Expand Down Expand Up @@ -103,7 +101,7 @@
" r = requests.get(url=\"https://raw.githubusercontent.com/openvinotoolkit/openvino_notebooks/latest/utils/llm_config.py\")\n",
" with open(\"llm_config.py\", \"w\") as f:\n",
" f.write(r.text)\n",
"elif not os.islink(config_dst_path):\n",
"elif not os.path.islink(config_dst_path):\n",
" print(\"LLM config will be updated\")\n",
" if config_shared_path.exists():\n",
" shutil.copy(config_shared_path, config_dst_path)\n",
Expand All @@ -114,7 +112,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "81983176-e571-4652-ba21-4bd608c35146",
"metadata": {},
Expand Down Expand Up @@ -316,7 +313,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "62af3e8a-915a-49b4-8007-803777ba9eaf",
"metadata": {},
Expand All @@ -336,7 +332,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "13694bf8-ee7b-4186-a3e0-a8705be9733c",
"metadata": {},
Expand Down Expand Up @@ -441,7 +436,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "130a037a-7d98-4152-81ea-92ffb01da5a2",
"metadata": {},
Expand Down Expand Up @@ -588,11 +582,9 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "671a17d4",
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
Expand Down Expand Up @@ -630,7 +622,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "6d62f9f4-5434-4550-b372-c86b5a5089d5",
"metadata": {},
Expand Down Expand Up @@ -685,7 +676,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "c53001e7-615f-4eb5-b831-4e2b2ff32826",
"metadata": {
Expand Down Expand Up @@ -742,7 +732,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "f7f63327-f0f5-4e2d-bfc2-0f764f8c19a8",
"metadata": {},
Expand Down Expand Up @@ -890,7 +879,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "24d622d0-be46-47c0-a762-88cb50ab15a9",
"metadata": {},
Expand All @@ -907,7 +895,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "725544ea-05ec-40d7-bbbc-1dc87cf57d04",
"metadata": {},
Expand Down Expand Up @@ -1340,7 +1327,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "d69ca0a2",
"metadata": {},
Expand All @@ -1367,7 +1353,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.8.10"
},
"openvino_notebooks": {
"imageUrl": "https://user-images.githubusercontent.com/29454499/255799218-611e7189-8979-4ef5-8a80-5a75e0136b50.png",
Expand Down
24 changes: 2 additions & 22 deletions notebooks/llm-rag-langchain/llm-rag-langchain.ipynb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"id": "02a561f4",
"metadata": {},
Expand Down Expand Up @@ -45,7 +44,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "7c09cb8f",
"metadata": {},
Expand Down Expand Up @@ -122,7 +120,7 @@
" r = requests.get(url=\"https://raw.githubusercontent.com/openvinotoolkit/openvino_notebooks/latest/utils/llm_config.py\")\n",
" with open(\"llm_config.py\", \"w\") as f:\n",
" f.write(r.text)\n",
"elif not os.islink(config_dst_path):\n",
"elif not os.path.islink(config_dst_path):\n",
" print(\"LLM config will be updated\")\n",
" if config_shared_path.exists():\n",
" shutil.copy(config_shared_path, config_dst_path)\n",
Expand All @@ -146,7 +144,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "c8e7965f",
"metadata": {},
Expand Down Expand Up @@ -197,7 +194,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "b51ff5a9",
"metadata": {},
Expand Down Expand Up @@ -305,7 +301,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "5d370f13",
"metadata": {},
Expand All @@ -322,7 +317,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "6337eab8",
"metadata": {},
Expand Down Expand Up @@ -549,7 +543,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "f1d1d1a2",
"metadata": {},
Expand Down Expand Up @@ -586,7 +579,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "4f943465",
"metadata": {},
Expand Down Expand Up @@ -653,7 +645,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "b2fbc403-1cac-4864-8965-ad2fea0fd1ca",
"metadata": {},
Expand All @@ -676,7 +667,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "a2d818f0",
"metadata": {},
Expand Down Expand Up @@ -741,7 +731,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "400dbff2-9915-4df0-a1ef-01cda3543b27",
"metadata": {},
Expand All @@ -764,7 +753,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "749b5bbd",
"metadata": {},
Expand Down Expand Up @@ -838,7 +826,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "81b2644c",
"metadata": {},
Expand Down Expand Up @@ -900,7 +887,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "ef31656a",
"metadata": {},
Expand Down Expand Up @@ -962,7 +948,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "bc225391",
"metadata": {},
Expand Down Expand Up @@ -1039,7 +1024,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "d1a1fd58",
"metadata": {},
Expand Down Expand Up @@ -1082,7 +1066,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "79fe990a",
"metadata": {},
Expand Down Expand Up @@ -1136,7 +1119,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "20fcc33c",
"metadata": {},
Expand Down Expand Up @@ -1216,7 +1198,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "4fb8b0e4",
"metadata": {},
Expand Down Expand Up @@ -1342,7 +1323,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "602f8ebd-789c-4eb2-b54d-b23d8f1d8e7b",
"metadata": {},
Expand Down Expand Up @@ -1841,7 +1821,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.8.10"
},
"openvino_notebooks": {
"imageUrl": "https://github.com/openvinotoolkit/openvino_notebooks/assets/29454499/304aa048-f10c-41c6-bb31-6d2bfdf49cf5",
Expand Down
Loading

0 comments on commit 6494bbb

Please sign in to comment.