Files
bin/artifact_huggingface_download.sh
Sebastian Krüger 94e2326158 fix: follow symlinks when calculating model disk usage
HuggingFace models use symlinks pointing to blobs in the cache. The stat
command was returning the size of the symlink itself (76 bytes) instead of
the actual file it points to.

Fixed by:
- Adding -L flag to stat commands to follow symlinks
- Testing which stat format works (Linux -c vs macOS -f) before executing
- Using proper spacing and quotes in stat commands
- Checking for both regular files and symlinks in the condition

This fixes disk usage showing as 1 KB instead of the actual ~50+ GB for models
like FLUX.
2025-11-25 15:21:27 +01:00

46 KiB
Executable File