Skip to content

Commit be2dbf5

Browse files
committed
debug triton install outetts
1 parent 3bbfd41 commit be2dbf5

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

.ci/ignore_treon_docker.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,5 @@ notebooks/multilora-image-generation/multilora-image-generation.ipynb
8383
notebooks/llm-agent-react/llm-agent-react-langchain.ipynb
8484
notebooks/multimodal-rag/multimodal-rag-llamaindex.ipynb
8585
notebooks/llm-rag-langchain/llm-rag-langchain-genai.ipynb
86-
notebooks/ltx-video/ltx-video.ipynb
86+
notebooks/ltx-video/ltx-video.ipynb
87+
notebooks/outetts-text-to-speech/outetts-text-to-speech.ipynb

notebooks/outetts-text-to-speech/outetts-text-to-speech.ipynb

+19-13
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,28 @@
5151
"outputs": [],
5252
"source": [
5353
"import platform\n",
54+
"import requests\n",
55+
"from pathlib import Path\n",
56+
"\n",
57+
"utility_files = [\"cmd_helper.py\", \"notebook_utils.py\", \"pip_helper.py\"]\n",
58+
"base_utility_url = \"https://raw.githubusercontent.com/openvinotoolkit/openvino_notebooks/latest/utils/\"\n",
59+
"\n",
60+
"for utility_file in utility_files:\n",
61+
" if not Path(utility_file).exists():\n",
62+
" r = requests.get(base_utility_url + utility_file)\n",
63+
" with Path(utility_file).open(\"w\") as f:\n",
64+
" f.write(r.text)\n",
5465
"\n",
55-
"%pip install -q \"torch>=2.1\" \"torchaudio\" \"einops\" \"transformers>=4.46.1\" \"loguru\" \"inflect\" \"pesq\" \"torchcrepe\" \"natsort\" \"polars\" uroman mecab-python3 unidic-lite --extra-index-url https://download.pytorch.org/whl/cpu\n",
56-
"%pip install -q \"gradio>=4.19\" \"openvino>=2024.4.0\" \"tqdm\" \"pyyaml\" \"librosa\" \"soundfile\"\n",
57-
"%pip install -q \"git+https://github.com/huggingface/optimum-intel.git\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
66+
"\n",
67+
"from pip_helper import pip_install\n",
68+
"\n",
69+
"pip_install(\"torch>=2.1\", \"torchaudio\", \"einops\", \"transformers>=4.46.1\", \"loguru\", \"inflect\", \"pesq\", \"torchcrepe\",\n",
70+
" \"natsort\" \"polars\" \"uroman\", \"mecab-python3\" \"unidic-lite\", \"--extra-index-url\", \"https://download.pytorch.org/whl/cpu\")\n",
71+
"pip_install(\"gradio>=4.19\", \"openvino>=2024.4.0\", \"tqdm\", \"pyyaml\", \"librosa\", \"soundfile\")\n",
72+
"pip_install(\"git+https://github.com/huggingface/optimum-intel.git\", \"--extra-index-url\", \"https://download.pytorch.org/whl/cpu\")\n",
5873
"\n",
5974
"if platform.system() == \"Darwin\":\n",
60-
" %pip install -q \"numpy<2.0.0\""
75+
" pip_install(\"numpy<2.0.0\")"
6176
]
6277
},
6378
{
@@ -69,15 +84,6 @@
6984
"import requests\n",
7085
"from pathlib import Path\n",
7186
"\n",
72-
"utility_files = [\"cmd_helper.py\", \"notebook_utils.py\"]\n",
73-
"base_utility_url = \"https://raw.githubusercontent.com/openvinotoolkit/openvino_notebooks/latest/utils/\"\n",
74-
"\n",
75-
"for utility_file in utility_files:\n",
76-
" if not Path(utility_file).exists():\n",
77-
" r = requests.get(base_utility_url + utility_file)\n",
78-
" with Path(utility_file).open(\"w\") as f:\n",
79-
" f.write(r.text)\n",
80-
"\n",
8187
"\n",
8288
"helper_files = [\"gradio_helper.py\", \"ov_outetts_helper.py\"]\n",
8389
"base_helper_url = \"https://raw.githubusercontent.com/openvinotoolkit/openvino_notebooks/latest/notebooks/outetts-text-to-speech\"\n",

0 commit comments

Comments
 (0)