unsloth/studio/backend/core
Daniel Han 38d700ecb0 studio: check disk space before downloading GGUF models
Query file sizes from HuggingFace via get_paths_info() before
downloading, and compare against free disk space on the cache
partition. Raises a clear error if there is not enough space,
instead of failing mid-download.

Uses get_paths_info() instead of repo_info() because xet-stored
repos return size=None from repo_info().siblings, but
get_paths_info() returns the actual file sizes.

If the size check fails for any reason (network error, API change),
it logs a warning and continues with the download anyway.
2026-03-15 05:24:06 -07:00
..
data_recipe miscallenous studio (#4293) 2026-03-15 14:42:11 +04:00
export Final cleanup 2026-03-12 18:28:04 +00:00
inference studio: check disk space before downloading GGUF models 2026-03-15 05:24:06 -07:00
training Final cleanup 2026-03-12 18:28:04 +00:00
__init__.py Final cleanup 2026-03-12 18:28:04 +00:00