facebookresearch / audiocraft

Audiocraft is a library for audio processing and generation with deep learning. It features the state-of-the-art EnCodec audio compressor / tokenizer, along with MusicGen, a simple and controllable music generation LM with textual and melodic conditioning.
MIT License
20.5k stars 2.06k forks source link

xFormers error when running on Mac M1 #230

Open MirzaCickusic opened 1 year ago

MirzaCickusic commented 1 year ago

When running the application I get:

WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for:
    PyTorch 1.13.1 with CUDA None (you have 2.0.1)
    Python  3.10.4 (you have 3.10.4)

But audiocraft depends on torch >= 2.0.0

GrandaddyShmax commented 1 year ago

I have not tested it myself as I do not have mac, but this repo seems like it solved that issue, give it a try: https://github.com/cocktailpeanutlabs/audiocraft_plus/tree/mac-os-fix