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.59k stars 2.09k forks source link

How to pre-load model.safetensors #218

Open vantony1 opened 1 year ago

vantony1 commented 1 year ago

Hi,

I am running these models on a huggingface space, however, the issue is that the bootup is slow since everytime the space restarts from sleeping it spends about 2 mins downloading model.safetensors. is there anyway to download these and provide a path to these? I already downloaded the musicgen-medium files and am loading those by providing a path.

adefossez commented 1 year ago

See https://huggingface.co/docs/transformers/installation#cache-setup for how to handle the models we use that are provided by Transformers