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.92k stars 2.14k forks source link

Why xformer can not load, and gpu usage is lower than cpu usage? #116

Open allen-studio opened 1 year ago

allen-studio commented 1 year ago

GPU 3060,cpu 12490F image

image

image

unununununununun commented 1 year ago

image

My GPU load is 90% but on average 50-60%

nolanduly commented 1 year ago

I was running into the same issue and decided to make a virtual environment, open a terminal at the folder (i open the folder in vscode and then open a terminal at the folder path) pip install virtualenv virtualevn venv .\venv\Scripts\activate pip install -r requirements.txt Changed torch>=2.0.0 to torch==2.0.0 in the requirements.txt file, not sure if this is required Make sure to save ctrl+s To fix running it on CPU vs my 3090 I did pip install torch==2.0.0+cu118 torchvision==0.15.1+cu118 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu118

donaldanixon commented 1 year ago

When looking at the Task Manager, you need to click on where it says 3D and change it to CUDA to see the usage