How to mount persistent disk to HF Spaces In Docker?
The newpersistent storageseems fantastic.  How do I mount the storage into the Docker container on spaces?  An update to the documentation would be welcome here!
2023-09-08T21:21:20Z
hi@hamel, thanks for the feedback, we’ll improve the docs.Unfortunately, at moment,/data/is not available at Docker build time, we’re looking into improve that DX cc@chris-rannouHere is an example how I use it on a Dockerfile, by exporting thehuggingface-hubenvHF_HOMEto point to the/data/, so in this example new downloaded models will be cached across rebuildsENV  HF_HOME=/data/.huggingfacehuggingface.coDockerfile · SpacesExamples/Gradio-Docker-Persistent-Storage at mainWe’re on a journey to advance and democratize artificial intelligence through open source and open science.Another useful workaround, since the data files are not on the UI yet, if you ever need, this is using nginx proxying the main web service in addition to a simpleautoindexon the/data/folder. Please ignore the ComfyUI setup steps.Dockerfile -Dockerfile · radames/ComfyUI-data-index at mainNginx -nginx.conf · radames/ComfyUI-data-index at main
2023-12-19T22:06:55Z
12 posts were split to a new topic:Using Persistent Disk and External DB with Flowise Space