Spaces:
Runtime error
Startup runs out of disk: app.py downloads two full training checkpoints (15 GB, incl. optimizer state) before it can serve
This Space dies during its startup downloads. app.py opens with two snapshot_download calls β nickpai/sdxl_light_caption_output and nickpai/sdxl_light_custom_caption_output, each into its own local directory β and the runtime log shows the second download reaching a 2.51 GB file with only 814 MB of disk free:
UserWarning: Not enough free disk space to download the file. The expected file size is: 2510.39 MB. ... only has 814.08 MB free disk space.
I read both repos' file lists: each holds 8 files totalling 7.51 GB β a 5.00 GB controlnet diffusion_pytorch_model.safetensors plus checkpoint-30000/optimizer.bin at 2.51 GB. Optimizer state is training baggage; nothing at inference reads it. Together the two downloads ask for about 15 GB before the app can start, and 5.02 GB of that is the two optimizer.bin files alone.
The fix is to stop fetching what inference never uses β for example, pass ignore_patterns=["**/optimizer.bin"] to both snapshot_download calls (or list only the weight files the app actually loads). That cuts about 5 GB and removes the file the log shows the disk choking on; if startup still needs more room, the two repos also duplicate the same 5 GB checkpoint layout and are worth a second look.
Check: after the change, a restart completes both downloads and reaches the Gradio launch β no "Not enough free disk space" warning in the boot log.