Skip to content

Commit 15617b1

Browse files
Merge branch 'latest' into latest
2 parents 582ac62 + f0183e3 commit 15617b1

File tree

6 files changed

+378
-6
lines changed

6 files changed

+378
-6
lines changed

.ci/check_links.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"https://llama.meta.com/llama3",
2222
"wikipedia.org",
2323
"https://huggingface.co",
24+
"https://monai.io/",
2425
]
2526

2627

notebooks/README.md

Lines changed: 350 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@
105105
" pip_install(\"numpy<2.0\")\n",
106106
"\n",
107107
"pip_install(\n",
108-
" \"git+https://github.com/ace-step/ACE-Step.git@6ae0852b1388de6dc0cca26b31a86d711f723cb3\", \"--extra-index-url\", \"https://download.pytorch.org/whl/cpu\"\n",
108+
" \"git+https://github.com/ace-step/ACE-Step.git@6ae0852b1388de6dc0cca26b31a86d711f723cb3\",\n",
109+
" \"torch>=2.2.2,<2.8\",\n",
110+
" \"--extra-index-url\",\n",
111+
" \"https://download.pytorch.org/whl/cpu\",\n",
109112
")\n",
110113
"\n",
111114
"pip_install(\"openvino>=2025.1.0\", \"openvino-tokenizers>=2025.1.0\", \"nncf>=2.16.0\")\n",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def load_models(self, ov_models_path: str = None, device: str = "CPU"):
522522
self.text_encoder_model = self.core.compile_model(ov_text_encoder_model, device)
523523

524524
ov_text_tokenizer_path = self.core.read_model(Path(ov_models_path, TOKENIZER_MODEL_NAME))
525-
self.text_tokenizer = self.core.compile_model(ov_text_tokenizer_path, device)
525+
self.text_tokenizer = self.core.compile_model(ov_text_tokenizer_path, "CPU") # tokenizer can only be inferred on CPU
526526

527527
self.music_dcae = MusicDCAEWrapper()
528528
self.music_dcae.dcae = OVWrapperAutoencoderDC.from_pretrained(self.core, ov_models_path, device)

notebooks/flux.1-kontext/flux.1-kontext.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@
8585
"pip_install(\n",
8686
" \"-q\",\n",
8787
" \"gradio>=4.19\",\n",
88-
" \"torch>=2.1\",\n",
89-
" \"transformers\",\n",
88+
" \"torch>=2.1,<2.9\",\n",
89+
" \"transformers==4.55.4\",\n",
9090
" \"nncf>=2.15.0\",\n",
9191
" \"opencv-python\",\n",
9292
" \"pillow\",\n",

notebooks/kokoro/kokoro.ipynb

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,26 @@
6767
"from pathlib import Path\n",
6868
"import requests\n",
6969
"\n",
70-
"%pip install -q \"kokoro>=0.8.2\" \"misaki[en]>=0.8.2\" soundfile \"transformers!=4.49.0\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
71-
"%pip install -q -U --pre \"openvino>=2025.1.0\" --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly\n",
70+
"if not Path(\"pip_helper.py\").exists():\n",
71+
" r = requests.get(\n",
72+
" url=\"https://raw.githubusercontent.com/openvinotoolkit/openvino_notebooks/latest/utils/pip_helper.py\",\n",
73+
" )\n",
74+
" open(\"pip_helper.py\", \"w\").write(r.text)\n",
75+
"\n",
76+
"from pip_helper import pip_install\n",
77+
"\n",
78+
"pip_install(\n",
79+
" \"-q\",\n",
80+
" \"kokoro>=0.8.2\",\n",
81+
" \"misaki[en]>=0.8.2\",\n",
82+
" \"soundfile\",\n",
83+
" \"transformers==4.53.3\",\n",
84+
" \"torch<2.9\",\n",
85+
" \"gradio>=4.19\",\n",
86+
" \"openvino>=2025.3.0\",\n",
87+
" \"--extra-index-url\",\n",
88+
" \"https://download.pytorch.org/whl/cpu\",\n",
89+
")\n",
7290
"\n",
7391
"if platform.system() == \"Darwin\":\n",
7492
" %pip install -q \"numpy<2.0\"\n",

0 commit comments

Comments
 (0)