unsloth/studio
Daniel Han f4f69f16a6 studio: centralize cache directory for all downloads
Set HF_HOME, HF_HUB_CACHE, HF_XET_CACHE, UV_CACHE_DIR, and
VLLM_CACHE_ROOT to a unified location under ~/.unsloth/studio/cache/
on startup. This keeps all model downloads, datasets, and caches
in one place instead of scattered across ~/.cache/huggingface,
~/.cache/uv, etc.

Layout:
  ~/.unsloth/studio/cache/
    huggingface/       (HF_HOME)
      hub/             (HF_HUB_CACHE -- model/dataset downloads)
      xet/             (HF_XET_CACHE -- xet blob store)
    uv/                (UV_CACHE_DIR -- uv package cache)
    vllm/              (VLLM_CACHE_ROOT -- vllm compiled kernels)

Only sets variables that are not already in the environment, so
user overrides (e.g. HF_HOME=/data/models) are respected.

Cross-platform: uses Path.home() which resolves correctly on
Linux (~), macOS (~), and Windows (C:\Users\<user>).
2026-03-15 05:24:06 -07:00
..
backend studio: centralize cache directory for all downloads 2026-03-15 05:24:06 -07:00
frontend miscallenous studio (#4293) 2026-03-15 14:42:11 +04:00
__init__.py Final cleanup 2026-03-12 18:28:04 +00:00
install_python_stack.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2026-03-14 00:54:09 -07:00
LICENSE.AGPL-3.0 Add AGPL-3.0 license to studio folder 2026-03-09 19:36:25 +00:00
setup.bat Final cleanup 2026-03-12 18:28:04 +00:00
setup.ps1 PR: Windows Setup Improvements (#4299) 2026-03-14 23:59:49 +04:00
setup.sh studio: address review feedback 2026-03-14 00:54:09 -07:00
Unsloth_Studio_Colab.ipynb Final cleanup 2026-03-12 18:28:04 +00:00