File size: 76,745 Bytes
d604518
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
{
  "cells": [
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "efhHAvBOgMnL"
      },
      "source": [
        "# MusicGen Gradio Demo\n",
        "\n",
        "Execute the first cell to install, the second one to run the demo.\n",
        "\n",
        "More info on our repository [facebookresearch/audiocraft](https://github.com/facebookresearch/audiocraft/) or our [research paper](https://arxiv.org/abs/2306.05284).\n",
        "\n",
        "First eval with a model will be slower because of the model download. Melody model should take 30 seconds for 15 seconds of audio."
      ]
    },
    {
      "cell_type": "code",
      "execution_count": 4,
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "id": "NJXpj7lyYjve",
        "outputId": "b3b9cf14-0319-411d-ff3f-64a7cc83c377"
      },
      "outputs": [
        {
          "name": "stdout",
          "output_type": "stream",
          "text": [
            "Running stage git clone\n",
            "Running stage pip install\n",
            "Stage pip install failed, this is NOT expected, see logs hereafter.\n",
            "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",
            "Obtaining file:///Users/eemanmajumder/code_shit/sunnai/content/audiocraft\n",
            "  Preparing metadata (setup.py): started\n",
            "  Preparing metadata (setup.py): finished with status 'done'\n",
            "Collecting av==11.0.0 (from audiocraft==1.4.0a1)\n",
            "  Downloading av-11.0.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (4.5 kB)\n",
            "Requirement already satisfied: einops in /opt/homebrew/lib/python3.11/site-packages (from audiocraft==1.4.0a1) (0.6.1)\n",
            "Collecting flashy>=0.0.1 (from audiocraft==1.4.0a1)\n",
            "  Downloading flashy-0.0.2.tar.gz (72 kB)\n",
            "  Installing build dependencies: started\n",
            "  Installing build dependencies: finished with status 'done'\n",
            "  Getting requirements to build wheel: started\n",
            "  Getting requirements to build wheel: finished with status 'done'\n",
            "  Preparing metadata (pyproject.toml): started\n",
            "  Preparing metadata (pyproject.toml): finished with status 'done'\n",
            "Collecting hydra-core>=1.1 (from audiocraft==1.4.0a1)\n",
            "  Downloading hydra_core-1.3.2-py3-none-any.whl.metadata (5.5 kB)\n",
            "Collecting hydra_colorlog (from audiocraft==1.4.0a1)\n",
            "  Downloading hydra_colorlog-1.2.0-py3-none-any.whl.metadata (949 bytes)\n",
            "Collecting julius (from audiocraft==1.4.0a1)\n",
            "  Downloading julius-0.2.7.tar.gz (59 kB)\n",
            "  Preparing metadata (setup.py): started\n",
            "  Preparing metadata (setup.py): finished with status 'done'\n",
            "Collecting num2words (from audiocraft==1.4.0a1)\n",
            "  Downloading num2words-0.5.13-py3-none-any.whl.metadata (12 kB)\n",
            "Requirement already satisfied: numpy<2.0.0 in /opt/homebrew/lib/python3.11/site-packages (from audiocraft==1.4.0a1) (1.26.4)\n",
            "Requirement already satisfied: sentencepiece in /opt/homebrew/lib/python3.11/site-packages (from audiocraft==1.4.0a1) (0.1.99)\n",
            "Collecting spacy>=3.6.1 (from audiocraft==1.4.0a1)\n",
            "  Downloading spacy-3.7.5-cp311-cp311-macosx_11_0_arm64.whl.metadata (27 kB)\n",
            "Collecting torch==2.1.0 (from audiocraft==1.4.0a1)\n",
            "  Downloading torch-2.1.0-cp311-none-macosx_11_0_arm64.whl.metadata (24 kB)\n",
            "Collecting torchaudio<2.1.2,>=2.0.0 (from audiocraft==1.4.0a1)\n",
            "  Downloading torchaudio-2.1.1-cp311-cp311-macosx_11_0_arm64.whl.metadata (6.4 kB)\n",
            "Requirement already satisfied: huggingface_hub in /opt/homebrew/lib/python3.11/site-packages (from audiocraft==1.4.0a1) (0.22.2)\n",
            "Requirement already satisfied: tqdm in /opt/homebrew/lib/python3.11/site-packages (from audiocraft==1.4.0a1) (4.65.0)\n",
            "Requirement already satisfied: transformers>=4.31.0 in /opt/homebrew/lib/python3.11/site-packages (from audiocraft==1.4.0a1) (4.38.2)\n",
            "Collecting xformers<0.0.23 (from audiocraft==1.4.0a1)\n",
            "  Downloading xformers-0.0.22.post7.tar.gz (3.8 MB)\n",
            "     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.8/3.8 MB 4.8 MB/s eta 0:00:00\n",
            "  Preparing metadata (setup.py): started\n",
            "  Preparing metadata (setup.py): finished with status 'done'\n",
            "Collecting demucs (from audiocraft==1.4.0a1)\n",
            "  Downloading demucs-4.0.1.tar.gz (1.2 MB)\n",
            "     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 44.9 MB/s eta 0:00:00\n",
            "  Preparing metadata (setup.py): started\n",
            "  Preparing metadata (setup.py): finished with status 'done'\n",
            "Collecting librosa (from audiocraft==1.4.0a1)\n",
            "  Downloading librosa-0.10.2.post1-py3-none-any.whl.metadata (8.6 kB)\n",
            "Collecting soundfile (from audiocraft==1.4.0a1)\n",
            "  Downloading soundfile-0.12.1-py2.py3-none-macosx_11_0_arm64.whl.metadata (14 kB)\n",
            "Requirement already satisfied: gradio in /opt/homebrew/lib/python3.11/site-packages (from audiocraft==1.4.0a1) (3.41.0)\n",
            "Collecting torchmetrics (from audiocraft==1.4.0a1)\n",
            "  Downloading torchmetrics-1.4.0.post0-py3-none-any.whl.metadata (19 kB)\n",
            "Collecting encodec (from audiocraft==1.4.0a1)\n",
            "  Downloading encodec-0.1.1.tar.gz (3.7 MB)\n",
            "     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.7/3.7 MB 31.5 MB/s eta 0:00:00\n",
            "  Preparing metadata (setup.py): started\n",
            "  Preparing metadata (setup.py): finished with status 'done'\n",
            "Requirement already satisfied: protobuf in /opt/homebrew/lib/python3.11/site-packages (from audiocraft==1.4.0a1) (4.25.3)\n",
            "Collecting torchvision==0.16.0 (from audiocraft==1.4.0a1)\n",
            "  Downloading torchvision-0.16.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (6.6 kB)\n",
            "Collecting torchtext==0.16.0 (from audiocraft==1.4.0a1)\n",
            "  Downloading torchtext-0.16.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (7.5 kB)\n",
            "Collecting pesq (from audiocraft==1.4.0a1)\n",
            "  Downloading pesq-0.0.4.tar.gz (38 kB)\n",
            "  Preparing metadata (setup.py): started\n",
            "  Preparing metadata (setup.py): finished with status 'done'\n",
            "Collecting pystoi (from audiocraft==1.4.0a1)\n",
            "  Downloading pystoi-0.4.1-py2.py3-none-any.whl.metadata (4.0 kB)\n",
            "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",
            "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",
            "Requirement already satisfied: sympy in /opt/homebrew/lib/python3.11/site-packages (from torch==2.1.0->audiocraft==1.4.0a1) (1.12)\n",
            "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",
            "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",
            "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",
            "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",
            "Collecting torchdata==0.7.0 (from torchtext==0.16.0->audiocraft==1.4.0a1)\n",
            "  Downloading torchdata-0.7.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (13 kB)\n",
            "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",
            "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",
            "Collecting dora-search (from flashy>=0.0.1->audiocraft==1.4.0a1)\n",
            "  Downloading dora_search-0.1.12.tar.gz (87 kB)\n",
            "  Installing build dependencies: started\n",
            "  Installing build dependencies: finished with status 'done'\n",
            "  Getting requirements to build wheel: started\n",
            "  Getting requirements to build wheel: finished with status 'done'\n",
            "  Installing backend dependencies: started\n",
            "  Installing backend dependencies: finished with status 'done'\n",
            "  Preparing metadata (pyproject.toml): started\n",
            "  Preparing metadata (pyproject.toml): finished with status 'done'\n",
            "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",
            "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",
            "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",
            "Requirement already satisfied: packaging in /opt/homebrew/lib/python3.11/site-packages (from hydra-core>=1.1->audiocraft==1.4.0a1) (23.1)\n",
            "Collecting spacy-legacy<3.1.0,>=3.0.11 (from spacy>=3.6.1->audiocraft==1.4.0a1)\n",
            "  Downloading spacy_legacy-3.0.12-py2.py3-none-any.whl.metadata (2.8 kB)\n",
            "Collecting spacy-loggers<2.0.0,>=1.0.0 (from spacy>=3.6.1->audiocraft==1.4.0a1)\n",
            "  Downloading spacy_loggers-1.0.5-py3-none-any.whl.metadata (23 kB)\n",
            "Collecting murmurhash<1.1.0,>=0.28.0 (from spacy>=3.6.1->audiocraft==1.4.0a1)\n",
            "  Downloading murmurhash-1.0.10-cp311-cp311-macosx_11_0_arm64.whl.metadata (2.0 kB)\n",
            "Collecting cymem<2.1.0,>=2.0.2 (from spacy>=3.6.1->audiocraft==1.4.0a1)\n",
            "  Downloading cymem-2.0.8-cp311-cp311-macosx_11_0_arm64.whl.metadata (8.4 kB)\n",
            "Collecting preshed<3.1.0,>=3.0.2 (from spacy>=3.6.1->audiocraft==1.4.0a1)\n",
            "  Downloading preshed-3.0.9-cp311-cp311-macosx_11_0_arm64.whl.metadata (2.2 kB)\n",
            "Collecting thinc<8.3.0,>=8.2.2 (from spacy>=3.6.1->audiocraft==1.4.0a1)\n",
            "  Downloading thinc-8.2.5-cp311-cp311-macosx_11_0_arm64.whl.metadata (15 kB)\n",
            "Collecting wasabi<1.2.0,>=0.9.1 (from spacy>=3.6.1->audiocraft==1.4.0a1)\n",
            "  Downloading wasabi-1.1.3-py3-none-any.whl.metadata (28 kB)\n",
            "Collecting srsly<3.0.0,>=2.4.3 (from spacy>=3.6.1->audiocraft==1.4.0a1)\n",
            "  Downloading srsly-2.4.8-cp311-cp311-macosx_11_0_arm64.whl.metadata (20 kB)\n",
            "Collecting catalogue<2.1.0,>=2.0.6 (from spacy>=3.6.1->audiocraft==1.4.0a1)\n",
            "  Downloading catalogue-2.0.10-py3-none-any.whl.metadata (14 kB)\n",
            "Collecting weasel<0.5.0,>=0.1.0 (from spacy>=3.6.1->audiocraft==1.4.0a1)\n",
            "  Downloading weasel-0.4.1-py3-none-any.whl.metadata (4.6 kB)\n",
            "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",
            "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",
            "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",
            "Collecting langcodes<4.0.0,>=3.2.0 (from spacy>=3.6.1->audiocraft==1.4.0a1)\n",
            "  Downloading langcodes-3.4.0-py3-none-any.whl.metadata (29 kB)\n",
            "INFO: pip is looking at multiple versions of torchaudio to determine which version is compatible with other requirements. This could take a while.\n",
            "Collecting torchaudio<2.1.2,>=2.0.0 (from audiocraft==1.4.0a1)\n",
            "  Downloading torchaudio-2.1.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (5.7 kB)\n",
            "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",
            "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",
            "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",
            "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",
            "Collecting lameenc>=1.2 (from demucs->audiocraft==1.4.0a1)\n",
            "  Downloading lameenc-1.7.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (803 bytes)\n",
            "Collecting openunmix (from demucs->audiocraft==1.4.0a1)\n",
            "  Downloading openunmix-1.3.0-py3-none-any.whl.metadata (17 kB)\n",
            "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",
            "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",
            "Requirement already satisfied: fastapi in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (0.110.3)\n",
            "Requirement already satisfied: ffmpy in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (0.3.2)\n",
            "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",
            "Requirement already satisfied: httpx in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (0.27.0)\n",
            "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",
            "Requirement already satisfied: markupsafe~=2.0 in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (2.1.5)\n",
            "Requirement already satisfied: matplotlib~=3.0 in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (3.8.3)\n",
            "Requirement already satisfied: orjson~=3.0 in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (3.9.15)\n",
            "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",
            "Requirement already satisfied: pydub in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (0.25.1)\n",
            "Requirement already satisfied: python-multipart in /opt/homebrew/lib/python3.11/site-packages (from gradio->audiocraft==1.4.0a1) (0.0.9)\n",
            "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",
            "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",
            "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",
            "Collecting audioread>=2.1.9 (from librosa->audiocraft==1.4.0a1)\n",
            "  Using cached audioread-3.0.1-py3-none-any.whl.metadata (8.4 kB)\n",
            "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",
            "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",
            "Requirement already satisfied: joblib>=0.14 in /opt/homebrew/lib/python3.11/site-packages (from librosa->audiocraft==1.4.0a1) (1.3.1)\n",
            "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",
            "Collecting numba>=0.51.0 (from librosa->audiocraft==1.4.0a1)\n",
            "  Downloading numba-0.60.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (2.7 kB)\n",
            "Collecting pooch>=1.1 (from librosa->audiocraft==1.4.0a1)\n",
            "  Downloading pooch-1.8.2-py3-none-any.whl.metadata (10 kB)\n",
            "Collecting soxr>=0.3.2 (from librosa->audiocraft==1.4.0a1)\n",
            "  Downloading soxr-0.4.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (5.5 kB)\n",
            "Requirement already satisfied: lazy-loader>=0.1 in /opt/homebrew/lib/python3.11/site-packages (from librosa->audiocraft==1.4.0a1) (0.3)\n",
            "Collecting msgpack>=1.0 (from librosa->audiocraft==1.4.0a1)\n",
            "  Downloading msgpack-1.0.8-cp311-cp311-macosx_11_0_arm64.whl.metadata (9.1 kB)\n",
            "Requirement already satisfied: cffi>=1.0 in /opt/homebrew/lib/python3.11/site-packages (from soundfile->audiocraft==1.4.0a1) (1.16.0)\n",
            "Collecting docopt>=0.6.2 (from num2words->audiocraft==1.4.0a1)\n",
            "  Downloading docopt-0.6.2.tar.gz (25 kB)\n",
            "  Preparing metadata (setup.py): started\n",
            "  Preparing metadata (setup.py): finished with status 'done'\n",
            "Collecting lightning-utilities>=0.8.0 (from torchmetrics->audiocraft==1.4.0a1)\n",
            "  Downloading lightning_utilities-0.11.6-py3-none-any.whl.metadata (5.2 kB)\n",
            "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",
            "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",
            "Requirement already satisfied: pycparser in /opt/homebrew/lib/python3.11/site-packages (from cffi>=1.0->soundfile->audiocraft==1.4.0a1) (2.21)\n",
            "Collecting language-data>=1.2 (from langcodes<4.0.0,>=3.2.0->spacy>=3.6.1->audiocraft==1.4.0a1)\n",
            "  Downloading language_data-1.2.0-py3-none-any.whl.metadata (4.3 kB)\n",
            "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",
            "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",
            "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",
            "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",
            "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",
            "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",
            "Collecting llvmlite<0.44,>=0.43.0dev0 (from numba>=0.51.0->librosa->audiocraft==1.4.0a1)\n",
            "  Downloading llvmlite-0.43.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (4.8 kB)\n",
            "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",
            "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",
            "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",
            "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",
            "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",
            "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",
            "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",
            "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",
            "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",
            "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",
            "  Downloading blis-0.7.11-cp311-cp311-macosx_11_0_arm64.whl.metadata (7.4 kB)\n",
            "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",
            "  Downloading confection-0.1.5-py3-none-any.whl.metadata (19 kB)\n",
            "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",
            "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",
            "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",
            "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",
            "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",
            "  Downloading cloudpathlib-0.18.1-py3-none-any.whl.metadata (14 kB)\n",
            "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",
            "  Downloading smart_open-7.0.4-py3-none-any.whl.metadata (23 kB)\n",
            "Collecting retrying (from dora-search->flashy>=0.0.1->audiocraft==1.4.0a1)\n",
            "  Downloading retrying-1.3.4-py3-none-any.whl.metadata (6.9 kB)\n",
            "Collecting submitit (from dora-search->flashy>=0.0.1->audiocraft==1.4.0a1)\n",
            "  Downloading submitit-1.5.1-py3-none-any.whl.metadata (8.0 kB)\n",
            "Collecting treetable (from dora-search->flashy>=0.0.1->audiocraft==1.4.0a1)\n",
            "  Downloading treetable-0.2.5.tar.gz (10 kB)\n",
            "  Preparing metadata (setup.py): started\n",
            "  Preparing metadata (setup.py): finished with status 'done'\n",
            "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",
            "Requirement already satisfied: anyio in /opt/homebrew/lib/python3.11/site-packages (from httpx->gradio->audiocraft==1.4.0a1) (3.7.1)\n",
            "Requirement already satisfied: httpcore==1.* in /opt/homebrew/lib/python3.11/site-packages (from httpx->gradio->audiocraft==1.4.0a1) (1.0.5)\n",
            "Requirement already satisfied: sniffio in /opt/homebrew/lib/python3.11/site-packages (from httpx->gradio->audiocraft==1.4.0a1) (1.3.1)\n",
            "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",
            "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",
            "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",
            "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",
            "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",
            "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",
            "  Downloading marisa_trie-1.2.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (8.7 kB)\n",
            "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",
            "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",
            "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",
            "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",
            "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",
            "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",
            "Downloading av-11.0.0-cp311-cp311-macosx_11_0_arm64.whl (20.5 MB)\n",
            "   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 20.5/20.5 MB 11.6 MB/s eta 0:00:00\n",
            "Downloading torch-2.1.0-cp311-none-macosx_11_0_arm64.whl (59.6 MB)\n",
            "   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.6/59.6 MB 21.1 MB/s eta 0:00:00\n",
            "Downloading torchtext-0.16.0-cp311-cp311-macosx_11_0_arm64.whl (2.1 MB)\n",
            "   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 3.8 MB/s eta 0:00:00\n",
            "Downloading torchvision-0.16.0-cp311-cp311-macosx_11_0_arm64.whl (1.6 MB)\n",
            "   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 4.8 MB/s eta 0:00:00\n",
            "Downloading torchdata-0.7.0-cp311-cp311-macosx_11_0_arm64.whl (1.7 MB)\n",
            "   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 5.6 MB/s eta 0:00:00\n",
            "Downloading hydra_core-1.3.2-py3-none-any.whl (154 kB)\n",
            "Downloading spacy-3.7.5-cp311-cp311-macosx_11_0_arm64.whl (6.5 MB)\n",
            "   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.5/6.5 MB 34.8 MB/s eta 0:00:00\n",
            "Downloading torchaudio-2.1.0-cp311-cp311-macosx_11_0_arm64.whl (1.7 MB)\n",
            "   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 32.9 MB/s eta 0:00:00\n",
            "Downloading hydra_colorlog-1.2.0-py3-none-any.whl (3.6 kB)\n",
            "Downloading librosa-0.10.2.post1-py3-none-any.whl (260 kB)\n",
            "Using cached soundfile-0.12.1-py2.py3-none-macosx_11_0_arm64.whl (1.1 MB)\n",
            "Downloading num2words-0.5.13-py3-none-any.whl (143 kB)\n",
            "Downloading pystoi-0.4.1-py2.py3-none-any.whl (8.2 kB)\n",
            "Downloading torchmetrics-1.4.0.post0-py3-none-any.whl (868 kB)\n",
            "   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 868.8/868.8 kB 22.8 MB/s eta 0:00:00\n",
            "Using cached audioread-3.0.1-py3-none-any.whl (23 kB)\n",
            "Downloading catalogue-2.0.10-py3-none-any.whl (17 kB)\n",
            "Downloading cymem-2.0.8-cp311-cp311-macosx_11_0_arm64.whl (41 kB)\n",
            "Downloading lameenc-1.7.0-cp311-cp311-macosx_11_0_arm64.whl (182 kB)\n",
            "Downloading langcodes-3.4.0-py3-none-any.whl (182 kB)\n",
            "Downloading lightning_utilities-0.11.6-py3-none-any.whl (26 kB)\n",
            "Downloading msgpack-1.0.8-cp311-cp311-macosx_11_0_arm64.whl (84 kB)\n",
            "Downloading murmurhash-1.0.10-cp311-cp311-macosx_11_0_arm64.whl (26 kB)\n",
            "Downloading numba-0.60.0-cp311-cp311-macosx_11_0_arm64.whl (2.6 MB)\n",
            "   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.6/2.6 MB 29.9 MB/s eta 0:00:00\n",
            "Downloading pooch-1.8.2-py3-none-any.whl (64 kB)\n",
            "Downloading preshed-3.0.9-cp311-cp311-macosx_11_0_arm64.whl (128 kB)\n",
            "Downloading soxr-0.4.0-cp311-cp311-macosx_11_0_arm64.whl (387 kB)\n",
            "Downloading spacy_legacy-3.0.12-py2.py3-none-any.whl (29 kB)\n",
            "Downloading spacy_loggers-1.0.5-py3-none-any.whl (22 kB)\n",
            "Downloading srsly-2.4.8-cp311-cp311-macosx_11_0_arm64.whl (488 kB)\n",
            "Downloading thinc-8.2.5-cp311-cp311-macosx_11_0_arm64.whl (773 kB)\n",
            "   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 773.9/773.9 kB 23.8 MB/s eta 0:00:00\n",
            "Downloading wasabi-1.1.3-py3-none-any.whl (27 kB)\n",
            "Downloading weasel-0.4.1-py3-none-any.whl (50 kB)\n",
            "Downloading openunmix-1.3.0-py3-none-any.whl (40 kB)\n",
            "Downloading blis-0.7.11-cp311-cp311-macosx_11_0_arm64.whl (1.1 MB)\n",
            "   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 35.3 MB/s eta 0:00:00\n",
            "Downloading cloudpathlib-0.18.1-py3-none-any.whl (47 kB)\n",
            "Downloading confection-0.1.5-py3-none-any.whl (35 kB)\n",
            "Downloading language_data-1.2.0-py3-none-any.whl (5.4 MB)\n",
            "   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.4/5.4 MB 33.2 MB/s eta 0:00:00\n",
            "Downloading llvmlite-0.43.0-cp311-cp311-macosx_11_0_arm64.whl (28.8 MB)\n",
            "   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 28.8/28.8 MB 30.3 MB/s eta 0:00:00\n",
            "Downloading smart_open-7.0.4-py3-none-any.whl (61 kB)\n",
            "Downloading retrying-1.3.4-py3-none-any.whl (11 kB)\n",
            "Downloading submitit-1.5.1-py3-none-any.whl (74 kB)\n",
            "Downloading marisa_trie-1.2.0-cp311-cp311-macosx_11_0_arm64.whl (174 kB)\n",
            "Building wheels for collected packages: flashy, xformers, demucs, julius, encodec, pesq, docopt, dora-search, treetable\n",
            "  Building wheel for flashy (pyproject.toml): started\n",
            "  Building wheel for flashy (pyproject.toml): finished with status 'done'\n",
            "  Created wheel for flashy: filename=flashy-0.0.2-py3-none-any.whl size=34527 sha256=071ecb91bab2f2ed9e6e481bd14cdbcd4f1267f56bd07ee486d6913f8be55175\n",
            "  Stored in directory: /Users/eemanmajumder/Library/Caches/pip/wheels/f0/01/66/911f5086c7a7f21ca5c5bc32c8adb8cc6bd35359ea82eed99f\n",
            "  Building wheel for xformers (setup.py): started\n",
            "  Building wheel for xformers (setup.py): finished with status 'error'\n",
            "  error: subprocess-exited-with-error\n",
            "  \n",
            "  Γ— python setup.py bdist_wheel did not run successfully.\n",
            "  β”‚ exit code: 1\n",
            "  ╰─> [230 lines of output]\n",
            "      running bdist_wheel\n",
            "      /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",
            "        warnings.warn(msg.format('we could not find ninja.'))\n",
            "      running build\n",
            "      running build_py\n",
            "      creating build\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers\n",
            "      copying xformers/_deprecation_warning.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers\n",
            "      copying xformers/version.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers\n",
            "      copying xformers/checkpoint.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers\n",
            "      copying xformers/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers\n",
            "      copying xformers/test.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers\n",
            "      copying xformers/utils.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers\n",
            "      copying xformers/_cpp_lib.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers\n",
            "      copying xformers/info.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
            "      copying xformers/triton/fused_linear_layer.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
            "      copying xformers/triton/sum_strided.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
            "      copying xformers/triton/vararg_kernel.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
            "      copying xformers/triton/k_activations.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
            "      copying xformers/triton/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
            "      copying xformers/triton/k_layer_norm.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
            "      copying xformers/triton/k_sum.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
            "      copying xformers/triton/utils.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
            "      copying xformers/triton/k_fused_matmul_fw.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
            "      copying xformers/triton/dropout.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
            "      copying xformers/triton/k_dropout.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
            "      copying xformers/triton/softmax.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
            "      copying xformers/triton/layer_norm.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
            "      copying xformers/triton/k_fused_matmul_bw.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
            "      copying xformers/triton/k_softmax.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/triton\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/components\n",
            "      copying xformers/components/simplicial_embedding.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components\n",
            "      copying xformers/components/residual.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components\n",
            "      copying xformers/components/reversible.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components\n",
            "      copying xformers/components/activations.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components\n",
            "      copying xformers/components/multi_head_dispatch.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components\n",
            "      copying xformers/components/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components\n",
            "      copying xformers/components/input_projection.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components\n",
            "      copying xformers/components/patch_embedding.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
            "      copying xformers/benchmarks/benchmark_mem_eff_attention.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
            "      copying xformers/benchmarks/benchmark_indexing.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
            "      copying xformers/benchmarks/benchmark_mlp.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
            "      copying xformers/benchmarks/benchmark_triton_stride_sum.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
            "      copying xformers/benchmarks/benchmark_blocksparse_transformers.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
            "      copying xformers/benchmarks/benchmark_mem_eff_attn_decoder.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
            "      copying xformers/benchmarks/benchmark_transformer.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
            "      copying xformers/benchmarks/benchmark_revnet.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
            "      copying xformers/benchmarks/benchmark_swiglu.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
            "      copying xformers/benchmarks/benchmark_triton_layernorm.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
            "      copying xformers/benchmarks/benchmark_causal_blocksparse.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
            "      copying xformers/benchmarks/benchmark_triton_fused_linear.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
            "      copying xformers/benchmarks/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
            "      copying xformers/benchmarks/benchmark_triton_blocksparse.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
            "      copying xformers/benchmarks/benchmark_triton_softmax.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
            "      copying xformers/benchmarks/utils.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
            "      copying xformers/benchmarks/benchmark_triton_dropout.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
            "      copying xformers/benchmarks/benchmark_nystrom_utils.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
            "      copying xformers/benchmarks/benchmark_attn_decoding.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
            "      copying xformers/benchmarks/benchmark_multi_head_dispatch.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
            "      copying xformers/benchmarks/benchmark_sddmm.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
            "      copying xformers/benchmarks/benchmark_core.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/ops\n",
            "      copying xformers/ops/rmsnorm.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops\n",
            "      copying xformers/ops/swiglu_op.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops\n",
            "      copying xformers/ops/unbind.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops\n",
            "      copying xformers/ops/rope_padded.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops\n",
            "      copying xformers/ops/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops\n",
            "      copying xformers/ops/common.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops\n",
            "      copying xformers/ops/indexing.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/profiler\n",
            "      copying xformers/profiler/device_limits.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/profiler\n",
            "      copying xformers/profiler/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/profiler\n",
            "      copying xformers/profiler/api.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/profiler\n",
            "      copying xformers/profiler/slow_ops_profiler.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/profiler\n",
            "      copying xformers/profiler/profiler.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/profiler\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/sparse\n",
            "      copying xformers/sparse/_csr_ops.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/sparse\n",
            "      copying xformers/sparse/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/sparse\n",
            "      copying xformers/sparse/utils.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/sparse\n",
            "      copying xformers/sparse/blocksparse_tensor.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/sparse\n",
            "      copying xformers/sparse/csr_tensor.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/sparse\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/helpers\n",
            "      copying xformers/helpers/test_utils.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/helpers\n",
            "      copying xformers/helpers/hierarchical_configs.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/helpers\n",
            "      copying xformers/helpers/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/helpers\n",
            "      copying xformers/helpers/timm_sparse_attention.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/helpers\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn\n",
            "      copying xformers/_flash_attn/fused_softmax.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn\n",
            "      copying xformers/_flash_attn/flash_blocksparse_attn_interface.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn\n",
            "      copying xformers/_flash_attn/flash_blocksparse_attention.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn\n",
            "      copying xformers/_flash_attn/bert_padding.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn\n",
            "      copying xformers/_flash_attn/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn\n",
            "      copying xformers/_flash_attn/flash_attn_triton_og.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn\n",
            "      copying xformers/_flash_attn/flash_attn_triton.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn\n",
            "      copying xformers/_flash_attn/flash_attn_interface.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/factory\n",
            "      copying xformers/factory/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/factory\n",
            "      copying xformers/factory/hydra_helper.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/factory\n",
            "      copying xformers/factory/block_factory.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/factory\n",
            "      copying xformers/factory/model_factory.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/factory\n",
            "      copying xformers/factory/block_configs.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/factory\n",
            "      copying xformers/factory/weight_init.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/factory\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
            "      copying xformers/components/attention/global_tokens.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
            "      copying xformers/components/attention/ortho.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
            "      copying xformers/components/attention/blocksparse.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
            "      copying xformers/components/attention/local.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
            "      copying xformers/components/attention/compositional.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
            "      copying xformers/components/attention/pooling.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
            "      copying xformers/components/attention/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
            "      copying xformers/components/attention/_sputnik_sparse.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
            "      copying xformers/components/attention/core.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
            "      copying xformers/components/attention/lambda_layer.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
            "      copying xformers/components/attention/random.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
            "      copying xformers/components/attention/fourier_mix.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
            "      copying xformers/components/attention/scaled_dot_product.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
            "      copying xformers/components/attention/utils.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
            "      copying xformers/components/attention/attention_mask.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
            "      copying xformers/components/attention/linformer.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
            "      copying xformers/components/attention/attention_patterns.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
            "      copying xformers/components/attention/visual.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
            "      copying xformers/components/attention/sparsity_config.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
            "      copying xformers/components/attention/nystrom.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
            "      copying xformers/components/attention/favor.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
            "      copying xformers/components/attention/base.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/components/feedforward\n",
            "      copying xformers/components/feedforward/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/feedforward\n",
            "      copying xformers/components/feedforward/mixture_of_experts.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/feedforward\n",
            "      copying xformers/components/feedforward/mlp.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/feedforward\n",
            "      copying xformers/components/feedforward/conv_mlp.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/feedforward\n",
            "      copying xformers/components/feedforward/fused_mlp.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/feedforward\n",
            "      copying xformers/components/feedforward/base.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/feedforward\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/components/positional_embedding\n",
            "      copying xformers/components/positional_embedding/vocab.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/positional_embedding\n",
            "      copying xformers/components/positional_embedding/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/positional_embedding\n",
            "      copying xformers/components/positional_embedding/param.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/positional_embedding\n",
            "      copying xformers/components/positional_embedding/sine.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/positional_embedding\n",
            "      copying xformers/components/positional_embedding/rotary.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/positional_embedding\n",
            "      copying xformers/components/positional_embedding/base.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/positional_embedding\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention/feature_maps\n",
            "      copying xformers/components/attention/feature_maps/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention/feature_maps\n",
            "      copying xformers/components/attention/feature_maps/softmax.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention/feature_maps\n",
            "      copying xformers/components/attention/feature_maps/base.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/components/attention/feature_maps\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks/LRA\n",
            "      copying xformers/benchmarks/LRA/batch_submit.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks/LRA\n",
            "      copying xformers/benchmarks/LRA/batch_fetch_results.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks/LRA\n",
            "      copying xformers/benchmarks/LRA/run_with_submitit.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks/LRA\n",
            "      copying xformers/benchmarks/LRA/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks/LRA\n",
            "      copying xformers/benchmarks/LRA/run_tasks.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks/LRA\n",
            "      copying xformers/benchmarks/LRA/run_grid_search.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks/LRA\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks/LRA/code\n",
            "      copying xformers/benchmarks/LRA/code/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks/LRA/code\n",
            "      copying xformers/benchmarks/LRA/code/model_wrapper.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks/LRA/code\n",
            "      copying xformers/benchmarks/LRA/code/dataset.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/benchmarks/LRA/code\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/_triton\n",
            "      copying xformers/ops/_triton/k_scaled_index_add.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/_triton\n",
            "      copying xformers/ops/_triton/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/_triton\n",
            "      copying xformers/ops/_triton/rope_padded_kernels.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/_triton\n",
            "      copying xformers/ops/_triton/k_index_select_cat.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/_triton\n",
            "      copying xformers/ops/_triton/rmsnorm_kernels.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/_triton\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/fmha\n",
            "      copying xformers/ops/fmha/decoder.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/fmha\n",
            "      copying xformers/ops/fmha/triton.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/fmha\n",
            "      copying xformers/ops/fmha/dispatch.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/fmha\n",
            "      copying xformers/ops/fmha/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/fmha\n",
            "      copying xformers/ops/fmha/attn_bias.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/fmha\n",
            "      copying xformers/ops/fmha/common.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/fmha\n",
            "      copying xformers/ops/fmha/flash.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/fmha\n",
            "      copying xformers/ops/fmha/small_k.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/fmha\n",
            "      copying xformers/ops/fmha/cutlass.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/fmha\n",
            "      copying xformers/ops/fmha/triton_splitk.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/ops/fmha\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/losses\n",
            "      copying xformers/_flash_attn/losses/cross_entropy.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/losses\n",
            "      copying xformers/_flash_attn/losses/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/losses\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/layers\n",
            "      copying xformers/_flash_attn/layers/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/layers\n",
            "      copying xformers/_flash_attn/layers/patch_embed.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/layers\n",
            "      copying xformers/_flash_attn/layers/rotary.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/layers\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/utils\n",
            "      copying xformers/_flash_attn/utils/pretrained.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/utils\n",
            "      copying xformers/_flash_attn/utils/generation.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/utils\n",
            "      copying xformers/_flash_attn/utils/benchmark.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/utils\n",
            "      copying xformers/_flash_attn/utils/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/utils\n",
            "      copying xformers/_flash_attn/utils/distributed.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/utils\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
            "      copying xformers/_flash_attn/models/bigcode.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
            "      copying xformers/_flash_attn/models/gptj.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
            "      copying xformers/_flash_attn/models/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
            "      copying xformers/_flash_attn/models/opt.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
            "      copying xformers/_flash_attn/models/llama.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
            "      copying xformers/_flash_attn/models/vit.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
            "      copying xformers/_flash_attn/models/baichuan.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
            "      copying xformers/_flash_attn/models/bert.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
            "      copying xformers/_flash_attn/models/falcon.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
            "      copying xformers/_flash_attn/models/gpt_neox.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
            "      copying xformers/_flash_attn/models/gpt.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/models\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops\n",
            "      copying xformers/_flash_attn/ops/activations.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops\n",
            "      copying xformers/_flash_attn/ops/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops\n",
            "      copying xformers/_flash_attn/ops/fused_dense.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops\n",
            "      copying xformers/_flash_attn/ops/rms_norm.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops\n",
            "      copying xformers/_flash_attn/ops/layer_norm.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/modules\n",
            "      copying xformers/_flash_attn/modules/embedding.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/modules\n",
            "      copying xformers/_flash_attn/modules/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/modules\n",
            "      copying xformers/_flash_attn/modules/mlp.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/modules\n",
            "      copying xformers/_flash_attn/modules/block.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/modules\n",
            "      copying xformers/_flash_attn/modules/mha.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/modules\n",
            "      creating build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops/triton\n",
            "      copying xformers/_flash_attn/ops/triton/cross_entropy.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops/triton\n",
            "      copying xformers/_flash_attn/ops/triton/linear.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops/triton\n",
            "      copying xformers/_flash_attn/ops/triton/k_activations.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops/triton\n",
            "      copying xformers/_flash_attn/ops/triton/__init__.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops/triton\n",
            "      copying xformers/_flash_attn/ops/triton/mlp.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops/triton\n",
            "      copying xformers/_flash_attn/ops/triton/rotary.py -> build/lib.macosx-14.0-arm64-cpython-311/xformers/_flash_attn/ops/triton\n",
            "      running build_ext\n",
            "      building 'xformers._C' extension\n",
            "      creating build/temp.macosx-14.0-arm64-cpython-311\n",
            "      creating build/temp.macosx-14.0-arm64-cpython-311/xformers\n",
            "      creating build/temp.macosx-14.0-arm64-cpython-311/xformers/csrc\n",
            "      creating build/temp.macosx-14.0-arm64-cpython-311/xformers/csrc/attention\n",
            "      creating build/temp.macosx-14.0-arm64-cpython-311/xformers/csrc/attention/autograd\n",
            "      creating build/temp.macosx-14.0-arm64-cpython-311/xformers/csrc/attention/cpu\n",
            "      creating build/temp.macosx-14.0-arm64-cpython-311/xformers/csrc/swiglu\n",
            "      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",
            "      clang: error: unsupported option '-fopenmp'\n",
            "      error: command '/usr/bin/clang' failed with exit code 1\n",
            "      [end of output]\n",
            "  \n",
            "  note: This error originates from a subprocess, and is likely not a problem with pip.\n",
            "  ERROR: Failed building wheel for xformers\n",
            "  Running setup.py clean for xformers\n",
            "  Building wheel for demucs (setup.py): started\n",
            "  Building wheel for demucs (setup.py): finished with status 'done'\n",
            "  Created wheel for demucs: filename=demucs-4.0.1-py3-none-any.whl size=78391 sha256=a434bc7d0c07a784c87395ea2df1e39447052c26b3e8285c7ba53a1965eee46c\n",
            "  Stored in directory: /Users/eemanmajumder/Library/Caches/pip/wheels/bb/06/a3/83489d50c9f015fa981a2a7bb08fcede75120a0de56775353f\n",
            "  Building wheel for julius (setup.py): started\n",
            "  Building wheel for julius (setup.py): finished with status 'done'\n",
            "  Created wheel for julius: filename=julius-0.2.7-py3-none-any.whl size=21870 sha256=934f4f3f9b370e198960de4c27007b0704168a5122928bd1cc7d19d4587f3281\n",
            "  Stored in directory: /Users/eemanmajumder/Library/Caches/pip/wheels/16/15/d4/edd724cefe78050a6ba3344b8b0c6672db829a799dbb9f81ff\n",
            "  Building wheel for encodec (setup.py): started\n",
            "  Building wheel for encodec (setup.py): finished with status 'done'\n",
            "  Created wheel for encodec: filename=encodec-0.1.1-py3-none-any.whl size=45762 sha256=0ee4d9521716dc1911ec92f6890822d831ae978c76b6b7783707a52113c3f0b9\n",
            "  Stored in directory: /Users/eemanmajumder/Library/Caches/pip/wheels/b4/a4/88/480018a664e58ca7ce6708759193ee51b017b3b72aa3df8a85\n",
            "  Building wheel for pesq (setup.py): started\n",
            "  Building wheel for pesq (setup.py): finished with status 'done'\n",
            "  Created wheel for pesq: filename=pesq-0.0.4-cp311-cp311-macosx_14_0_arm64.whl size=120676 sha256=640c2b52e01cfc30fb1fbed75e604d1cb14d21c3ebae9c00fd418cf322a06d85\n",
            "  Stored in directory: /Users/eemanmajumder/Library/Caches/pip/wheels/ae/f1/23/2698d0bf31eec2b2aa50623b5d93b6206c49c7155d0e31345d\n",
            "  Building wheel for docopt (setup.py): started\n",
            "  Building wheel for docopt (setup.py): finished with status 'done'\n",
            "  Created wheel for docopt: filename=docopt-0.6.2-py2.py3-none-any.whl size=13706 sha256=cdb74a1b54578dba892327c2677efd799864ef7ef5e403f46a87fc757259473e\n",
            "  Stored in directory: /Users/eemanmajumder/Library/Caches/pip/wheels/1a/b0/8c/4b75c4116c31f83c8f9f047231251e13cc74481cca4a78a9ce\n",
            "  Building wheel for dora-search (pyproject.toml): started\n",
            "  Building wheel for dora-search (pyproject.toml): finished with status 'done'\n",
            "  Created wheel for dora-search: filename=dora_search-0.1.12-py3-none-any.whl size=75093 sha256=a6168a33da1b503a82e0480b41bae8625e188bbbe744eb6140fdc19990292c44\n",
            "  Stored in directory: /Users/eemanmajumder/Library/Caches/pip/wheels/e3/f3/a9/2fd1ebbd64c4b2a1e53c81bf25282567a80802ceedfedcab4a\n",
            "  Building wheel for treetable (setup.py): started\n",
            "  Building wheel for treetable (setup.py): finished with status 'done'\n",
            "  Created wheel for treetable: filename=treetable-0.2.5-py3-none-any.whl size=7333 sha256=572513c7b367f074f063e77c4571a6a054b01518e27238c2a1554db71d8a89f0\n",
            "  Stored in directory: /Users/eemanmajumder/Library/Caches/pip/wheels/6c/c9/6a/3ee58e3f4ed63e61de2a515cdb75438521f0372a1f0086be79\n",
            "Successfully built flashy demucs julius encodec pesq docopt dora-search treetable\n",
            "Failed to build xformers\n",
            "ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (xformers)\n",
            "\n",
            "INSTALLATION FAILED...\n"
          ]
        }
      ],
      "source": [
        "# @title Execute first for installing AudioCraft\n",
        "# @markdown Execute this cell to install AudioCraft. (**Note:** the `pip install` stage might take a while.)\n",
        "from pathlib import Path\n",
        "import subprocess as sp\n",
        "from shutil import rmtree\n",
        "import re\n",
        "import time\n",
        "\n",
        "def run_log_on_fail(name, *args, **kwargs):\n",
        "    log = log_folder / (name + \".log\")\n",
        "    print(\"Running stage\", name)\n",
        "    try:\n",
        "        sp.run(*args, **kwargs, stdout=open(log, 'w'), stderr=sp.STDOUT, check=True)\n",
        "    except sp.CalledProcessError:\n",
        "        print(f\"Stage {name} failed, this is NOT expected, see logs hereafter.\")\n",
        "        print(open(log, 'r').read())\n",
        "        raise\n",
        "    else:\n",
        "        return log\n",
        "\n",
        "def install():\n",
        "    global log_folder\n",
        "    ac_folder = Path('./content/audiocraft')\n",
        "    log_folder = Path('./content/logs')\n",
        "    log_folder.mkdir(exist_ok=True, parents=True)\n",
        "    if ac_folder.exists():\n",
        "        rmtree(ac_folder)\n",
        "    try:\n",
        "        run_log_on_fail(\"git clone\", [\"git\", \"clone\", \"https://github.com/facebookresearch/audiocraft\"], cwd=ac_folder.parent)\n",
        "        run_log_on_fail(\"pip install\", [\"pip\", \"install\", \"-e\", \".\"], cwd=ac_folder)\n",
        "        pass\n",
        "    except sp.CalledProcessError:\n",
        "        print(\"INSTALLATION FAILED...\")\n",
        "        return\n",
        "\n",
        "install()"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": 24,
      "metadata": {},
      "outputs": [
        {
          "name": "stdout",
          "output_type": "stream",
          "text": [
            "\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",
            "\u001b[0mRequirement already satisfied: einops in /opt/homebrew/lib/python3.9/site-packages (0.6.1)\n",
            "Collecting julius\n",
            "  Using cached julius-0.2.7.tar.gz (59 kB)\n",
            "  Preparing metadata (setup.py) ... \u001b[?25ldone\n",
            "\u001b[?25hRequirement already satisfied: torch>=1.7.0 in /opt/homebrew/lib/python3.9/site-packages (from julius) (2.1.2)\n",
            "\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",
            "\u001b[0m\u001b[31m\n",
            "\u001b[0m"
          ]
        }
      ],
      "source": [
        "!pip3 install einops julius"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": 3,
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "id": "0mFH0Nma65RU",
        "outputId": "2174c9f0-975d-43ba-834e-7b4450c826d2"
      },
      "outputs": [
        {
          "name": "stdout",
          "output_type": "stream",
          "text": [
            "Requirement already satisfied: einops in /Users/eemanmajumder/miniforge3/envs/env_tf/lib/python3.9/site-packages (0.6.1)\n",
            "Collecting julius\n",
            "  Downloading julius-0.2.7.tar.gz (59 kB)\n",
            "\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",
            "\u001b[?25h  Preparing metadata (setup.py) ... \u001b[?25ldone\n",
            "\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",
            "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",
            "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",
            "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",
            "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",
            "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",
            "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",
            "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",
            "Building wheels for collected packages: julius\n",
            "  Building wheel for julius (setup.py) ... \u001b[?25ldone\n",
            "\u001b[?25h  Created wheel for julius: filename=julius-0.2.7-py3-none-any.whl size=21878 sha256=337431d70ba78c644f8e521c875d27e4910eb1414a295425dd1f07b2dc6892cd\n",
            "  Stored in directory: /Users/eemanmajumder/Library/Caches/pip/wheels/53/0a/a7/fc08f97438f4969d86afa7904336c2eb7eb422101359f3ad11\n",
            "Successfully built julius\n",
            "Installing collected packages: julius\n",
            "Successfully installed julius-0.2.7\n",
            "Traceback (most recent call last):\n",
            "  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",
            "    return _run_code(code, main_globals, None,\n",
            "  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",
            "    exec(code, run_globals)\n",
            "  File \"/Users/eemanmajumder/code_shit/sunnai/content/audiocraft/demos/musicgen_app.py\", line 26, in <module>\n",
            "    from audiocraft.data.audio_utils import convert_audio\n",
            "  File \"/Users/eemanmajumder/code_shit/sunnai/content/audiocraft/audiocraft/__init__.py\", line 24, in <module>\n",
            "    from . import data, modules, models\n",
            "  File \"/Users/eemanmajumder/code_shit/sunnai/content/audiocraft/audiocraft/data/__init__.py\", line 10, in <module>\n",
            "    from . import audio, audio_dataset, info_audio_dataset, music_dataset, sound_dataset\n",
            "  File \"/Users/eemanmajumder/code_shit/sunnai/content/audiocraft/audiocraft/data/audio.py\", line 25, in <module>\n",
            "    from .audio_utils import f32_pcm, normalize_audio\n",
            "  File \"/Users/eemanmajumder/code_shit/sunnai/content/audiocraft/audiocraft/data/audio_utils.py\", line 14, in <module>\n",
            "    import julius\n",
            "ModuleNotFoundError: No module named 'julius'\n"
          ]
        }
      ],
      "source": [
        "#@title Execute then to launch the demo\n",
        "#@markdown Wait until you see `Running on public URL: ` in the link with a *.gradio.live url. Click on the URL, and enjoy!\n",
        "!pip3 install einops julius\n",
        "!cd ./content/audiocraft && /opt/homebrew/bin/python3.9 -m demos.musicgen_app --share"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {},
      "outputs": [],
      "source": []
    }
  ],
  "metadata": {
    "accelerator": "GPU",
    "colab": {
      "gpuType": "T4",
      "provenance": []
    },
    "kernelspec": {
      "display_name": "Python 3",
      "name": "python3"
    },
    "language_info": {
      "codemirror_mode": {
        "name": "ipython",
        "version": 3
      },
      "file_extension": ".py",
      "mimetype": "text/x-python",
      "name": "python",
      "nbconvert_exporter": "python",
      "pygments_lexer": "ipython3",
      "version": "3.9.16"
    }
  },
  "nbformat": 4,
  "nbformat_minor": 0
}