Skip to content

[Bug] Installer ignores chosen folder and installs dependencies in ~/.unsloth #10859

Closed

Description

@maxx-ukoo

Environment

Where are you using Unsloth?

  • Unsloth desktop application
  • Unsloth web UI (unsloth studio)
  • Unsloth CLI
  • Python package or notebook
  • Colab or Kaggle

Operating system and version:
Windows 11

GPU model(s) and accelerator backend:
NVIDIA CUDA

Versions:
Unsloth Studio latest release

What happened?

Steps to reproduce:

  1. Download and run the Unsloth Studio installer.
  2. During installation, select a custom folder (e.g., D:\Apps\Unsloth).
  3. Complete installation and launch the app.
  4. On first run, the app downloads ~10GB of dependencies into ~/.unsloth/studio/ instead of the chosen folder.

Expected behavior:
All dependencies, models, and runtime files should be installed inside the user-selected installation folder (e.g., D:\Apps\Unsloth), not in the hidden .unsloth directory in the home path.

Actual behavior:
Installer places only the launcher in the chosen folder. On first run, the app installs ~10GB of data into ~/.unsloth/studio/, ignoring the user’s installation path.

Model and operation involved:
Initial startup / dependency installation.

Diagnostics and logs

Additional context

This behavior makes it impossible to control disk usage or keep dependencies on a non-system drive. It also breaks expectations for enterprise environments where user home directories are size-limited.

Activity

  1. added
    feature request
    on Sep 13, 2026
  2. lonexreb commented on Sep 16, 2026

    @lonexreb
    Contributor

    Two different roots are in play here, which is why the chosen folder looks ignored:

    • The folder you pick in the desktop installer is where the app (the Tauri shell) goes.
    • The runtime (~/.unsloth/studio: Python, PyTorch, llama.cpp, the ~10 GB) is placed by the Studio installer, which honours UNSLOTH_STUDIO_HOME when run from PowerShell (irm https://unsloth.ai/install.ps1 | iex with $env:UNSLOTH_STUDIO_HOME = 'D:\Apps\Unsloth\studio'; priority is UNSLOTH_STUDIO_HOME > STUDIO_HOME > %USERPROFILE%\.unsloth\studio).

    The desktop app, though, deliberately scrubs both variables from every subprocess it spawns (studio/src-tauri/src/commands.rs, desktop_auth.rs, update.rs: "Tauri uses the legacy root regardless of UNSLOTH_STUDIO_HOME / STUDIO_HOME"), because its auth provisioning and health probes read the legacy root directly. So today the CLI install can live on D:, the desktop-driven one cannot, and there is no setting in the app to change it.

    So this is a desktop feature rather than an installer bug: a root chooser on first run (or the installer's folder written into the app config and passed through to the Rust side instead of being scrubbed). Models already have a separate configurable folder, so the runtime is the remaining piece. @danielhanchen, if you'd take that, I can scope it; the scrub sites are the three files above plus process.rs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugfeature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions