Skip to content

Commit 88a8c2d

Browse files
committed
fixes
1 parent 59bf94b commit 88a8c2d

File tree

2 files changed

+7
-23
lines changed

2 files changed

+7
-23
lines changed

notebooks/ace-step-music-generation/ace-step-music-generation.ipynb

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -100,25 +100,13 @@
100100
"\n",
101101
"from pip_helper import pip_install\n",
102102
"\n",
103-
"# pip_install(\n",
104-
"# \"-U\",\n",
105-
"# \"torch>=2.1\",\n",
106-
"# \"torchvision\",\n",
107-
"# \"torchaudio\",\n",
108-
"# \"--extra-index-url\",\n",
109-
"# \"https://download.pytorch.org/whl/cpu\",\n",
110-
"# )\n",
111-
"pip_install(\n",
112-
" \"gradio>=4.19\"\n",
113-
")\n",
103+
"pip_install(\"gradio>=4.19\")\n",
114104
"if platform.system() == \"Darwin\":\n",
115105
" pip_install(\"numpy<2.0\")\n",
116106
"\n",
117107
"pip_install(\n",
118108
" \"git+https://github.com/ace-step/ACE-Step.git@6ae0852b1388de6dc0cca26b31a86d711f723cb3\", \"--extra-index-url\", \"https://download.pytorch.org/whl/cpu\"\n",
119109
")\n",
120-
"# if platform.system() == \"Darwin\":\n",
121-
"# pip_install(\"-U\", \"transformers>=4.51\")\n",
122110
"\n",
123111
"pip_install(\"openvino>=2025.1.0\", \"openvino-tokenizers>=2025.1.0\", \"nncf>=2.16.0\")\n",
124112
"\n",
@@ -390,7 +378,7 @@
390378
},
391379
{
392380
"cell_type": "code",
393-
"execution_count": 9,
381+
"execution_count": null,
394382
"id": "f9db0d8a",
395383
"metadata": {},
396384
"outputs": [
@@ -422,14 +410,16 @@
422410
"import nncf\n",
423411
"from ov_ace_helper import convert_models\n",
424412
"\n",
413+
"ov_converted_model_dir = \"ov_models\"\n",
425414
"if model_format.value == \"INT4\":\n",
426415
" weights_compression_config = {\"mode\": nncf.CompressWeightsMode.INT4_ASYM, \"group_size\": 128, \"ratio\": 0.8}\n",
416+
" ov_converted_model_dir += \"_int4\"\n",
427417
"elif model_format.value == \"INT8\":\n",
428418
" weights_compression_config = {\"mode\": nncf.CompressWeightsMode.INT8_ASYM}\n",
419+
" ov_converted_model_dir += \"_int8\"\n",
429420
"else:\n",
430421
" weights_compression_config = None\n",
431422
"\n",
432-
"ov_converted_model_dir = \"ov_models\"\n",
433423
"convert_models(pipeline, model_dir=ov_converted_model_dir, orig_checkpoint_path=checkpoint_dir, quantization_config=weights_compression_config)"
434424
]
435425
},
@@ -648,7 +638,7 @@
648638
"[back to top ⬆️](#Table-of-contents:)\n",
649639
"\n",
650640
"\n",
651-
"LoRA is a technique that allows to fine-tune large models with a small number of parameters. ACE Step support LoRA, more information about it can be find (here)[https://github.com/ace-step/ACE-Step?tab=readme-ov-file#-applications].\n",
641+
"LoRA is a technique that allows to fine-tune large models with a small number of parameters. ACE Step support LoRA, more information about it can be find [here](https://github.com/ace-step/ACE-Step?tab=readme-ov-file#-applications).\n",
652642
"\n",
653643
"Let's try LoRA. To use LoRA for ACE Step and OpenVINO, LoRA should be applied for the model and model should be converted to IR format."
654644
]

notebooks/ace-step-music-generation/gradio_helper.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -791,13 +791,7 @@ def make_demo(pipeline, data_sampler):
791791

792792
def update_audio_widget():
793793
options = ["Retake", "Repainting", "Edit", "Extend"]
794-
return widgets.ToggleButtons(
795-
options=options,
796-
description="Choose next operation with audio:",
797-
disabled=False,
798-
button_style="info",
799-
value="Repainting"
800-
)
794+
return widgets.ToggleButtons(options=options, description="Choose next operation with audio:", disabled=False, button_style="info", value="Repainting")
801795

802796

803797
def setup_update_audio_widgets(update_audio_widget):

0 commit comments

Comments
 (0)