unsloth/studio/backend/core/inference
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
..
__init__.py Final cleanup 2026-03-12 18:28:04 +00:00
audio_codecs.py Final cleanup 2026-03-12 18:28:04 +00:00
inference.py Fix: Compare Mode Deadlock, Cancel Event Poisoning & IPC Optimization (#4303) 2026-03-15 16:11:44 +04:00
llama_cpp.py studio: check disk space before downloading GGUF models 2026-03-15 05:24:06 -07:00
orchestrator.py Fix: Compare Mode Deadlock, Cancel Event Poisoning & IPC Optimization (#4303) 2026-03-15 16:11:44 +04:00
worker.py Final cleanup 2026-03-12 18:28:04 +00:00