Spaces:
Build error
Build error
Upload 3 files
Browse files- MusicGen_Gradio_Demo_v1_2_0.ipynb +759 -0
- main.py +64 -0
- requirements.txt +34 -0
MusicGen_Gradio_Demo_v1_2_0.ipynb
ADDED
@@ -0,0 +1,759 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "markdown",
|
5 |
+
"metadata": {
|
6 |
+
"id": "efhHAvBOgMnL"
|
7 |
+
},
|
8 |
+
"source": [
|
9 |
+
"# MusicGen Gradio Demo\n",
|
10 |
+
"\n",
|
11 |
+
"Execute the first cell to install, the second one to run the demo.\n",
|
12 |
+
"\n",
|
13 |
+
"More info on our repository [facebookresearch/audiocraft](https://github.com/facebookresearch/audiocraft/) or our [research paper](https://arxiv.org/abs/2306.05284).\n",
|
14 |
+
"\n",
|
15 |
+
"First eval with a model will be slower because of the model download. Melody model should take 30 seconds for 15 seconds of audio."
|
16 |
+
]
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"cell_type": "code",
|
20 |
+
"execution_count": 4,
|
21 |
+
"metadata": {
|
22 |
+
"colab": {
|
23 |
+
"base_uri": "https://localhost:8080/"
|
24 |
+
},
|
25 |
+
"id": "NJXpj7lyYjve",
|
26 |
+
"outputId": "b3b9cf14-0319-411d-ff3f-64a7cc83c377"
|
27 |
+
},
|
28 |
+
"outputs": [
|
29 |
+
{
|
30 |
+
"name": "stdout",
|
31 |
+
"output_type": "stream",
|
32 |
+
"text": [
|
33 |
+
"Running stage git clone\n",
|
34 |
+
"Running stage pip install\n",
|
35 |
+
"Stage pip install failed, this is NOT expected, see logs hereafter.\n",
|
36 |
+
"DEPRECATION: Loading egg at /opt/homebrew/lib/python3.11/site-packages/twisted-23.10.0-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation. Discussion can be found at https://github.com/pypa/pip/issues/12330\n",
|
37 |
+
"Obtaining file:///Users/eemanmajumder/code_shit/sunnai/content/audiocraft\n",
|
38 |
+
" Preparing metadata (setup.py): started\n",
|
39 |
+
" Preparing metadata (setup.py): finished with status 'done'\n",
|
40 |
+
"Collecting av==11.0.0 (from audiocraft==1.4.0a1)\n",
|
41 |
+
" Downloading av-11.0.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (4.5 kB)\n",
|
42 |
+
"Requirement already satisfied: einops in /opt/homebrew/lib/python3.11/site-packages (from audiocraft==1.4.0a1) (0.6.1)\n",
|
43 |
+
"Collecting flashy>=0.0.1 (from audiocraft==1.4.0a1)\n",
|
44 |
+
" Downloading flashy-0.0.2.tar.gz (72 kB)\n",
|
45 |
+
" Installing build dependencies: started\n",
|
46 |
+
" Installing build dependencies: finished with status 'done'\n",
|
47 |
+
" Getting requirements to build wheel: started\n",
|
48 |
+
" Getting requirements to build wheel: finished with status 'done'\n",
|
49 |
+
" Preparing metadata (pyproject.toml): started\n",
|
50 |
+
" Preparing metadata (pyproject.toml): finished with status 'done'\n",
|
51 |
+
"Collecting hydra-core>=1.1 (from audiocraft==1.4.0a1)\n",
|
52 |
+
" Downloading hydra_core-1.3.2-py3-none-any.whl.metadata (5.5 kB)\n",
|
53 |
+
"Collecting hydra_colorlog (from audiocraft==1.4.0a1)\n",
|
54 |
+
" Downloading hydra_colorlog-1.2.0-py3-none-any.whl.metadata (949 bytes)\n",
|
55 |
+
"Collecting julius (from audiocraft==1.4.0a1)\n",
|
56 |
+
" Downloading julius-0.2.7.tar.gz (59 kB)\n",
|
57 |
+
" Preparing metadata (setup.py): started\n",
|
58 |
+
" Preparing metadata (setup.py): finished with status 'done'\n",
|
59 |
+
"Collecting num2words (from audiocraft==1.4.0a1)\n",
|
60 |
+
" Downloading num2words-0.5.13-py3-none-any.whl.metadata (12 kB)\n",
|
61 |
+
"Requirement already satisfied: numpy<2.0.0 in /opt/homebrew/lib/python3.11/site-packages (from audiocraft==1.4.0a1) (1.26.4)\n",
|
62 |
+
"Requirement already satisfied: sentencepiece in /opt/homebrew/lib/python3.11/site-packages (from audiocraft==1.4.0a1) (0.1.99)\n",
|
63 |
+
"Collecting spacy>=3.6.1 (from audiocraft==1.4.0a1)\n",
|
64 |
+
" Downloading spacy-3.7.5-cp311-cp311-macosx_11_0_arm64.whl.metadata (27 kB)\n",
|
65 |
+
"Collecting torch==2.1.0 (from audiocraft==1.4.0a1)\n",
|
66 |
+
" Downloading torch-2.1.0-cp311-none-macosx_11_0_arm64.whl.metadata (24 kB)\n",
|
67 |
+
"Collecting torchaudio<2.1.2,>=2.0.0 (from audiocraft==1.4.0a1)\n",
|
68 |
+
" Downloading torchaudio-2.1.1-cp311-cp311-macosx_11_0_arm64.whl.metadata (6.4 kB)\n",
|
69 |
+
"Requirement already satisfied: huggingface_hub in /opt/homebrew/lib/python3.11/site-packages (from audiocraft==1.4.0a1) (0.22.2)\n",
|
70 |
+
"Requirement already satisfied: tqdm in /opt/homebrew/lib/python3.11/site-packages (from audiocraft==1.4.0a1) (4.65.0)\n",
|
71 |
+
"Requirement already satisfied: transformers>=4.31.0 in /opt/homebrew/lib/python3.11/site-packages (from audiocraft==1.4.0a1) (4.38.2)\n",
|
72 |
+
"Collecting xformers<0.0.23 (from audiocraft==1.4.0a1)\n",
|
73 |
+
" Downloading xformers-0.0.22.post7.tar.gz (3.8 MB)\n",
|
74 |
+
" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.8/3.8 MB 4.8 MB/s eta 0:00:00\n",
|
75 |
+
" Preparing metadata (setup.py): started\n",
|
76 |
+
" Preparing metadata (setup.py): finished with status 'done'\n",
|
77 |
+
"Collecting demucs (from audiocraft==1.4.0a1)\n",
|
78 |
+
" Downloading demucs-4.0.1.tar.gz (1.2 MB)\n",
|
79 |
+
" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 44.9 MB/s eta 0:00:00\n",
|
80 |
+
" Preparing metadata (setup.py): started\n",
|
81 |
+
" Preparing metadata (setup.py): finished with status 'done'\n",
|
82 |
+
"Collecting librosa (from audiocraft==1.4.0a1)\n",
|
83 |
+
" Downloading librosa-0.10.2.post1-py3-none-any.whl.metadata (8.6 kB)\n",
|
84 |
+
"Collecting soundfile (from audiocraft==1.4.0a1)\n",
|
85 |
+
" Downloading soundfile-0.12.1-py2.py3-none-macosx_11_0_arm64.whl.metadata (14 kB)\n",
|
86 |
+
"Requirement already satisfied: gradio in /opt/homebrew/lib/python3.11/site-packages (from audiocraft==1.4.0a1) (3.41.0)\n",
|
87 |
+
"Collecting torchmetrics (from audiocraft==1.4.0a1)\n",
|
88 |
+
" Downloading torchmetrics-1.4.0.post0-py3-none-any.whl.metadata (19 kB)\n",
|
89 |
+
"Collecting encodec (from audiocraft==1.4.0a1)\n",
|
90 |
+
" Downloading encodec-0.1.1.tar.gz (3.7 MB)\n",
|
91 |
+
" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.7/3.7 MB 31.5 MB/s eta 0:00:00\n",
|
92 |
+
" Preparing metadata (setup.py): started\n",
|
93 |
+
" Preparing metadata (setup.py): finished with status 'done'\n",
|
94 |
+
"Requirement already satisfied: protobuf in /opt/homebrew/lib/python3.11/site-packages (from audiocraft==1.4.0a1) (4.25.3)\n",
|
95 |
+
"Collecting torchvision==0.16.0 (from audiocraft==1.4.0a1)\n",
|
96 |
+
" Downloading torchvision-0.16.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (6.6 kB)\n",
|
97 |
+
"Collecting torchtext==0.16.0 (from audiocraft==1.4.0a1)\n",
|
98 |
+
" Downloading torchtext-0.16.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (7.5 kB)\n",
|
99 |
+
"Collecting pesq (from audiocraft==1.4.0a1)\n",
|
100 |
+
" Downloading pesq-0.0.4.tar.gz (38 kB)\n",
|
101 |
+
" Preparing metadata (setup.py): started\n",
|
102 |
+
" Preparing metadata (setup.py): finished with status 'done'\n",
|
103 |
+
"Collecting pystoi (from audiocraft==1.4.0a1)\n",
|
104 |
+
" Downloading pystoi-0.4.1-py2.py3-none-any.whl.metadata (4.0 kB)\n",
|
105 |
+
"Requirement already satisfied: filelock in /opt/homebrew/lib/python3.11/site-packages (from torch==2.1.0->audiocraft==1.4.0a1) (3.13.1)\n",
|
106 |
+
"Requirement already satisfied: typing-extensions in /opt/homebrew/lib/python3.11/site-packages (from torch==2.1.0->audiocraft==1.4.0a1) (4.10.0)\n",
|
107 |
+
"Requirement already satisfied: sympy in /opt/homebrew/lib/python3.11/site-packages (from torch==2.1.0->audiocraft==1.4.0a1) (1.12)\n",
|
108 |
+
"Requirement already satisfied: networkx in /opt/homebrew/lib/python3.11/site-packages (from torch==2.1.0->audiocraft==1.4.0a1) (3.2.1)\n",
|
109 |
+
"Requirement already satisfied: jinja2 in /opt/homebrew/lib/python3.11/site-packages (from torch==2.1.0->audiocraft==1.4.0a1) (3.1.3)\n",
|
110 |
+
"Requirement already satisfied: fsspec in /opt/homebrew/lib/python3.11/site-packages (from torch==2.1.0->audiocraft==1.4.0a1) (2023.10.0)\n",
|
111 |
+
"Requirement already satisfied: requests in /opt/homebrew/lib/python3.11/site-packages (from torchtext==0.16.0->audiocraft==1.4.0a1) (2.31.0)\n",
|
112 |
+
"Collecting torchdata==0.7.0 (from torchtext==0.16.0->audiocraft==1.4.0a1)\n",
|
113 |
+
" Downloading torchdata-0.7.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (13 kB)\n",
|
114 |
+
"Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in /opt/homebrew/lib/python3.11/site-packages (from torchvision==0.16.0->audiocraft==1.4.0a1) (10.0.0)\n",
|
115 |
+
"Requirement already satisfied: urllib3>=1.25 in /opt/homebrew/lib/python3.11/site-packages (from torchdata==0.7.0->torchtext==0.16.0->audiocraft==1.4.0a1) (1.26.6)\n",
|
116 |
+
"Collecting dora-search (from flashy>=0.0.1->audiocraft==1.4.0a1)\n",
|
117 |
+
" Downloading dora_search-0.1.12.tar.gz (87 kB)\n",
|
118 |
+
" Installing build dependencies: started\n",
|
119 |
+
" Installing build dependencies: finished with status 'done'\n",
|
120 |
+
" Getting requirements to build wheel: started\n",
|
121 |
+
" Getting requirements to build wheel: finished with status 'done'\n",
|
122 |
+
" Installing backend dependencies: started\n",
|
123 |
+
" Installing backend dependencies: finished with status 'done'\n",
|
124 |
+
" Preparing metadata (pyproject.toml): started\n",
|
125 |
+
" Preparing metadata (pyproject.toml): finished with status 'done'\n",
|
126 |
+
"Requirement already satisfied: colorlog in /opt/homebrew/lib/python3.11/site-packages (from flashy>=0.0.1->audiocraft==1.4.0a1) (6.8.2)\n",
|
127 |
+
"Requirement already satisfied: omegaconf<2.4,>=2.2 in /opt/homebrew/lib/python3.11/site-packages (from hydra-core>=1.1->audiocraft==1.4.0a1) (2.3.0)\n",
|
128 |
+
"Requirement already satisfied: antlr4-python3-runtime==4.9.* in /opt/homebrew/lib/python3.11/site-packages (from hydra-core>=1.1->audiocraft==1.4.0a1) (4.9.3)\n",
|
129 |
+
"Requirement already satisfied: packaging in /opt/homebrew/lib/python3.11/site-packages (from hydra-core>=1.1->audiocraft==1.4.0a1) (23.1)\n",
|
130 |
+
"Collecting spacy-legacy<3.1.0,>=3.0.11 (from spacy>=3.6.1->audiocraft==1.4.0a1)\n",
|
131 |
+
" Downloading spacy_legacy-3.0.12-py2.py3-none-any.whl.metadata (2.8 kB)\n",
|
132 |
+
"Collecting spacy-loggers<2.0.0,>=1.0.0 (from spacy>=3.6.1->audiocraft==1.4.0a1)\n",
|
133 |
+
" Downloading spacy_loggers-1.0.5-py3-none-any.whl.metadata (23 kB)\n",
|
134 |
+
"Collecting murmurhash<1.1.0,>=0.28.0 (from spacy>=3.6.1->audiocraft==1.4.0a1)\n",
|
135 |
+
" Downloading murmurhash-1.0.10-cp311-cp311-macosx_11_0_arm64.whl.metadata (2.0 kB)\n",
|
136 |
+
"Collecting cymem<2.1.0,>=2.0.2 (from spacy>=3.6.1->audiocraft==1.4.0a1)\n",
|
137 |
+
" Downloading cymem-2.0.8-cp311-cp311-macosx_11_0_arm64.whl.metadata (8.4 kB)\n",
|
138 |
+
"Collecting preshed<3.1.0,>=3.0.2 (from spacy>=3.6.1->audiocraft==1.4.0a1)\n",
|
139 |
+
" Downloading preshed-3.0.9-cp311-cp311-macosx_11_0_arm64.whl.metadata (2.2 kB)\n",
|
140 |
+
"Collecting thinc<8.3.0,>=8.2.2 (from spacy>=3.6.1->audiocraft==1.4.0a1)\n",
|
141 |
+
" Downloading thinc-8.2.5-cp311-cp311-macosx_11_0_arm64.whl.metadata (15 kB)\n",
|
142 |
+
"Collecting wasabi<1.2.0,>=0.9.1 (from spacy>=3.6.1->audiocraft==1.4.0a1)\n",
|
143 |
+
" Downloading wasabi-1.1.3-py3-none-any.whl.metadata (28 kB)\n",
|
144 |
+
"Collecting srsly<3.0.0,>=2.4.3 (from spacy>=3.6.1->audiocraft==1.4.0a1)\n",
|
145 |
+
" Downloading srsly-2.4.8-cp311-cp311-macosx_11_0_arm64.whl.metadata (20 kB)\n",
|
146 |
+
"Collecting catalogue<2.1.0,>=2.0.6 (from spacy>=3.6.1->audiocraft==1.4.0a1)\n",
|
147 |
+
" Downloading catalogue-2.0.10-py3-none-any.whl.metadata (14 kB)\n",
|
148 |
+
"Collecting weasel<0.5.0,>=0.1.0 (from spacy>=3.6.1->audiocraft==1.4.0a1)\n",
|
149 |
+
" Downloading weasel-0.4.1-py3-none-any.whl.metadata (4.6 kB)\n",
|
150 |
+
"Requirement already satisfied: typer<1.0.0,>=0.3.0 in /opt/homebrew/lib/python3.11/site-packages (from spacy>=3.6.1->audiocraft==1.4.0a1) (0.12.3)\n",
|
151 |
+
"Requirement already satisfied: pydantic!=1.8,!=1.8.1,<3.0.0,>=1.7.4 in /opt/homebrew/lib/python3.11/site-packages (from spacy>=3.6.1->audiocraft==1.4.0a1) (2.7.0)\n",
|
152 |
+
"Requirement already satisfied: setuptools in /opt/homebrew/lib/python3.11/site-packages (from spacy>=3.6.1->audiocraft==1.4.0a1) (69.2.0)\n",
|
153 |
+
"Collecting langcodes<4.0.0,>=3.2.0 (from spacy>=3.6.1->audiocraft==1.4.0a1)\n",
|
154 |
+
" Downloading langcodes-3.4.0-py3-none-any.whl.metadata (29 kB)\n",
|
155 |
+
"INFO: pip is looking at multiple versions of torchaudio to determine which version is compatible with other requirements. This could take a while.\n",
|
156 |
+
"Collecting torchaudio<2.1.2,>=2.0.0 (from audiocraft==1.4.0a1)\n",
|
157 |
+
" Downloading torchaudio-2.1.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (5.7 kB)\n",
|
158 |
+
"Requirement already satisfied: pyyaml>=5.1 in /opt/homebrew/lib/python3.11/site-packages (from transformers>=4.31.0->audiocraft==1.4.0a1) (6.0)\n",
|
159 |
+
"Requirement already satisfied: regex!=2019.12.17 in /opt/homebrew/lib/python3.11/site-packages (from transformers>=4.31.0->audiocraft==1.4.0a1) (2023.12.25)\n",
|
160 |
+
"Requirement already satisfied: tokenizers<0.19,>=0.14 in /opt/homebrew/lib/python3.11/site-packages (from transformers>=4.31.0->audiocraft==1.4.0a1) (0.15.2)\n",
|
161 |
+
"Requirement already satisfied: safetensors>=0.4.1 in /opt/homebrew/lib/python3.11/site-packages (from transformers>=4.31.0->audiocraft==1.4.0a1) (0.4.2)\n",
|
162 |
+
"Collecting lameenc>=1.2 (from demucs->audiocraft==1.4.0a1)\n",
|
163 |
+
" Downloading lameenc-1.7.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (803 bytes)\n",
|
164 |
+
"Collecting openunmix (from demucs->audiocraft==1.4.0a1)\n",
|
165 |
+
" Downloading openunmix-1.3.0-py3-none-any.whl.metadata (17 kB)\n",
|
166 |
+
"Requirement already satisfied: aiofiles<24.0,>=22.0 in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (23.2.1)\n",
|
167 |
+
"Requirement already satisfied: altair<6.0,>=4.2.0 in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (5.3.0)\n",
|
168 |
+
"Requirement already satisfied: fastapi in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (0.110.3)\n",
|
169 |
+
"Requirement already satisfied: ffmpy in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (0.3.2)\n",
|
170 |
+
"Requirement already satisfied: gradio-client==0.5.0 in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (0.5.0)\n",
|
171 |
+
"Requirement already satisfied: httpx in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (0.27.0)\n",
|
172 |
+
"Requirement already satisfied: importlib-resources<7.0,>=1.3 in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (6.3.1)\n",
|
173 |
+
"Requirement already satisfied: markupsafe~=2.0 in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (2.1.5)\n",
|
174 |
+
"Requirement already satisfied: matplotlib~=3.0 in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (3.8.3)\n",
|
175 |
+
"Requirement already satisfied: orjson~=3.0 in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (3.9.15)\n",
|
176 |
+
"Requirement already satisfied: pandas<3.0,>=1.0 in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (2.2.1)\n",
|
177 |
+
"Requirement already satisfied: pydub in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (0.25.1)\n",
|
178 |
+
"Requirement already satisfied: python-multipart in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (0.0.9)\n",
|
179 |
+
"Requirement already satisfied: semantic-version~=2.0 in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (2.10.0)\n",
|
180 |
+
"Requirement already satisfied: uvicorn>=0.14.0 in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (0.25.0)\n",
|
181 |
+
"Requirement already satisfied: websockets<12.0,>=10.0 in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (11.0.3)\n",
|
182 |
+
"Collecting audioread>=2.1.9 (from librosa->audiocraft==1.4.0a1)\n",
|
183 |
+
" Using cached audioread-3.0.1-py3-none-any.whl.metadata (8.4 kB)\n",
|
184 |
+
"Requirement already satisfied: scipy>=1.2.0 in /opt/homebrew/lib/python3.11/site-packages (from librosa->audiocraft==1.4.0a1) (1.12.0)\n",
|
185 |
+
"Requirement already satisfied: scikit-learn>=0.20.0 in /opt/homebrew/lib/python3.11/site-packages (from librosa->audiocraft==1.4.0a1) (1.3.0)\n",
|
186 |
+
"Requirement already satisfied: joblib>=0.14 in /opt/homebrew/lib/python3.11/site-packages (from librosa->audiocraft==1.4.0a1) (1.3.1)\n",
|
187 |
+
"Requirement already satisfied: decorator>=4.3.0 in /opt/homebrew/lib/python3.11/site-packages (from librosa->audiocraft==1.4.0a1) (4.4.2)\n",
|
188 |
+
"Collecting numba>=0.51.0 (from librosa->audiocraft==1.4.0a1)\n",
|
189 |
+
" Downloading numba-0.60.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (2.7 kB)\n",
|
190 |
+
"Collecting pooch>=1.1 (from librosa->audiocraft==1.4.0a1)\n",
|
191 |
+
" Downloading pooch-1.8.2-py3-none-any.whl.metadata (10 kB)\n",
|
192 |
+
"Collecting soxr>=0.3.2 (from librosa->audiocraft==1.4.0a1)\n",
|
193 |
+
" Downloading soxr-0.4.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (5.5 kB)\n",
|
194 |
+
"Requirement already satisfied: lazy-loader>=0.1 in /opt/homebrew/lib/python3.11/site-packages (from librosa->audiocraft==1.4.0a1) (0.3)\n",
|
195 |
+
"Collecting msgpack>=1.0 (from librosa->audiocraft==1.4.0a1)\n",
|
196 |
+
" Downloading msgpack-1.0.8-cp311-cp311-macosx_11_0_arm64.whl.metadata (9.1 kB)\n",
|
197 |
+
"Requirement already satisfied: cffi>=1.0 in /opt/homebrew/lib/python3.11/site-packages (from soundfile->audiocraft==1.4.0a1) (1.16.0)\n",
|
198 |
+
"Collecting docopt>=0.6.2 (from num2words->audiocraft==1.4.0a1)\n",
|
199 |
+
" Downloading docopt-0.6.2.tar.gz (25 kB)\n",
|
200 |
+
" Preparing metadata (setup.py): started\n",
|
201 |
+
" Preparing metadata (setup.py): finished with status 'done'\n",
|
202 |
+
"Collecting lightning-utilities>=0.8.0 (from torchmetrics->audiocraft==1.4.0a1)\n",
|
203 |
+
" Downloading lightning_utilities-0.11.6-py3-none-any.whl.metadata (5.2 kB)\n",
|
204 |
+
"Requirement already satisfied: jsonschema>=3.0 in /opt/homebrew/lib/python3.11/site-packages (from altair<6.0,>=4.2.0->gradio->audiocraft==1.4.0a1) (4.21.1)\n",
|
205 |
+
"Requirement already satisfied: toolz in /opt/homebrew/lib/python3.11/site-packages (from altair<6.0,>=4.2.0->gradio->audiocraft==1.4.0a1) (0.12.1)\n",
|
206 |
+
"Requirement already satisfied: pycparser in /opt/homebrew/lib/python3.11/site-packages (from cffi>=1.0->soundfile->audiocraft==1.4.0a1) (2.21)\n",
|
207 |
+
"Collecting language-data>=1.2 (from langcodes<4.0.0,>=3.2.0->spacy>=3.6.1->audiocraft==1.4.0a1)\n",
|
208 |
+
" Downloading language_data-1.2.0-py3-none-any.whl.metadata (4.3 kB)\n",
|
209 |
+
"Requirement already satisfied: contourpy>=1.0.1 in /opt/homebrew/lib/python3.11/site-packages (from matplotlib~=3.0->gradio->audiocraft==1.4.0a1) (1.2.0)\n",
|
210 |
+
"Requirement already satisfied: cycler>=0.10 in /opt/homebrew/lib/python3.11/site-packages (from matplotlib~=3.0->gradio->audiocraft==1.4.0a1) (0.12.1)\n",
|
211 |
+
"Requirement already satisfied: fonttools>=4.22.0 in /opt/homebrew/lib/python3.11/site-packages (from matplotlib~=3.0->gradio->audiocraft==1.4.0a1) (4.50.0)\n",
|
212 |
+
"Requirement already satisfied: kiwisolver>=1.3.1 in /opt/homebrew/lib/python3.11/site-packages (from matplotlib~=3.0->gradio->audiocraft==1.4.0a1) (1.4.5)\n",
|
213 |
+
"Requirement already satisfied: pyparsing>=2.3.1 in /opt/homebrew/lib/python3.11/site-packages (from matplotlib~=3.0->gradio->audiocraft==1.4.0a1) (3.1.2)\n",
|
214 |
+
"Requirement already satisfied: python-dateutil>=2.7 in /opt/homebrew/lib/python3.11/site-packages (from matplotlib~=3.0->gradio->audiocraft==1.4.0a1) (2.9.0.post0)\n",
|
215 |
+
"Collecting llvmlite<0.44,>=0.43.0dev0 (from numba>=0.51.0->librosa->audiocraft==1.4.0a1)\n",
|
216 |
+
" Downloading llvmlite-0.43.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (4.8 kB)\n",
|
217 |
+
"Requirement already satisfied: pytz>=2020.1 in /opt/homebrew/lib/python3.11/site-packages (from pandas<3.0,>=1.0->gradio->audiocraft==1.4.0a1) (2024.1)\n",
|
218 |
+
"Requirement already satisfied: tzdata>=2022.7 in /opt/homebrew/lib/python3.11/site-packages (from pandas<3.0,>=1.0->gradio->audiocraft==1.4.0a1) (2024.1)\n",
|
219 |
+
"Requirement already satisfied: platformdirs>=2.5.0 in /opt/homebrew/lib/python3.11/site-packages (from pooch>=1.1->librosa->audiocraft==1.4.0a1) (4.1.0)\n",
|
220 |
+
"Requirement already satisfied: annotated-types>=0.4.0 in /opt/homebrew/lib/python3.11/site-packages (from pydantic!=1.8,!=1.8.1,<3.0.0,>=1.7.4->spacy>=3.6.1->audiocraft==1.4.0a1) (0.6.0)\n",
|
221 |
+
"Requirement already satisfied: pydantic-core==2.18.1 in /opt/homebrew/lib/python3.11/site-packages (from pydantic!=1.8,!=1.8.1,<3.0.0,>=1.7.4->spacy>=3.6.1->audiocraft==1.4.0a1) (2.18.1)\n",
|
222 |
+
"Requirement already satisfied: charset-normalizer<4,>=2 in /opt/homebrew/lib/python3.11/site-packages (from requests->torchtext==0.16.0->audiocraft==1.4.0a1) (3.3.2)\n",
|
223 |
+
"Requirement already satisfied: idna<4,>=2.5 in /opt/homebrew/lib/python3.11/site-packages (from requests->torchtext==0.16.0->audiocraft==1.4.0a1) (3.6)\n",
|
224 |
+
"Requirement already satisfied: certifi>=2017.4.17 in /opt/homebrew/lib/python3.11/site-packages (from requests->torchtext==0.16.0->audiocraft==1.4.0a1) (2024.2.2)\n",
|
225 |
+
"Requirement already satisfied: threadpoolctl>=2.0.0 in /opt/homebrew/lib/python3.11/site-packages (from scikit-learn>=0.20.0->librosa->audiocraft==1.4.0a1) (3.3.0)\n",
|
226 |
+
"Collecting blis<0.8.0,>=0.7.8 (from thinc<8.3.0,>=8.2.2->spacy>=3.6.1->audiocraft==1.4.0a1)\n",
|
227 |
+
" Downloading blis-0.7.11-cp311-cp311-macosx_11_0_arm64.whl.metadata (7.4 kB)\n",
|
228 |
+
"Collecting confection<1.0.0,>=0.0.1 (from thinc<8.3.0,>=8.2.2->spacy>=3.6.1->audiocraft==1.4.0a1)\n",
|
229 |
+
" Downloading confection-0.1.5-py3-none-any.whl.metadata (19 kB)\n",
|
230 |
+
"Requirement already satisfied: click>=8.0.0 in /opt/homebrew/lib/python3.11/site-packages (from typer<1.0.0,>=0.3.0->spacy>=3.6.1->audiocraft==1.4.0a1) (8.1.7)\n",
|
231 |
+
"Requirement already satisfied: shellingham>=1.3.0 in /opt/homebrew/lib/python3.11/site-packages (from typer<1.0.0,>=0.3.0->spacy>=3.6.1->audiocraft==1.4.0a1) (1.5.4)\n",
|
232 |
+
"Requirement already satisfied: rich>=10.11.0 in /opt/homebrew/lib/python3.11/site-packages (from typer<1.0.0,>=0.3.0->spacy>=3.6.1->audiocraft==1.4.0a1) (13.7.1)\n",
|
233 |
+
"Requirement already satisfied: h11>=0.8 in /opt/homebrew/lib/python3.11/site-packages (from uvicorn>=0.14.0->gradio->audiocraft==1.4.0a1) (0.14.0)\n",
|
234 |
+
"Collecting cloudpathlib<1.0.0,>=0.7.0 (from weasel<0.5.0,>=0.1.0->spacy>=3.6.1->audiocraft==1.4.0a1)\n",
|
235 |
+
" Downloading cloudpathlib-0.18.1-py3-none-any.whl.metadata (14 kB)\n",
|
236 |
+
"Collecting smart-open<8.0.0,>=5.2.1 (from weasel<0.5.0,>=0.1.0->spacy>=3.6.1->audiocraft==1.4.0a1)\n",
|
237 |
+
" Downloading smart_open-7.0.4-py3-none-any.whl.metadata (23 kB)\n",
|
238 |
+
"Collecting retrying (from dora-search->flashy>=0.0.1->audiocraft==1.4.0a1)\n",
|
239 |
+
" Downloading retrying-1.3.4-py3-none-any.whl.metadata (6.9 kB)\n",
|
240 |
+
"Collecting submitit (from dora-search->flashy>=0.0.1->audiocraft==1.4.0a1)\n",
|
241 |
+
" Downloading submitit-1.5.1-py3-none-any.whl.metadata (8.0 kB)\n",
|
242 |
+
"Collecting treetable (from dora-search->flashy>=0.0.1->audiocraft==1.4.0a1)\n",
|
243 |
+
" Downloading treetable-0.2.5.tar.gz (10 kB)\n",
|
244 |
+
" Preparing metadata (setup.py): started\n",
|
245 |
+
" Preparing metadata (setup.py): finished with status 'done'\n",
|
246 |
+
"Requirement already satisfied: starlette<0.38.0,>=0.37.2 in /opt/homebrew/lib/python3.11/site-packages (from fastapi->gradio->audiocraft==1.4.0a1) (0.37.2)\n",
|
247 |
+
"Requirement already satisfied: anyio in /opt/homebrew/lib/python3.11/site-packages (from httpx->gradio->audiocraft==1.4.0a1) (3.7.1)\n",
|
248 |
+
"Requirement already satisfied: httpcore==1.* in /opt/homebrew/lib/python3.11/site-packages (from httpx->gradio->audiocraft==1.4.0a1) (1.0.5)\n",
|
249 |
+
"Requirement already satisfied: sniffio in /opt/homebrew/lib/python3.11/site-packages (from httpx->gradio->audiocraft==1.4.0a1) (1.3.1)\n",
|
250 |
+
"Requirement already satisfied: mpmath>=0.19 in /opt/homebrew/lib/python3.11/site-packages (from sympy->torch==2.1.0->audiocraft==1.4.0a1) (1.3.0)\n",
|
251 |
+
"Requirement already satisfied: attrs>=22.2.0 in /opt/homebrew/lib/python3.11/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio->audiocraft==1.4.0a1) (23.2.0)\n",
|
252 |
+
"Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /opt/homebrew/lib/python3.11/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio->audiocraft==1.4.0a1) (2023.12.1)\n",
|
253 |
+
"Requirement already satisfied: referencing>=0.28.4 in /opt/homebrew/lib/python3.11/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio->audiocraft==1.4.0a1) (0.34.0)\n",
|
254 |
+
"Requirement already satisfied: rpds-py>=0.7.1 in /opt/homebrew/lib/python3.11/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio->audiocraft==1.4.0a1) (0.18.0)\n",
|
255 |
+
"Collecting marisa-trie>=0.7.7 (from language-data>=1.2->langcodes<4.0.0,>=3.2.0->spacy>=3.6.1->audiocraft==1.4.0a1)\n",
|
256 |
+
" Downloading marisa_trie-1.2.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (8.7 kB)\n",
|
257 |
+
"Requirement already satisfied: six>=1.5 in /Users/eemanmajumder/Library/Python/3.11/lib/python/site-packages (from python-dateutil>=2.7->matplotlib~=3.0->gradio->audiocraft==1.4.0a1) (1.16.0)\n",
|
258 |
+
"Requirement already satisfied: markdown-it-py>=2.2.0 in /opt/homebrew/lib/python3.11/site-packages (from rich>=10.11.0->typer<1.0.0,>=0.3.0->spacy>=3.6.1->audiocraft==1.4.0a1) (3.0.0)\n",
|
259 |
+
"Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /opt/homebrew/lib/python3.11/site-packages (from rich>=10.11.0->typer<1.0.0,>=0.3.0->spacy>=3.6.1->audiocraft==1.4.0a1) (2.17.2)\n",
|
260 |
+
"Requirement already satisfied: wrapt in /opt/homebrew/lib/python3.11/site-packages (from smart-open<8.0.0,>=5.2.1->weasel<0.5.0,>=0.1.0->spacy>=3.6.1->audiocraft==1.4.0a1) (1.16.0)\n",
|
261 |
+
"Requirement already satisfied: cloudpickle>=1.2.1 in /opt/homebrew/lib/python3.11/site-packages (from submitit->dora-search->flashy>=0.0.1->audiocraft==1.4.0a1) (3.0.0)\n",
|
262 |
+
"Requirement already satisfied: mdurl~=0.1 in /opt/homebrew/lib/python3.11/site-packages (from markdown-it-py>=2.2.0->rich>=10.11.0->typer<1.0.0,>=0.3.0->spacy>=3.6.1->audiocraft==1.4.0a1) (0.1.2)\n",
|
263 |
+
"Downloading av-11.0.0-cp311-cp311-macosx_11_0_arm64.whl (20.5 MB)\n",
|
264 |
+
" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 20.5/20.5 MB 11.6 MB/s eta 0:00:00\n",
|
265 |
+
"Downloading torch-2.1.0-cp311-none-macosx_11_0_arm64.whl (59.6 MB)\n",
|
266 |
+
" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.6/59.6 MB 21.1 MB/s eta 0:00:00\n",
|
267 |
+
"Downloading torchtext-0.16.0-cp311-cp311-macosx_11_0_arm64.whl (2.1 MB)\n",
|
268 |
+
" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 3.8 MB/s eta 0:00:00\n",
|
269 |
+
"Downloading torchvision-0.16.0-cp311-cp311-macosx_11_0_arm64.whl (1.6 MB)\n",
|
270 |
+
" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 4.8 MB/s eta 0:00:00\n",
|
271 |
+
"Downloading torchdata-0.7.0-cp311-cp311-macosx_11_0_arm64.whl (1.7 MB)\n",
|
272 |
+
" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 5.6 MB/s eta 0:00:00\n",
|
273 |
+
"Downloading hydra_core-1.3.2-py3-none-any.whl (154 kB)\n",
|
274 |
+
"Downloading spacy-3.7.5-cp311-cp311-macosx_11_0_arm64.whl (6.5 MB)\n",
|
275 |
+
" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.5/6.5 MB 34.8 MB/s eta 0:00:00\n",
|
276 |
+
"Downloading torchaudio-2.1.0-cp311-cp311-macosx_11_0_arm64.whl (1.7 MB)\n",
|
277 |
+
" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 32.9 MB/s eta 0:00:00\n",
|
278 |
+
"Downloading hydra_colorlog-1.2.0-py3-none-any.whl (3.6 kB)\n",
|
279 |
+
"Downloading librosa-0.10.2.post1-py3-none-any.whl (260 kB)\n",
|
280 |
+
"Using cached soundfile-0.12.1-py2.py3-none-macosx_11_0_arm64.whl (1.1 MB)\n",
|
281 |
+
"Downloading num2words-0.5.13-py3-none-any.whl (143 kB)\n",
|
282 |
+
"Downloading pystoi-0.4.1-py2.py3-none-any.whl (8.2 kB)\n",
|
283 |
+
"Downloading torchmetrics-1.4.0.post0-py3-none-any.whl (868 kB)\n",
|
284 |
+
" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 868.8/868.8 kB 22.8 MB/s eta 0:00:00\n",
|
285 |
+
"Using cached audioread-3.0.1-py3-none-any.whl (23 kB)\n",
|
286 |
+
"Downloading catalogue-2.0.10-py3-none-any.whl (17 kB)\n",
|
287 |
+
"Downloading cymem-2.0.8-cp311-cp311-macosx_11_0_arm64.whl (41 kB)\n",
|
288 |
+
"Downloading lameenc-1.7.0-cp311-cp311-macosx_11_0_arm64.whl (182 kB)\n",
|
289 |
+
"Downloading langcodes-3.4.0-py3-none-any.whl (182 kB)\n",
|
290 |
+
"Downloading lightning_utilities-0.11.6-py3-none-any.whl (26 kB)\n",
|
291 |
+
"Downloading msgpack-1.0.8-cp311-cp311-macosx_11_0_arm64.whl (84 kB)\n",
|
292 |
+
"Downloading murmurhash-1.0.10-cp311-cp311-macosx_11_0_arm64.whl (26 kB)\n",
|
293 |
+
"Downloading numba-0.60.0-cp311-cp311-macosx_11_0_arm64.whl (2.6 MB)\n",
|
294 |
+
" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.6/2.6 MB 29.9 MB/s eta 0:00:00\n",
|
295 |
+
"Downloading pooch-1.8.2-py3-none-any.whl (64 kB)\n",
|
296 |
+
"Downloading preshed-3.0.9-cp311-cp311-macosx_11_0_arm64.whl (128 kB)\n",
|
297 |
+
"Downloading soxr-0.4.0-cp311-cp311-macosx_11_0_arm64.whl (387 kB)\n",
|
298 |
+
"Downloading spacy_legacy-3.0.12-py2.py3-none-any.whl (29 kB)\n",
|
299 |
+
"Downloading spacy_loggers-1.0.5-py3-none-any.whl (22 kB)\n",
|
300 |
+
"Downloading srsly-2.4.8-cp311-cp311-macosx_11_0_arm64.whl (488 kB)\n",
|
301 |
+
"Downloading thinc-8.2.5-cp311-cp311-macosx_11_0_arm64.whl (773 kB)\n",
|
302 |
+
" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 773.9/773.9 kB 23.8 MB/s eta 0:00:00\n",
|
303 |
+
"Downloading wasabi-1.1.3-py3-none-any.whl (27 kB)\n",
|
304 |
+
"Downloading weasel-0.4.1-py3-none-any.whl (50 kB)\n",
|
305 |
+
"Downloading openunmix-1.3.0-py3-none-any.whl (40 kB)\n",
|
306 |
+
"Downloading blis-0.7.11-cp311-cp311-macosx_11_0_arm64.whl (1.1 MB)\n",
|
307 |
+
" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 35.3 MB/s eta 0:00:00\n",
|
308 |
+
"Downloading cloudpathlib-0.18.1-py3-none-any.whl (47 kB)\n",
|
309 |
+
"Downloading confection-0.1.5-py3-none-any.whl (35 kB)\n",
|
310 |
+
"Downloading language_data-1.2.0-py3-none-any.whl (5.4 MB)\n",
|
311 |
+
" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.4/5.4 MB 33.2 MB/s eta 0:00:00\n",
|
312 |
+
"Downloading llvmlite-0.43.0-cp311-cp311-macosx_11_0_arm64.whl (28.8 MB)\n",
|
313 |
+
" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 28.8/28.8 MB 30.3 MB/s eta 0:00:00\n",
|
314 |
+
"Downloading smart_open-7.0.4-py3-none-any.whl (61 kB)\n",
|
315 |
+
"Downloading retrying-1.3.4-py3-none-any.whl (11 kB)\n",
|
316 |
+
"Downloading submitit-1.5.1-py3-none-any.whl (74 kB)\n",
|
317 |
+
"Downloading marisa_trie-1.2.0-cp311-cp311-macosx_11_0_arm64.whl (174 kB)\n",
|
318 |
+
"Building wheels for collected packages: flashy, xformers, demucs, julius, encodec, pesq, docopt, dora-search, treetable\n",
|
319 |
+
" Building wheel for flashy (pyproject.toml): started\n",
|
320 |
+
" Building wheel for flashy (pyproject.toml): finished with status 'done'\n",
|
321 |
+
" Created wheel for flashy: filename=flashy-0.0.2-py3-none-any.whl size=34527 sha256=071ecb91bab2f2ed9e6e481bd14cdbcd4f1267f56bd07ee486d6913f8be55175\n",
|
322 |
+
" Stored in directory: /Users/eemanmajumder/Library/Caches/pip/wheels/f0/01/66/911f5086c7a7f21ca5c5bc32c8adb8cc6bd35359ea82eed99f\n",
|
323 |
+
" Building wheel for xformers (setup.py): started\n",
|
324 |
+
" Building wheel for xformers (setup.py): finished with status 'error'\n",
|
325 |
+
" error: subprocess-exited-with-error\n",
|
326 |
+
" \n",
|
327 |
+
" × python setup.py bdist_wheel did not run successfully.\n",
|
328 |
+
" │ exit code: 1\n",
|
329 |
+
" ╰─> [230 lines of output]\n",
|
330 |
+
" running bdist_wheel\n",
|
331 |
+
" /opt/homebrew/lib/python3.11/site-packages/torch/utils/cpp_extension.py:500: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.\n",
|
332 |
+
" warnings.warn(msg.format('we could not find ninja.'))\n",
|
333 |
+
" running build\n",
|
334 |
+
" running build_py\n",
|
335 |
+
" creating build\n",
|
336 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311\n",
|
337 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers\n",
|
338 |
+
" copying xformers/_deprecation_warning.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers\n",
|
339 |
+
" copying xformers/version.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers\n",
|
340 |
+
" copying xformers/checkpoint.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers\n",
|
341 |
+
" copying xformers/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers\n",
|
342 |
+
" copying xformers/test.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers\n",
|
343 |
+
" copying xformers/utils.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers\n",
|
344 |
+
" copying xformers/_cpp_lib.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers\n",
|
345 |
+
" copying xformers/info.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers\n",
|
346 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
|
347 |
+
" copying xformers/triton/fused_linear_layer.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
|
348 |
+
" copying xformers/triton/sum_strided.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
|
349 |
+
" copying xformers/triton/vararg_kernel.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
|
350 |
+
" copying xformers/triton/k_activations.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
|
351 |
+
" copying xformers/triton/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
|
352 |
+
" copying xformers/triton/k_layer_norm.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
|
353 |
+
" copying xformers/triton/k_sum.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
|
354 |
+
" copying xformers/triton/utils.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
|
355 |
+
" copying xformers/triton/k_fused_matmul_fw.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
|
356 |
+
" copying xformers/triton/dropout.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
|
357 |
+
" copying xformers/triton/k_dropout.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
|
358 |
+
" copying xformers/triton/softmax.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
|
359 |
+
" copying xformers/triton/layer_norm.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
|
360 |
+
" copying xformers/triton/k_fused_matmul_bw.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
|
361 |
+
" copying xformers/triton/k_softmax.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
|
362 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/components\n",
|
363 |
+
" copying xformers/components/simplicial_embedding.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components\n",
|
364 |
+
" copying xformers/components/residual.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components\n",
|
365 |
+
" copying xformers/components/reversible.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components\n",
|
366 |
+
" copying xformers/components/activations.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components\n",
|
367 |
+
" copying xformers/components/multi_head_dispatch.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components\n",
|
368 |
+
" copying xformers/components/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components\n",
|
369 |
+
" copying xformers/components/input_projection.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components\n",
|
370 |
+
" copying xformers/components/patch_embedding.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components\n",
|
371 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
|
372 |
+
" copying xformers/benchmarks/benchmark_mem_eff_attention.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
|
373 |
+
" copying xformers/benchmarks/benchmark_indexing.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
|
374 |
+
" copying xformers/benchmarks/benchmark_mlp.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
|
375 |
+
" copying xformers/benchmarks/benchmark_triton_stride_sum.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
|
376 |
+
" copying xformers/benchmarks/benchmark_blocksparse_transformers.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
|
377 |
+
" copying xformers/benchmarks/benchmark_mem_eff_attn_decoder.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
|
378 |
+
" copying xformers/benchmarks/benchmark_transformer.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
|
379 |
+
" copying xformers/benchmarks/benchmark_revnet.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
|
380 |
+
" copying xformers/benchmarks/benchmark_swiglu.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
|
381 |
+
" copying xformers/benchmarks/benchmark_triton_layernorm.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
|
382 |
+
" copying xformers/benchmarks/benchmark_causal_blocksparse.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
|
383 |
+
" copying xformers/benchmarks/benchmark_triton_fused_linear.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
|
384 |
+
" copying xformers/benchmarks/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
|
385 |
+
" copying xformers/benchmarks/benchmark_triton_blocksparse.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
|
386 |
+
" copying xformers/benchmarks/benchmark_triton_softmax.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
|
387 |
+
" copying xformers/benchmarks/utils.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
|
388 |
+
" copying xformers/benchmarks/benchmark_triton_dropout.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
|
389 |
+
" copying xformers/benchmarks/benchmark_nystrom_utils.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
|
390 |
+
" copying xformers/benchmarks/benchmark_attn_decoding.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
|
391 |
+
" copying xformers/benchmarks/benchmark_multi_head_dispatch.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
|
392 |
+
" copying xformers/benchmarks/benchmark_sddmm.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
|
393 |
+
" copying xformers/benchmarks/benchmark_core.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
|
394 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/ops\n",
|
395 |
+
" copying xformers/ops/rmsnorm.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops\n",
|
396 |
+
" copying xformers/ops/swiglu_op.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops\n",
|
397 |
+
" copying xformers/ops/unbind.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops\n",
|
398 |
+
" copying xformers/ops/rope_padded.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops\n",
|
399 |
+
" copying xformers/ops/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops\n",
|
400 |
+
" copying xformers/ops/common.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops\n",
|
401 |
+
" copying xformers/ops/indexing.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops\n",
|
402 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/profiler\n",
|
403 |
+
" copying xformers/profiler/device_limits.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/profiler\n",
|
404 |
+
" copying xformers/profiler/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/profiler\n",
|
405 |
+
" copying xformers/profiler/api.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/profiler\n",
|
406 |
+
" copying xformers/profiler/slow_ops_profiler.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/profiler\n",
|
407 |
+
" copying xformers/profiler/profiler.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/profiler\n",
|
408 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/sparse\n",
|
409 |
+
" copying xformers/sparse/_csr_ops.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/sparse\n",
|
410 |
+
" copying xformers/sparse/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/sparse\n",
|
411 |
+
" copying xformers/sparse/utils.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/sparse\n",
|
412 |
+
" copying xformers/sparse/blocksparse_tensor.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/sparse\n",
|
413 |
+
" copying xformers/sparse/csr_tensor.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/sparse\n",
|
414 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/helpers\n",
|
415 |
+
" copying xformers/helpers/test_utils.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/helpers\n",
|
416 |
+
" copying xformers/helpers/hierarchical_configs.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/helpers\n",
|
417 |
+
" copying xformers/helpers/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/helpers\n",
|
418 |
+
" copying xformers/helpers/timm_sparse_attention.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/helpers\n",
|
419 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn\n",
|
420 |
+
" copying xformers/_flash_attn/fused_softmax.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn\n",
|
421 |
+
" copying xformers/_flash_attn/flash_blocksparse_attn_interface.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn\n",
|
422 |
+
" copying xformers/_flash_attn/flash_blocksparse_attention.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn\n",
|
423 |
+
" copying xformers/_flash_attn/bert_padding.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn\n",
|
424 |
+
" copying xformers/_flash_attn/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn\n",
|
425 |
+
" copying xformers/_flash_attn/flash_attn_triton_og.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn\n",
|
426 |
+
" copying xformers/_flash_attn/flash_attn_triton.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn\n",
|
427 |
+
" copying xformers/_flash_attn/flash_attn_interface.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn\n",
|
428 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/factory\n",
|
429 |
+
" copying xformers/factory/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/factory\n",
|
430 |
+
" copying xformers/factory/hydra_helper.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/factory\n",
|
431 |
+
" copying xformers/factory/block_factory.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/factory\n",
|
432 |
+
" copying xformers/factory/model_factory.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/factory\n",
|
433 |
+
" copying xformers/factory/block_configs.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/factory\n",
|
434 |
+
" copying xformers/factory/weight_init.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/factory\n",
|
435 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
|
436 |
+
" copying xformers/components/attention/global_tokens.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
|
437 |
+
" copying xformers/components/attention/ortho.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
|
438 |
+
" copying xformers/components/attention/blocksparse.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
|
439 |
+
" copying xformers/components/attention/local.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
|
440 |
+
" copying xformers/components/attention/compositional.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
|
441 |
+
" copying xformers/components/attention/pooling.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
|
442 |
+
" copying xformers/components/attention/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
|
443 |
+
" copying xformers/components/attention/_sputnik_sparse.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
|
444 |
+
" copying xformers/components/attention/core.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
|
445 |
+
" copying xformers/components/attention/lambda_layer.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
|
446 |
+
" copying xformers/components/attention/random.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
|
447 |
+
" copying xformers/components/attention/fourier_mix.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
|
448 |
+
" copying xformers/components/attention/scaled_dot_product.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
|
449 |
+
" copying xformers/components/attention/utils.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
|
450 |
+
" copying xformers/components/attention/attention_mask.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
|
451 |
+
" copying xformers/components/attention/linformer.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
|
452 |
+
" copying xformers/components/attention/attention_patterns.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
|
453 |
+
" copying xformers/components/attention/visual.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
|
454 |
+
" copying xformers/components/attention/sparsity_config.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
|
455 |
+
" copying xformers/components/attention/nystrom.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
|
456 |
+
" copying xformers/components/attention/favor.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
|
457 |
+
" copying xformers/components/attention/base.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
|
458 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/components/feedforward\n",
|
459 |
+
" copying xformers/components/feedforward/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/feedforward\n",
|
460 |
+
" copying xformers/components/feedforward/mixture_of_experts.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/feedforward\n",
|
461 |
+
" copying xformers/components/feedforward/mlp.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/feedforward\n",
|
462 |
+
" copying xformers/components/feedforward/conv_mlp.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/feedforward\n",
|
463 |
+
" copying xformers/components/feedforward/fused_mlp.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/feedforward\n",
|
464 |
+
" copying xformers/components/feedforward/base.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/feedforward\n",
|
465 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/components/positional_embedding\n",
|
466 |
+
" copying xformers/components/positional_embedding/vocab.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/positional_embedding\n",
|
467 |
+
" copying xformers/components/positional_embedding/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/positional_embedding\n",
|
468 |
+
" copying xformers/components/positional_embedding/param.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/positional_embedding\n",
|
469 |
+
" copying xformers/components/positional_embedding/sine.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/positional_embedding\n",
|
470 |
+
" copying xformers/components/positional_embedding/rotary.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/positional_embedding\n",
|
471 |
+
" copying xformers/components/positional_embedding/base.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/positional_embedding\n",
|
472 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention/feature_maps\n",
|
473 |
+
" copying xformers/components/attention/feature_maps/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention/feature_maps\n",
|
474 |
+
" copying xformers/components/attention/feature_maps/softmax.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention/feature_maps\n",
|
475 |
+
" copying xformers/components/attention/feature_maps/base.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention/feature_maps\n",
|
476 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks/LRA\n",
|
477 |
+
" copying xformers/benchmarks/LRA/batch_submit.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks/LRA\n",
|
478 |
+
" copying xformers/benchmarks/LRA/batch_fetch_results.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks/LRA\n",
|
479 |
+
" copying xformers/benchmarks/LRA/run_with_submitit.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks/LRA\n",
|
480 |
+
" copying xformers/benchmarks/LRA/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks/LRA\n",
|
481 |
+
" copying xformers/benchmarks/LRA/run_tasks.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks/LRA\n",
|
482 |
+
" copying xformers/benchmarks/LRA/run_grid_search.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks/LRA\n",
|
483 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks/LRA/code\n",
|
484 |
+
" copying xformers/benchmarks/LRA/code/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks/LRA/code\n",
|
485 |
+
" copying xformers/benchmarks/LRA/code/model_wrapper.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks/LRA/code\n",
|
486 |
+
" copying xformers/benchmarks/LRA/code/dataset.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks/LRA/code\n",
|
487 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/_triton\n",
|
488 |
+
" copying xformers/ops/_triton/k_scaled_index_add.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/_triton\n",
|
489 |
+
" copying xformers/ops/_triton/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/_triton\n",
|
490 |
+
" copying xformers/ops/_triton/rope_padded_kernels.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/_triton\n",
|
491 |
+
" copying xformers/ops/_triton/k_index_select_cat.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/_triton\n",
|
492 |
+
" copying xformers/ops/_triton/rmsnorm_kernels.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/_triton\n",
|
493 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/fmha\n",
|
494 |
+
" copying xformers/ops/fmha/decoder.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/fmha\n",
|
495 |
+
" copying xformers/ops/fmha/triton.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/fmha\n",
|
496 |
+
" copying xformers/ops/fmha/dispatch.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/fmha\n",
|
497 |
+
" copying xformers/ops/fmha/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/fmha\n",
|
498 |
+
" copying xformers/ops/fmha/attn_bias.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/fmha\n",
|
499 |
+
" copying xformers/ops/fmha/common.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/fmha\n",
|
500 |
+
" copying xformers/ops/fmha/flash.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/fmha\n",
|
501 |
+
" copying xformers/ops/fmha/small_k.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/fmha\n",
|
502 |
+
" copying xformers/ops/fmha/cutlass.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/fmha\n",
|
503 |
+
" copying xformers/ops/fmha/triton_splitk.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/fmha\n",
|
504 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/losses\n",
|
505 |
+
" copying xformers/_flash_attn/losses/cross_entropy.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/losses\n",
|
506 |
+
" copying xformers/_flash_attn/losses/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/losses\n",
|
507 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/layers\n",
|
508 |
+
" copying xformers/_flash_attn/layers/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/layers\n",
|
509 |
+
" copying xformers/_flash_attn/layers/patch_embed.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/layers\n",
|
510 |
+
" copying xformers/_flash_attn/layers/rotary.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/layers\n",
|
511 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/utils\n",
|
512 |
+
" copying xformers/_flash_attn/utils/pretrained.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/utils\n",
|
513 |
+
" copying xformers/_flash_attn/utils/generation.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/utils\n",
|
514 |
+
" copying xformers/_flash_attn/utils/benchmark.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/utils\n",
|
515 |
+
" copying xformers/_flash_attn/utils/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/utils\n",
|
516 |
+
" copying xformers/_flash_attn/utils/distributed.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/utils\n",
|
517 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
|
518 |
+
" copying xformers/_flash_attn/models/bigcode.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
|
519 |
+
" copying xformers/_flash_attn/models/gptj.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
|
520 |
+
" copying xformers/_flash_attn/models/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
|
521 |
+
" copying xformers/_flash_attn/models/opt.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
|
522 |
+
" copying xformers/_flash_attn/models/llama.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
|
523 |
+
" copying xformers/_flash_attn/models/vit.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
|
524 |
+
" copying xformers/_flash_attn/models/baichuan.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
|
525 |
+
" copying xformers/_flash_attn/models/bert.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
|
526 |
+
" copying xformers/_flash_attn/models/falcon.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
|
527 |
+
" copying xformers/_flash_attn/models/gpt_neox.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
|
528 |
+
" copying xformers/_flash_attn/models/gpt.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
|
529 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops\n",
|
530 |
+
" copying xformers/_flash_attn/ops/activations.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops\n",
|
531 |
+
" copying xformers/_flash_attn/ops/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops\n",
|
532 |
+
" copying xformers/_flash_attn/ops/fused_dense.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops\n",
|
533 |
+
" copying xformers/_flash_attn/ops/rms_norm.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops\n",
|
534 |
+
" copying xformers/_flash_attn/ops/layer_norm.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops\n",
|
535 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/modules\n",
|
536 |
+
" copying xformers/_flash_attn/modules/embedding.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/modules\n",
|
537 |
+
" copying xformers/_flash_attn/modules/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/modules\n",
|
538 |
+
" copying xformers/_flash_attn/modules/mlp.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/modules\n",
|
539 |
+
" copying xformers/_flash_attn/modules/block.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/modules\n",
|
540 |
+
" copying xformers/_flash_attn/modules/mha.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/modules\n",
|
541 |
+
" creating build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops/triton\n",
|
542 |
+
" copying xformers/_flash_attn/ops/triton/cross_entropy.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops/triton\n",
|
543 |
+
" copying xformers/_flash_attn/ops/triton/linear.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops/triton\n",
|
544 |
+
" copying xformers/_flash_attn/ops/triton/k_activations.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops/triton\n",
|
545 |
+
" copying xformers/_flash_attn/ops/triton/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops/triton\n",
|
546 |
+
" copying xformers/_flash_attn/ops/triton/mlp.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops/triton\n",
|
547 |
+
" copying xformers/_flash_attn/ops/triton/rotary.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops/triton\n",
|
548 |
+
" running build_ext\n",
|
549 |
+
" building 'xformers._C' extension\n",
|
550 |
+
" creating build/temp.macosx-14.0-arm64-cpython-311\n",
|
551 |
+
" creating build/temp.macosx-14.0-arm64-cpython-311/xformers\n",
|
552 |
+
" creating build/temp.macosx-14.0-arm64-cpython-311/xformers/csrc\n",
|
553 |
+
" creating build/temp.macosx-14.0-arm64-cpython-311/xformers/csrc/attention\n",
|
554 |
+
" creating build/temp.macosx-14.0-arm64-cpython-311/xformers/csrc/attention/autograd\n",
|
555 |
+
" creating build/temp.macosx-14.0-arm64-cpython-311/xformers/csrc/attention/cpu\n",
|
556 |
+
" creating build/temp.macosx-14.0-arm64-cpython-311/xformers/csrc/swiglu\n",
|
557 |
+
" clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I/private/var/folders/nd/89shfd6n6lscx28vkg3ytv1c0000gn/T/pip-install-h1jkmh5u/xformers_dd209e6000d94aa695c3b8c8053776cd/xformers/csrc -I/opt/homebrew/lib/python3.11/site-packages/torch/include -I/opt/homebrew/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/homebrew/lib/python3.11/site-packages/torch/include/TH -I/opt/homebrew/lib/python3.11/site-packages/torch/include/THC -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c xformers/csrc/attention/attention.cpp -o build/temp.macosx-14.0-arm64-cpython-311/xformers/csrc/attention/attention.o -O3 -std=c++17 -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\\\"_clang\\\" -DPYBIND11_STDLIB=\\\"_libcpp\\\" -DPYBIND11_BUILD_ABI=\\\"_cxxabi1002\\\" -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0\n",
|
558 |
+
" clang: error: unsupported option '-fopenmp'\n",
|
559 |
+
" error: command '/usr/bin/clang' failed with exit code 1\n",
|
560 |
+
" [end of output]\n",
|
561 |
+
" \n",
|
562 |
+
" note: This error originates from a subprocess, and is likely not a problem with pip.\n",
|
563 |
+
" ERROR: Failed building wheel for xformers\n",
|
564 |
+
" Running setup.py clean for xformers\n",
|
565 |
+
" Building wheel for demucs (setup.py): started\n",
|
566 |
+
" Building wheel for demucs (setup.py): finished with status 'done'\n",
|
567 |
+
" Created wheel for demucs: filename=demucs-4.0.1-py3-none-any.whl size=78391 sha256=a434bc7d0c07a784c87395ea2df1e39447052c26b3e8285c7ba53a1965eee46c\n",
|
568 |
+
" Stored in directory: /Users/eemanmajumder/Library/Caches/pip/wheels/bb/06/a3/83489d50c9f015fa981a2a7bb08fcede75120a0de56775353f\n",
|
569 |
+
" Building wheel for julius (setup.py): started\n",
|
570 |
+
" Building wheel for julius (setup.py): finished with status 'done'\n",
|
571 |
+
" Created wheel for julius: filename=julius-0.2.7-py3-none-any.whl size=21870 sha256=934f4f3f9b370e198960de4c27007b0704168a5122928bd1cc7d19d4587f3281\n",
|
572 |
+
" Stored in directory: /Users/eemanmajumder/Library/Caches/pip/wheels/16/15/d4/edd724cefe78050a6ba3344b8b0c6672db829a799dbb9f81ff\n",
|
573 |
+
" Building wheel for encodec (setup.py): started\n",
|
574 |
+
" Building wheel for encodec (setup.py): finished with status 'done'\n",
|
575 |
+
" Created wheel for encodec: filename=encodec-0.1.1-py3-none-any.whl size=45762 sha256=0ee4d9521716dc1911ec92f6890822d831ae978c76b6b7783707a52113c3f0b9\n",
|
576 |
+
" Stored in directory: /Users/eemanmajumder/Library/Caches/pip/wheels/b4/a4/88/480018a664e58ca7ce6708759193ee51b017b3b72aa3df8a85\n",
|
577 |
+
" Building wheel for pesq (setup.py): started\n",
|
578 |
+
" Building wheel for pesq (setup.py): finished with status 'done'\n",
|
579 |
+
" Created wheel for pesq: filename=pesq-0.0.4-cp311-cp311-macosx_14_0_arm64.whl size=120676 sha256=640c2b52e01cfc30fb1fbed75e604d1cb14d21c3ebae9c00fd418cf322a06d85\n",
|
580 |
+
" Stored in directory: /Users/eemanmajumder/Library/Caches/pip/wheels/ae/f1/23/2698d0bf31eec2b2aa50623b5d93b6206c49c7155d0e31345d\n",
|
581 |
+
" Building wheel for docopt (setup.py): started\n",
|
582 |
+
" Building wheel for docopt (setup.py): finished with status 'done'\n",
|
583 |
+
" Created wheel for docopt: filename=docopt-0.6.2-py2.py3-none-any.whl size=13706 sha256=cdb74a1b54578dba892327c2677efd799864ef7ef5e403f46a87fc757259473e\n",
|
584 |
+
" Stored in directory: /Users/eemanmajumder/Library/Caches/pip/wheels/1a/b0/8c/4b75c4116c31f83c8f9f047231251e13cc74481cca4a78a9ce\n",
|
585 |
+
" Building wheel for dora-search (pyproject.toml): started\n",
|
586 |
+
" Building wheel for dora-search (pyproject.toml): finished with status 'done'\n",
|
587 |
+
" Created wheel for dora-search: filename=dora_search-0.1.12-py3-none-any.whl size=75093 sha256=a6168a33da1b503a82e0480b41bae8625e188bbbe744eb6140fdc19990292c44\n",
|
588 |
+
" Stored in directory: /Users/eemanmajumder/Library/Caches/pip/wheels/e3/f3/a9/2fd1ebbd64c4b2a1e53c81bf25282567a80802ceedfedcab4a\n",
|
589 |
+
" Building wheel for treetable (setup.py): started\n",
|
590 |
+
" Building wheel for treetable (setup.py): finished with status 'done'\n",
|
591 |
+
" Created wheel for treetable: filename=treetable-0.2.5-py3-none-any.whl size=7333 sha256=572513c7b367f074f063e77c4571a6a054b01518e27238c2a1554db71d8a89f0\n",
|
592 |
+
" Stored in directory: /Users/eemanmajumder/Library/Caches/pip/wheels/6c/c9/6a/3ee58e3f4ed63e61de2a515cdb75438521f0372a1f0086be79\n",
|
593 |
+
"Successfully built flashy demucs julius encodec pesq docopt dora-search treetable\n",
|
594 |
+
"Failed to build xformers\n",
|
595 |
+
"ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (xformers)\n",
|
596 |
+
"\n",
|
597 |
+
"INSTALLATION FAILED...\n"
|
598 |
+
]
|
599 |
+
}
|
600 |
+
],
|
601 |
+
"source": [
|
602 |
+
"# @title Execute first for installing AudioCraft\n",
|
603 |
+
"# @markdown Execute this cell to install AudioCraft. (**Note:** the `pip install` stage might take a while.)\n",
|
604 |
+
"from pathlib import Path\n",
|
605 |
+
"import subprocess as sp\n",
|
606 |
+
"from shutil import rmtree\n",
|
607 |
+
"import re\n",
|
608 |
+
"import time\n",
|
609 |
+
"\n",
|
610 |
+
"def run_log_on_fail(name, *args, **kwargs):\n",
|
611 |
+
" log = log_folder / (name + \".log\")\n",
|
612 |
+
" print(\"Running stage\", name)\n",
|
613 |
+
" try:\n",
|
614 |
+
" sp.run(*args, **kwargs, stdout=open(log, 'w'), stderr=sp.STDOUT, check=True)\n",
|
615 |
+
" except sp.CalledProcessError:\n",
|
616 |
+
" print(f\"Stage {name} failed, this is NOT expected, see logs hereafter.\")\n",
|
617 |
+
" print(open(log, 'r').read())\n",
|
618 |
+
" raise\n",
|
619 |
+
" else:\n",
|
620 |
+
" return log\n",
|
621 |
+
"\n",
|
622 |
+
"def install():\n",
|
623 |
+
" global log_folder\n",
|
624 |
+
" ac_folder = Path('./content/audiocraft')\n",
|
625 |
+
" log_folder = Path('./content/logs')\n",
|
626 |
+
" log_folder.mkdir(exist_ok=True, parents=True)\n",
|
627 |
+
" if ac_folder.exists():\n",
|
628 |
+
" rmtree(ac_folder)\n",
|
629 |
+
" try:\n",
|
630 |
+
" run_log_on_fail(\"git clone\", [\"git\", \"clone\", \"https://github.com/facebookresearch/audiocraft\"], cwd=ac_folder.parent)\n",
|
631 |
+
" run_log_on_fail(\"pip install\", [\"pip\", \"install\", \"-e\", \".\"], cwd=ac_folder)\n",
|
632 |
+
" pass\n",
|
633 |
+
" except sp.CalledProcessError:\n",
|
634 |
+
" print(\"INSTALLATION FAILED...\")\n",
|
635 |
+
" return\n",
|
636 |
+
"\n",
|
637 |
+
"install()"
|
638 |
+
]
|
639 |
+
},
|
640 |
+
{
|
641 |
+
"cell_type": "code",
|
642 |
+
"execution_count": 24,
|
643 |
+
"metadata": {},
|
644 |
+
"outputs": [
|
645 |
+
{
|
646 |
+
"name": "stdout",
|
647 |
+
"output_type": "stream",
|
648 |
+
"text": [
|
649 |
+
"\u001b[33mDEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621\u001b[0m\u001b[33m\n",
|
650 |
+
"\u001b[0mRequirement already satisfied: einops in /opt/homebrew/lib/python3.9/site-packages (0.6.1)\n",
|
651 |
+
"Collecting julius\n",
|
652 |
+
" Using cached julius-0.2.7.tar.gz (59 kB)\n",
|
653 |
+
" Preparing metadata (setup.py) ... \u001b[?25ldone\n",
|
654 |
+
"\u001b[?25hRequirement already satisfied: torch>=1.7.0 in /opt/homebrew/lib/python3.9/site-packages (from julius) (2.1.2)\n",
|
655 |
+
"\u001b[31mERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/opt/homebrew/lib/python3.9/site-packages/torch-2.1.2.dist-info/METADATA'\n",
|
656 |
+
"\u001b[0m\u001b[31m\n",
|
657 |
+
"\u001b[0m"
|
658 |
+
]
|
659 |
+
}
|
660 |
+
],
|
661 |
+
"source": [
|
662 |
+
"!pip3 install einops julius"
|
663 |
+
]
|
664 |
+
},
|
665 |
+
{
|
666 |
+
"cell_type": "code",
|
667 |
+
"execution_count": 3,
|
668 |
+
"metadata": {
|
669 |
+
"colab": {
|
670 |
+
"base_uri": "https://localhost:8080/"
|
671 |
+
},
|
672 |
+
"id": "0mFH0Nma65RU",
|
673 |
+
"outputId": "2174c9f0-975d-43ba-834e-7b4450c826d2"
|
674 |
+
},
|
675 |
+
"outputs": [
|
676 |
+
{
|
677 |
+
"name": "stdout",
|
678 |
+
"output_type": "stream",
|
679 |
+
"text": [
|
680 |
+
"Requirement already satisfied: einops in /Users/eemanmajumder/miniforge3/envs/env_tf/lib/python3.9/site-packages (0.6.1)\n",
|
681 |
+
"Collecting julius\n",
|
682 |
+
" Downloading julius-0.2.7.tar.gz (59 kB)\n",
|
683 |
+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m59.6/59.6 kB\u001b[0m \u001b[31m1.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n",
|
684 |
+
"\u001b[?25h Preparing metadata (setup.py) ... \u001b[?25ldone\n",
|
685 |
+
"\u001b[?25hRequirement already satisfied: torch>=1.7.0 in /Users/eemanmajumder/miniforge3/envs/env_tf/lib/python3.9/site-packages (from julius) (2.0.1)\n",
|
686 |
+
"Requirement already satisfied: filelock in /Users/eemanmajumder/miniforge3/envs/env_tf/lib/python3.9/site-packages (from torch>=1.7.0->julius) (3.12.2)\n",
|
687 |
+
"Requirement already satisfied: typing-extensions in /Users/eemanmajumder/miniforge3/envs/env_tf/lib/python3.9/site-packages (from torch>=1.7.0->julius) (4.6.3)\n",
|
688 |
+
"Requirement already satisfied: sympy in /Users/eemanmajumder/miniforge3/envs/env_tf/lib/python3.9/site-packages (from torch>=1.7.0->julius) (1.12)\n",
|
689 |
+
"Requirement already satisfied: networkx in /Users/eemanmajumder/miniforge3/envs/env_tf/lib/python3.9/site-packages (from torch>=1.7.0->julius) (3.1)\n",
|
690 |
+
"Requirement already satisfied: jinja2 in /Users/eemanmajumder/miniforge3/envs/env_tf/lib/python3.9/site-packages (from torch>=1.7.0->julius) (3.1.2)\n",
|
691 |
+
"Requirement already satisfied: MarkupSafe>=2.0 in /Users/eemanmajumder/miniforge3/envs/env_tf/lib/python3.9/site-packages (from jinja2->torch>=1.7.0->julius) (2.1.3)\n",
|
692 |
+
"Requirement already satisfied: mpmath>=0.19 in /Users/eemanmajumder/miniforge3/envs/env_tf/lib/python3.9/site-packages (from sympy->torch>=1.7.0->julius) (1.3.0)\n",
|
693 |
+
"Building wheels for collected packages: julius\n",
|
694 |
+
" Building wheel for julius (setup.py) ... \u001b[?25ldone\n",
|
695 |
+
"\u001b[?25h Created wheel for julius: filename=julius-0.2.7-py3-none-any.whl size=21878 sha256=337431d70ba78c644f8e521c875d27e4910eb1414a295425dd1f07b2dc6892cd\n",
|
696 |
+
" Stored in directory: /Users/eemanmajumder/Library/Caches/pip/wheels/53/0a/a7/fc08f97438f4969d86afa7904336c2eb7eb422101359f3ad11\n",
|
697 |
+
"Successfully built julius\n",
|
698 |
+
"Installing collected packages: julius\n",
|
699 |
+
"Successfully installed julius-0.2.7\n",
|
700 |
+
"Traceback (most recent call last):\n",
|
701 |
+
" File \"/opt/homebrew/Cellar/[email protected]/3.9.18/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py\", line 197, in _run_module_as_main\n",
|
702 |
+
" return _run_code(code, main_globals, None,\n",
|
703 |
+
" File \"/opt/homebrew/Cellar/[email protected]/3.9.18/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py\", line 87, in _run_code\n",
|
704 |
+
" exec(code, run_globals)\n",
|
705 |
+
" File \"/Users/eemanmajumder/code_shit/sunnai/content/audiocraft/demos/musicgen_app.py\", line 26, in <module>\n",
|
706 |
+
" from audiocraft.data.audio_utils import convert_audio\n",
|
707 |
+
" File \"/Users/eemanmajumder/code_shit/sunnai/content/audiocraft/audiocraft/__init__.py\", line 24, in <module>\n",
|
708 |
+
" from . import data, modules, models\n",
|
709 |
+
" File \"/Users/eemanmajumder/code_shit/sunnai/content/audiocraft/audiocraft/data/__init__.py\", line 10, in <module>\n",
|
710 |
+
" from . import audio, audio_dataset, info_audio_dataset, music_dataset, sound_dataset\n",
|
711 |
+
" File \"/Users/eemanmajumder/code_shit/sunnai/content/audiocraft/audiocraft/data/audio.py\", line 25, in <module>\n",
|
712 |
+
" from .audio_utils import f32_pcm, normalize_audio\n",
|
713 |
+
" File \"/Users/eemanmajumder/code_shit/sunnai/content/audiocraft/audiocraft/data/audio_utils.py\", line 14, in <module>\n",
|
714 |
+
" import julius\n",
|
715 |
+
"ModuleNotFoundError: No module named 'julius'\n"
|
716 |
+
]
|
717 |
+
}
|
718 |
+
],
|
719 |
+
"source": [
|
720 |
+
"#@title Execute then to launch the demo\n",
|
721 |
+
"#@markdown Wait until you see `Running on public URL: ` in the link with a *.gradio.live url. Click on the URL, and enjoy!\n",
|
722 |
+
"!pip3 install einops julius\n",
|
723 |
+
"!cd ./content/audiocraft && /opt/homebrew/bin/python3.9 -m demos.musicgen_app --share"
|
724 |
+
]
|
725 |
+
},
|
726 |
+
{
|
727 |
+
"cell_type": "code",
|
728 |
+
"execution_count": null,
|
729 |
+
"metadata": {},
|
730 |
+
"outputs": [],
|
731 |
+
"source": []
|
732 |
+
}
|
733 |
+
],
|
734 |
+
"metadata": {
|
735 |
+
"accelerator": "GPU",
|
736 |
+
"colab": {
|
737 |
+
"gpuType": "T4",
|
738 |
+
"provenance": []
|
739 |
+
},
|
740 |
+
"kernelspec": {
|
741 |
+
"display_name": "Python 3",
|
742 |
+
"name": "python3"
|
743 |
+
},
|
744 |
+
"language_info": {
|
745 |
+
"codemirror_mode": {
|
746 |
+
"name": "ipython",
|
747 |
+
"version": 3
|
748 |
+
},
|
749 |
+
"file_extension": ".py",
|
750 |
+
"mimetype": "text/x-python",
|
751 |
+
"name": "python",
|
752 |
+
"nbconvert_exporter": "python",
|
753 |
+
"pygments_lexer": "ipython3",
|
754 |
+
"version": "3.9.16"
|
755 |
+
}
|
756 |
+
},
|
757 |
+
"nbformat": 4,
|
758 |
+
"nbformat_minor": 0
|
759 |
+
}
|
main.py
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import torch
|
3 |
+
import torchaudio
|
4 |
+
from audiocraft.models import MusicGen
|
5 |
+
from audiocraft.data.audio import audio_write
|
6 |
+
import os
|
7 |
+
import base64
|
8 |
+
|
9 |
+
def generate_music(model, description, duration):
|
10 |
+
model.set_generation_params(duration=duration)
|
11 |
+
wav = model.generate([description]) # Generate 1 sample
|
12 |
+
return wav[0]
|
13 |
+
|
14 |
+
def get_audio_player(audio_data):
|
15 |
+
audio_file = "temp_audio.wav"
|
16 |
+
torchaudio.save(audio_file, audio_data.cpu(), sample_rate=32000)
|
17 |
+
|
18 |
+
with open(audio_file, "rb") as f:
|
19 |
+
audio_bytes = f.read()
|
20 |
+
|
21 |
+
os.remove(audio_file)
|
22 |
+
|
23 |
+
b64 = base64.b64encode(audio_bytes).decode()
|
24 |
+
return f'<audio controls><source src="data:audio/wav;base64,{b64}" type="audio/wav"></audio>'
|
25 |
+
|
26 |
+
def main():
|
27 |
+
st.set_page_config(page_title="SunnAI - Music Generation", page_icon="🎵")
|
28 |
+
st.title("SunnAI - AI Music Generation")
|
29 |
+
|
30 |
+
st.sidebar.header("Model Settings")
|
31 |
+
model_size = st.sidebar.selectbox("Select model size", ["small", "medium", "large"])
|
32 |
+
|
33 |
+
@st.cache_resource
|
34 |
+
def load_model(model_size):
|
35 |
+
return MusicGen.get_pretrained(f'facebook/musicgen-{model_size}')
|
36 |
+
|
37 |
+
model = load_model(model_size)
|
38 |
+
|
39 |
+
st.write("Welcome to SunnAI! Generate music using AI with just a text description.")
|
40 |
+
|
41 |
+
description = st.text_area("Enter a description for your music:", "A happy rock song with electric guitar and drums")
|
42 |
+
duration = st.slider("Select music duration (in seconds):", min_value=1, max_value=30, value=10)
|
43 |
+
|
44 |
+
if st.button("Generate Music"):
|
45 |
+
with st.spinner("Generating music... This may take a moment."):
|
46 |
+
generated_audio = generate_music(model, description, duration)
|
47 |
+
|
48 |
+
st.success("Music generated successfully!")
|
49 |
+
st.markdown(get_audio_player(generated_audio), unsafe_allow_html=True)
|
50 |
+
|
51 |
+
# Option to download the generated audio
|
52 |
+
audio_file = "generated_music.wav"
|
53 |
+
torchaudio.save(audio_file, generated_audio.cpu(), sample_rate=32000)
|
54 |
+
with open(audio_file, "rb") as f:
|
55 |
+
st.download_button(
|
56 |
+
label="Download generated music",
|
57 |
+
data=f,
|
58 |
+
file_name="sunnai_generated_music.wav",
|
59 |
+
mime="audio/wav"
|
60 |
+
)
|
61 |
+
os.remove(audio_file)
|
62 |
+
|
63 |
+
if __name__ == "__main__":
|
64 |
+
main()
|
requirements.txt
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
av==11.0.0
|
2 |
+
dac==0.4.2
|
3 |
+
demucs==4.0.1
|
4 |
+
dora==0.0.3
|
5 |
+
einops==0.8.0
|
6 |
+
flashy==0.0.2
|
7 |
+
Flask==2.2.3
|
8 |
+
gradio==4.42.0
|
9 |
+
hear21passt==0.0.26
|
10 |
+
huggingface_hub==0.24.5
|
11 |
+
hydra-core==1.3.2
|
12 |
+
ipython==8.26.0
|
13 |
+
julius==0.2.7
|
14 |
+
laion_clap==1.1.6
|
15 |
+
librosa==0.10.1
|
16 |
+
matplotlib==3.7.1
|
17 |
+
num2words==0.5.13
|
18 |
+
numpy==2.1.0
|
19 |
+
omegaconf==2.3.0
|
20 |
+
pytest==7.3.1
|
21 |
+
requests==2.32.3
|
22 |
+
setuptools==69.0.2
|
23 |
+
soundfile==0.12.1
|
24 |
+
spacy==3.3.1
|
25 |
+
streamlit==1.28.1
|
26 |
+
submitit==1.5.1
|
27 |
+
torch==2.2.2
|
28 |
+
torchaudio==2.2.2
|
29 |
+
torchmetrics==1.4.1
|
30 |
+
tqdm==4.66.5
|
31 |
+
transformers==4.22.2
|
32 |
+
treetable==0.2.5
|
33 |
+
typing_extensions==4.12.2
|
34 |
+
xformers==0.0.27.post2
|