Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'audiocraft' has no attribute '__version__' when running on Google Colab #443

Open
kahkitng98 opened this issue Mar 29, 2024 · 3 comments

Comments

@kahkitng98
Copy link

There seems to be an error in loading the model when trying to run the codes on Google Colab whereby it gives the following error as attached.

Screenshot 2024-03-29 150209

@Erichy-dev
Copy link

make sure you're using the correct torch version & the supported dependencies.. torch===2.1.0

https://pytorch.org/get-started/previous-versions/

@LordMidi
Copy link

LordMidi commented Apr 1, 2024

same here - using Colab files from Huggingface

https://huggingface.co/facebook/musicgen-stereo-medium

@gitbarlew
Copy link

I had the same issue, in my case I fixed it by forcing a compatible torch vision 0.16.0 version (matching torch and torch audio = 2.1.0) - make sure to start with clean colab environment, my pip installation looks like this now:
!pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants