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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| audio_codecs.py | ||
| inference.py | ||
| llama_cpp.py | ||
| orchestrator.py | ||
| worker.py | ||