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

How to load a locally downloaded model #513

Open
turndown opened this issue Dec 4, 2024 · 0 comments
Open

How to load a locally downloaded model #513

turndown opened this issue Dec 4, 2024 · 0 comments

Comments

@turndown
Copy link

turndown commented Dec 4, 2024

I couldn't access the address of huggingface locally, so I downloaded the entire model repository directly.
image
Then I specified the cache model path, but there was still an issue with running the command and it still reported an inaccessible error. Is there a problem with setting the path for me?

The cmd I have tried below,but no one works.

export HF_HOME="/data/audiocraft/1"
export HF_HOME="/data/audiocraft/1/musicgen-large"
export AUDIOCRAFT_CACHE_DIR="/data/audiocraft/1/musicgen-large"

The code loading model:

model = MusicGen.get_pretrained("large") 
model = model.to(device)

The error message:
image

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

1 participant