radames / Real-Time-Latent-Consistency-Model

App showcasing multiple real-time diffusion models pipelines with Diffusers
https://huggingface.co/spaces/radames/Real-Time-Latent-Consistency-Model
Apache License 2.0
862 stars 101 forks source link

Docker volumes #31

Closed kroffske closed 10 months ago

kroffske commented 10 months ago

What is path to model folders? Is it possible to map volumes, so it wont download models every time?

radames commented 10 months ago

hi @Ravius ,

Since it used diffusers and huggingface_hubto download the models, the default place is HF_HOME cache folder You can do this, set HF_HOME=/data then point your local cache or whatever folder you want

docker run -ti -p 7860:7860 -e HF_HOME=/data -v ~/.cache/huggingface:/data  --gpus all lcm-live