Skip to content

[Studio] Keep install-time uv cache inside the Studio root #10193

Closed

Description

@Imagineer99

Problem

Unsloth Desktop creates its venv under the Studio root, but its first-run installer invokes uv venv and the large uv pip install steps without setting UV_CACHE_DIR.

On Windows, uv therefore uses its global default:

%LOCALAPPDATA%\uv\cache

PyTorch/CUDA artifacts can make this several gigabytes, including after a failed install or uninstall. In #6497, a user reported recovering more than 6 GB by cleaning the package caches after an incomplete installation.

Proof in the current source:

Expected

Unless the user already supplied UV_CACHE_DIR, set it to:

<StudioHome>\cache\uv

Do this after resolving StudioHome and before the first uv command, preserve explicit overrides, and apply the equivalent fix to install.sh.

Do not automatically delete the existing global uv cache because it may be shared with unrelated projects.

Activity

  1. added
    dependencies
    on Sep 2, 2026
  2. self-assigned this
    on Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Studiobugdependencies

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions