Skip to content

Commit

Permalink
Clear cell outputs and update nncf version
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandr-mokrov committed Feb 7, 2025
1 parent 53fd759 commit 3f1e464
Showing 1 changed file with 5 additions and 31 deletions.
36 changes: 5 additions & 31 deletions notebooks/stable-diffusion-xl/stable-diffusion-xl.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"source": [
"%pip install -q --extra-index-url https://download.pytorch.org/whl/cpu \"torch>=2.1\" \"torchvision\" \"diffusers>=0.24.0\" \"invisible-watermark>=0.2.0\" \"transformers>=4.33.0\" \"accelerate\" \"onnx!=1.16.2\" \"peft>=0.6.2\"\n",
"%pip install -q \"git+https://github.com/huggingface/optimum-intel.git\"\n",
"%pip install -q \"gradio>=4.19\" \"nncf>=2.9.0\"\n",
"%pip install -q \"gradio>=4.19\" \"nncf>=2.15.0\"\n",
"%pip install -q -U --pre --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly \"openvino>=2024.5\" \"openvino-genai>=2024.5\""
]
},
Expand Down Expand Up @@ -338,18 +338,10 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"id": "fce224cb-0ccb-4aeb-b3c4-346dd7036015",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Closing server running on port: 7860\n"
]
}
],
"outputs": [],
"source": [
"demo.close()\n",
"text2image_pipe = None\n",
Expand Down Expand Up @@ -502,28 +494,10 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": null,
"id": "3cc2a9d6-4a39-4690-8089-fd47aecffea0",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Closing server running on port: 7860\n"
]
},
{
"data": {
"text/plain": [
"27145"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"demo.close()\n",
"del image2image_pipe\n",
Expand Down

0 comments on commit 3f1e464

Please sign in to comment.