A Hugging Face Space’s runtime disk is temporary, so files written by an app can disappear when it restarts. A new guide lays out three ways to keep data, and explains why a mounted Storage Bucket is not a drop-in database disk.
Hugging Face Watch analysis
What happened
In a community article published on 24 November, Sigrid of Hal9 says Hugging Face’s current documentation describes Space disks as ephemeral. The guide says a code commit, a change to a Space’s settings, or a pause or restart can mean files written at runtime are lost. Files committed to the Space’s repository return when it rebuilds; runtime files do not.
The guide sets out three options: mount a Storage Bucket read-write, push data to a dataset repository on a schedule, or mount a dataset or model read-only for reference material. It says dataset writes should be append-only, use unique filenames and be batched, with at least five minutes between commits. Buckets support writes but are unversioned, so deleting a file is permanent. The article also discloses that Hal9 builds Cloudish, one of the alternative hosting services it discusses.
Why it matters
The practical choice depends on what the app does. A bucket suits files such as images, logs or JSON that the app needs after a restart. A dataset repository can suit batched, append-only records. Reference data that does not change can be mounted read-only.
For a database file that needs frequent random writes and filesystem locking, the guide recommends a host with a block volume instead. It cautions that these volumes generally attach to one instance, which can limit scaling. Storage that persists is useful; storage mistaken for a database can be an expensive way to learn the difference.
Our read
This is a handy, unusually specific map of where Space data goes and what each persistence option is for. The strongest advice is to match the storage to the workload before deployment, and to copy any legacy data deliberately rather than assume it will migrate. The author’s Cloudish connection is clearly disclosed, so treat its hosting comparison as vendor advice, not a neutral ranking.
What to watch
- Whether Hugging Face changes its Space storage documentation or options.
- Whether an app needs whole-file storage, scheduled dataset commits or database-style writes.
- Whether teams with legacy Persistent Storage data have a safe migration plan.
Discussion spark: For a small app that needs durable data, would you choose a Hugging Face Storage Bucket, scheduled dataset commits, or move to a host with a block volume?
Sources and evidence
- Where a Hugging Face Space's files go on restart – and the ways to keep them (24 November 2026, 17:09 UTC)
not affiliated with or endorsed by Hugging Face