Repository navigation
Description
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, x86_64.
GPU model(s) and accelerator backend:
NVIDIA GeForce RTX 4080 Laptop GPU; CUDA (installer selects cu130).
Versions:
Desktop: 0.1.808-beta
Python: 3.13
PyTorch: 2.11.0+cu130 (reported by installer)
Unsloth package / llama.cpp: unavailable because setup fails.
What happened?
Steps to reproduce:
- Follow Quick Start on the Unsloth GitHub page and download the Windows installer (September 15, 2026, around 19:00 local time).
- Use the custom folder G:\UnslothAgent, launch the app, and click Install.
- Wait for setup. It fails at "Installing unsloth".
- Retry with the proxy disabled: the same error occurs.
Expected behavior:
Setup completes and Unsloth Studio opens.
Actual behavior:
Setup displays "Setup ran into a problem" with this error:
Installation failed: install unsloth failed (exit code 2): error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
All three recorded installation attempts fail with the same error, including automatic retries. The PyTorch download completes before the failure.
Model and operation involved:
Initial desktop setup / dependency installation. No model involved.
Diagnostics and logs
Desktop application
Key fields from Copy Diagnostics:
app_version=0.1.808-beta
os=windows
arch=x86_64
status=install-error
current_step_index=5
elevated=false
gpu_branch=cuda
torch_index_family=cu130
Bundled script:
G:\UnslothAgent\Unsloth\install.ps1
The installer fails at "Installing unsloth" with exit code 2 after three automatic attempts. Subsequent setup attempts restore the previous environment after failure.
Unsloth web UI
Not applicable. Backend session logs are unavailable.
Model-specific logs, if applicable
Not applicable.
Python package or notebook, if applicable
Not applicable; reproduced through the desktop installer.
Additional context
Disabling my proxy did not resolve the issue. I have not confirmed whether the custom installation folder is relevant. The %USERPROFILE% placeholder appears exactly as exported in the diagnostics.
Is there a workaround to complete setup?
`Unsloth Support Diagnostics
diag_report_schema=1
created_at_ms=1789473480521
app_version=0.1.808-beta
os=windows
arch=x86_64
debug_build=false
appimage=false
cpu_logical_count=22
studio_dir=<studio_home>
logs_dir=<studio_home>\logs
app_session_id=app-1789470940278-1
app_started_at_ms=1789470940278
disk_budget=5MiB x 3 segments x 5 groups x 4 kinds ~= 300MiB plus tauri.log/.1
== Trigger/UI state ==
status=install-error
error=Installation failed: install unsloth failed (exit code 2): error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
current_step_index=5
progress_detail=unavailable
flow=install
update_phase=unavailable
update_progress=unavailable
elevation_packages=
last_ui_log_tail:
Starting installation...
Using script: \?\G:\UnslothAgent\Unsloth\install.ps1
[TAURI:DIAG] elevated=false
🦥 Unsloth Studio Installer (Windows)
────────────────────────────────────────────────────
[TAURI:STEP] Checking system dependencies
winget available
[TAURI:STEP] Installing Python
python Python 3.13 already installed
[TAURI:DIAG] diag_schema=1 platform=windows arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=unknown torch_index_family=none
[TAURI:STEP] Installing uv package manager
uv cache reusing existing shared cache ($HOME\AppData\Local\uv\cache) to avoid duplicate Torch/CUDA downloads; use --isolated-uv-cache to isolate
[TAURI:STEP] Creating virtual environment
preserving existing environment for rollback...
previous environment preserved for rollback
venv creating Python 3.13 virtual environment
<studio_home>\unsloth_studio
gpu NVIDIA GPU detected
[TAURI:DIAG] diag_schema=1 platform=windows arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=cuda torch_index_family=cu130
existing install has torch 2.11.0+cu130 -- keeping it (set UNSLOTH_TORCH_UPGRADE=1 to get the newest release)
[TAURI:STEP] Installing PyTorch
installing PyTorch (https://download.pytorch.org/whl/cu130)...
[TAURI:STEP] Installing unsloth
installing unsloth (this may take a few minutes)...
error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
retrying "install unsloth" after transient failure (attempt 2/3, waiting 3s)...
error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
retrying "install unsloth" after transient failure (attempt 3/3, waiting 6s)...
error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
[ERROR] Failed to install unsloth (exit code 2)
restoring previous environment after failed install...
restored previous environment
== Preflight/install state ==
source=live-state
recorded_at_ms=1789470943204
disposition=not_installed
reason=unavailable
port=unavailable
can_auto_repair=false
managed_bin=unavailable
== Flow summaries ==
install: source=live-state flow=install attempt_id=install-1789471582393-4 group_id=none child_type=none started_at_ms=1789471582393 ended_at_ms=1789471604670 exit_status=exit code: 2 intentional_stop=false last_error=Installation failed: install unsloth failed (exit code 2): error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE% log_segments=<studio_home>\logs\install-install-1789471582393-4-s01.log
install.steps: omitted=0
Checking system dependencies
Installing Python
Installing uv package manager
Creating virtual environment
Installing PyTorch
Installing unsloth
install.progress_details: omitted=0
unavailable
install.diag_markers: omitted=0
elevated=false
diag_schema=1 platform=windows arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=unknown torch_index_family=none
diag_schema=1 platform=windows arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=cuda torch_index_family=cu130
install_history:
previous_install: source=live-state-history flow=install attempt_id=install-1789470947626-2 group_id=none child_type=none started_at_ms=1789470947626 ended_at_ms=1789471230794 exit_status=exit code: 2 intentional_stop=false last_error=Installation failed: install unsloth failed (exit code 2): error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE% log_segments=<studio_home>\logs\install-install-1789470947626-2-s01.log
previous_install.steps: omitted=0
Checking system dependencies
Installing Python
Installing uv package manager
Creating virtual environment
Installing PyTorch
Installing unsloth
previous_install.progress_details: omitted=0
unavailable
previous_install.diag_markers: omitted=0
elevated=false
diag_schema=1 platform=windows arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=unknown torch_index_family=none
diag_schema=1 platform=windows arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=cuda torch_index_family=cu130
previous_install: source=live-state-history flow=install attempt_id=install-1789471533028-3 group_id=none child_type=none started_at_ms=1789471533028 ended_at_ms=1789471555508 exit_status=exit code: 2 intentional_stop=false last_error=Installation failed: install unsloth failed (exit code 2): error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE% log_segments=<studio_home>\logs\install-install-1789471533028-3-s01.log
previous_install.steps: omitted=0
Checking system dependencies
Installing Python
Installing uv package manager
Creating virtual environment
Installing PyTorch
Installing unsloth
previous_install.progress_details: omitted=0
unavailable
previous_install.diag_markers: omitted=0
elevated=false
diag_schema=1 platform=windows arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=unknown torch_index_family=none
diag_schema=1 platform=windows arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=cuda torch_index_family=cu130
update: unavailable
repair_groups:
unavailable
== Backend/auth/watchdog ==
backend=unavailable backend_kind=unknown
auth_failure=unavailable
runtime_health:
unavailable: no known backend port
== Lightweight device signals ==
scope=setup/runtime signals, not full hardware inventory
os=windows arch=x86_64
installer_diag_markers:
install: elevated=false
install: diag_schema=1 platform=windows arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=unknown torch_index_family=none
install: diag_schema=1 platform=windows arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=cuda torch_index_family=cu130
== Log tails ==
file=<studio_home>\tauri.log label=tauri.log source=local-app-log size_bytes=14722 mtime_ms=1789471604670 included_bytes=14722 included_lines=157 truncated=false
11:15:40 [INFO] Unsloth desktop app starting
11:15:40 [INFO] Windows app job object initialized for crash-safe child cleanup
11:15:41 [INFO] Managed preflight: install probe result Missing in 0ms
11:15:43 [INFO] desktop_preflight completed disposition=NotInstalled port=None in 2018ms
11:15:47 [INFO] [install] Starting installation...
11:15:47 [INFO] Production: using bundled script at \\?\G:\UnslothAgent\Unsloth\install.ps1
11:15:47 [INFO] [install] Using script: \\?\G:\UnslothAgent\Unsloth\install.ps1
11:15:48 [INFO] [install][stdout] [TAURI:DIAG] elevated=false
11:15:48 [INFO] [install][stdout]
11:15:48 [INFO] [install][stdout] 🦥 Unsloth Studio Installer (Windows)
11:15:48 [INFO] [install][stdout] ────────────────────────────────────────────────────
11:15:48 [INFO] [install][stdout]
11:15:50 [INFO] [install][stdout] [TAURI:STEP] Checking system dependencies
11:15:50 [INFO] [install][stdout] winget available
11:15:50 [INFO] [install][stdout] [TAURI:STEP] Installing Python
11:15:50 [INFO] [install][stdout] python Python 3.13 already installed
11:15:50 [INFO] [install][stdout] [TAURI:DIAG] diag_schema=1 platform=windows arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=unknown torch_index_family=none
11:15:50 [INFO] [install][stdout] [TAURI:STEP] Installing uv package manager
11:15:51 [INFO] [install][stdout] uv cache reusing existing shared cache ($HOME\AppData\Local\uv\cache) to avoid duplicate Torch/CUDA downloads; use --isolated-uv-cache to isolate
11:15:51 [INFO] [install][stdout] [TAURI:STEP] Creating virtual environment
11:15:51 [INFO] [install][stdout] venv creating Python 3.13 virtual environment
11:15:51 [INFO] [install][stdout] <studio_home>\unsloth_studio
11:15:51 [INFO] [install][stdout] [TAURI:OUTPUT_CLEAR] create virtual environment
11:15:51 [INFO] [install][stdout] [TAURI:ERROR_CLEAR] create virtual environment recovered
11:15:51 [INFO] [install][stderr] [TAURI:ERROR_CLEAR] create virtual environment recovered
11:15:51 [INFO] [install][stdout] gpu NVIDIA GPU detected
11:15:51 [INFO] [install][stdout] [TAURI:DIAG] diag_schema=1 platform=windows arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=cuda torch_index_family=cu130
11:15:51 [INFO] [install][stdout] [TAURI:STEP] Installing PyTorch
11:15:51 [INFO] [install][stdout] installing PyTorch (https://download.pytorch.org/whl/cu130)...
11:15:51 [INFO] [install][stdout] [TAURI:OUTPUT_CLEAR] install PyTorch
11:15:55 [INFO] [install][stdout] [TAURI:DL] torch 1.8GiB
11:20:16 [INFO] [install][stdout] [TAURI:DL_DONE] torch
11:20:21 [INFO] [install][stdout] [TAURI:ERROR_CLEAR] install PyTorch recovered
11:20:21 [INFO] [install][stderr] [TAURI:ERROR_CLEAR] install PyTorch recovered
11:20:21 [INFO] [install][stdout] [TAURI:STEP] Installing unsloth
11:20:21 [INFO] [install][stdout] installing unsloth (this may take a few minutes)...
11:20:21 [INFO] [install][stdout] [TAURI:OUTPUT_CLEAR] install unsloth
11:20:21 [INFO] [install][stdout] error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
11:20:21 [INFO] [install][stdout]
11:20:21 [INFO] [install][stdout] [TAURI:ERROR_OUTPUT] install unsloth failed (exit code 2)
11:20:21 [INFO] [install][stdout] retrying "install unsloth" after transient failure (attempt 2/3, waiting 3s)...
11:20:24 [INFO] [install][stdout] [TAURI:OUTPUT_CLEAR] install unsloth
11:20:24 [INFO] [install][stdout] error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
11:20:24 [INFO] [install][stdout]
11:20:24 [INFO] [install][stdout] [TAURI:ERROR_OUTPUT] install unsloth failed (exit code 2)
11:20:24 [INFO] [install][stdout] retrying "install unsloth" after transient failure (attempt 3/3, waiting 6s)...
11:20:30 [INFO] [install][stdout] [TAURI:OUTPUT_CLEAR] install unsloth
11:20:30 [INFO] [install][stdout] error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
11:20:30 [INFO] [install][stdout]
11:20:30 [INFO] [install][stdout] [TAURI:ERROR_OUTPUT] install unsloth failed (exit code 2)
11:20:30 [INFO] [install][stdout] [ERROR] Failed to install unsloth (exit code 2)
11:20:30 [INFO] [install][stdout] [TAURI:ERROR_DEFAULT] Failed to install unsloth (exit code 2)
11:20:30 [ERROR] [install] FAILED: Installation failed: install unsloth failed (exit code 2): error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
11:25:33 [INFO] [install] Starting installation...
11:25:33 [INFO] Production: using bundled script at \\?\G:\UnslothAgent\Unsloth\install.ps1
11:25:33 [INFO] [install] Using script: \\?\G:\UnslothAgent\Unsloth\install.ps1
11:25:33 [INFO] [install][stdout] [TAURI:DIAG] elevated=false
11:25:33 [INFO] [install][stdout]
11:25:33 [INFO] [install][stdout] 🦥 Unsloth Studio Installer (Windows)
11:25:33 [INFO] [install][stdout] ────────────────────────────────────────────────────
11:25:33 [INFO] [install][stdout]
11:25:35 [INFO] [install][stdout] [TAURI:STEP] Checking system dependencies
11:25:35 [INFO] [install][stdout] winget available
11:25:35 [INFO] [install][stdout] [TAURI:STEP] Installing Python
11:25:35 [INFO] [install][stdout] python Python 3.13 already installed
11:25:35 [INFO] [install][stdout] [TAURI:DIAG] diag_schema=1 platform=windows arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=unknown torch_index_family=none
11:25:35 [INFO] [install][stdout] [TAURI:STEP] Installing uv package manager
11:25:35 [INFO] [install][stdout] uv cache reusing existing shared cache ($HOME\AppData\Local\uv\cache) to avoid duplicate Torch/CUDA downloads; use --isolated-uv-cache to isolate
11:25:35 [INFO] [install][stdout] [TAURI:STEP] Creating virtual environment
11:25:35 [INFO] [install][stdout] preserving existing environment for rollback...
11:25:35 [INFO] [install][stdout] previous environment preserved for rollback
11:25:35 [INFO] [install][stdout] venv creating Python 3.13 virtual environment
11:25:35 [INFO] [install][stdout] <studio_home>\unsloth_studio
11:25:35 [INFO] [install][stdout] [TAURI:OUTPUT_CLEAR] create virtual environment
11:25:35 [INFO] [install][stdout] [TAURI:ERROR_CLEAR] create virtual environment recovered
11:25:35 [INFO] [install][stderr] [TAURI:ERROR_CLEAR] create virtual environment recovered
11:25:36 [INFO] [install][stdout] gpu NVIDIA GPU detected
11:25:36 [INFO] [install][stdout] [TAURI:DIAG] diag_schema=1 platform=windows arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=cuda torch_index_family=cu130
11:25:36 [INFO] [install][stdout] existing install has torch 2.11.0+cu130 -- keeping it (set UNSLOTH_TORCH_UPGRADE=1 to get the newest release)
11:25:36 [INFO] [install][stdout] [TAURI:STEP] Installing PyTorch
11:25:36 [INFO] [install][stdout] installing PyTorch (https://download.pytorch.org/whl/cu130)...
11:25:36 [INFO] [install][stdout] [TAURI:OUTPUT_CLEAR] install PyTorch (kept release)
11:25:42 [INFO] [install][stdout] [TAURI:ERROR_CLEAR] install PyTorch (kept release) recovered
11:25:42 [INFO] [install][stderr] [TAURI:ERROR_CLEAR] install PyTorch (kept release) recovered
11:25:42 [INFO] [install][stdout] [TAURI:STEP] Installing unsloth
11:25:42 [INFO] [install][stdout] installing unsloth (this may take a few minutes)...
11:25:43 [INFO] [install][stdout] [TAURI:OUTPUT_CLEAR] install unsloth
11:25:43 [INFO] [install][stdout] error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
11:25:43 [INFO] [install][stdout]
11:25:43 [INFO] [install][stdout] [TAURI:ERROR_OUTPUT] install unsloth failed (exit code 2)
11:25:43 [INFO] [install][stdout] retrying "install unsloth" after transient failure (attempt 2/3, waiting 3s)...
11:25:46 [INFO] [install][stdout] [TAURI:OUTPUT_CLEAR] install unsloth
11:25:46 [INFO] [install][stdout] error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
11:25:46 [INFO] [install][stdout]
11:25:46 [INFO] [install][stdout] [TAURI:ERROR_OUTPUT] install unsloth failed (exit code 2)
11:25:46 [INFO] [install][stdout] retrying "install unsloth" after transient failure (attempt 3/3, waiting 6s)...
11:25:52 [INFO] [install][stdout] [TAURI:OUTPUT_CLEAR] install unsloth
11:25:52 [INFO] [install][stdout] error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
11:25:52 [INFO] [install][stdout]
11:25:52 [INFO] [install][stdout] [TAURI:ERROR_OUTPUT] install unsloth failed (exit code 2)
11:25:52 [INFO] [install][stdout] [ERROR] Failed to install unsloth (exit code 2)
11:25:52 [INFO] [install][stdout] [TAURI:ERROR_DEFAULT] Failed to install unsloth (exit code 2)
11:25:52 [INFO] [install][stdout] restoring previous environment after failed install...
11:25:55 [INFO] [install][stdout] restored previous environment
11:25:55 [ERROR] [install] FAILED: Installation failed: install unsloth failed (exit code 2): error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
11:26:22 [INFO] [install] Starting installation...
11:26:22 [INFO] Production: using bundled script at \\?\G:\UnslothAgent\Unsloth\install.ps1
11:26:22 [INFO] [install] Using script: \\?\G:\UnslothAgent\Unsloth\install.ps1
11:26:22 [INFO] [install][stdout] [TAURI:DIAG] elevated=false
11:26:22 [INFO] [install][stdout]
11:26:22 [INFO] [install][stdout] 🦥 Unsloth Studio Installer (Windows)
11:26:22 [INFO] [install][stdout] ────────────────────────────────────────────────────
11:26:22 [INFO] [install][stdout]
11:26:24 [INFO] [install][stdout] [TAURI:STEP] Checking system dependencies
11:26:24 [INFO] [install][stdout] winget available
11:26:24 [INFO] [install][stdout] [TAURI:STEP] Installing Python
11:26:24 [INFO] [install][stdout] python Python 3.13 already installed
11:26:24 [INFO] [install][stdout] [TAURI:DIAG] diag_schema=1 platform=windows arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=unknown torch_index_family=none
11:26:24 [INFO] [install][stdout] [TAURI:STEP] Installing uv package manager
11:26:24 [INFO] [install][stdout] uv cache reusing existing shared cache ($HOME\AppData\Local\uv\cache) to avoid duplicate Torch/CUDA downloads; use --isolated-uv-cache to isolate
11:26:24 [INFO] [install][stdout] [TAURI:STEP] Creating virtual environment
11:26:25 [INFO] [install][stdout] preserving existing environment for rollback...
11:26:25 [INFO] [install][stdout] previous environment preserved for rollback
11:26:25 [INFO] [install][stdout] venv creating Python 3.13 virtual environment
11:26:25 [INFO] [install][stdout] <studio_home>\unsloth_studio
11:26:25 [INFO] [install][stdout] [TAURI:OUTPUT_CLEAR] create virtual environment
11:26:25 [INFO] [install][stdout] [TAURI:ERROR_CLEAR] create virtual environment recovered
11:26:25 [INFO] [install][stderr] [TAURI:ERROR_CLEAR] create virtual environment recovered
11:26:25 [INFO] [install][stdout] gpu NVIDIA GPU detected
11:26:25 [INFO] [install][stdout] [TAURI:DIAG] diag_schema=1 platform=windows arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=cuda torch_index_family=cu130
11:26:25 [INFO] [install][stdout] existing install has torch 2.11.0+cu130 -- keeping it (set UNSLOTH_TORCH_UPGRADE=1 to get the newest release)
11:26:25 [INFO] [install][stdout] [TAURI:STEP] Installing PyTorch
11:26:25 [INFO] [install][stdout] installing PyTorch (https://download.pytorch.org/whl/cu130)...
11:26:25 [INFO] [install][stdout] [TAURI:OUTPUT_CLEAR] install PyTorch (kept release)
11:26:30 [INFO] [install][stdout] [TAURI:ERROR_CLEAR] install PyTorch (kept release) recovered
11:26:30 [INFO] [install][stderr] [TAURI:ERROR_CLEAR] install PyTorch (kept release) recovered
11:26:30 [INFO] [install][stdout] [TAURI:STEP] Installing unsloth
11:26:30 [INFO] [install][stdout] installing unsloth (this may take a few minutes)...
11:26:31 [INFO] [install][stdout] [TAURI:OUTPUT_CLEAR] install unsloth
11:26:31 [INFO] [install][stdout] error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
11:26:31 [INFO] [install][stdout]
11:26:31 [INFO] [install][stdout] [TAURI:ERROR_OUTPUT] install unsloth failed (exit code 2)
11:26:31 [INFO] [install][stdout] retrying "install unsloth" after transient failure (attempt 2/3, waiting 3s)...
11:26:34 [INFO] [install][stdout] [TAURI:OUTPUT_CLEAR] install unsloth
11:26:34 [INFO] [install][stdout] error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
11:26:34 [INFO] [install][stdout]
11:26:34 [INFO] [install][stdout] [TAURI:ERROR_OUTPUT] install unsloth failed (exit code 2)
11:26:34 [INFO] [install][stdout] retrying "install unsloth" after transient failure (attempt 3/3, waiting 6s)...
11:26:40 [INFO] [install][stdout] [TAURI:OUTPUT_CLEAR] install unsloth
11:26:40 [INFO] [install][stdout] error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
11:26:40 [INFO] [install][stdout]
11:26:40 [INFO] [install][stdout] [TAURI:ERROR_OUTPUT] install unsloth failed (exit code 2)
11:26:40 [INFO] [install][stdout] [ERROR] Failed to install unsloth (exit code 2)
11:26:40 [INFO] [install][stdout] [TAURI:ERROR_DEFAULT] Failed to install unsloth (exit code 2)
11:26:40 [INFO] [install][stdout] restoring previous environment after failed install...
11:26:44 [INFO] [install][stdout] restored previous environment
11:26:44 [ERROR] [install] FAILED: Installation failed: install unsloth failed (exit code 2): error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
file=<studio_home>\tauri.log.1 label=tauri.log.1 source=local-app-log unavailable=The system cannot find the file specified. (os error 2)
backend_session_logs=unavailable searched=<studio_home>\logs\server
-- phase_log_group label=install:install-1789470947626-2 source=live-state-history --
note=previous linked install attempt retained in memory
file=<studio_home>\logs\install-install-1789470947626-2-s01.log label=install:install-1789470947626-2 source=live-state-history size_bytes=3860 mtime_ms=1789471230658 included_bytes=3860 included_lines=53 truncated=false
# Unsloth diagnostics phase log
diag_schema=1
flow=install
segment_index=1
started_at_ms=1789470947626
attempt_id=install-1789470947626-2
--- log ---
[1789470947628][meta] Using script: \\?\G:\UnslothAgent\Unsloth\install.ps1
[1789470948361][stdout] [TAURI:DIAG] elevated=false
[1789470948379][stdout]
[1789470948380][stdout] 🦥 Unsloth Studio Installer (Windows)
[1789470948384][stdout] ────────────────────────────────────────────────────
[1789470948384][stdout]
[1789470950522][stdout] [TAURI:STEP] Checking system dependencies
[1789470950552][stdout] winget available
[1789470950552][stdout] [TAURI:STEP] Installing Python
[1789470950805][stdout] python Python 3.13 already installed
[1789470950811][stdout] [TAURI:DIAG] diag_schema=1 platform=windows arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=unknown torch_index_family=none
[1789470950811][stdout] [TAURI:STEP] Installing uv package manager
[1789470951214][stdout] uv cache reusing existing shared cache ($HOME\AppData\Local\uv\cache) to avoid duplicate Torch/CUDA downloads; use --isolated-uv-cache to isolate
[1789470951215][stdout] [TAURI:STEP] Creating virtual environment
[1789470951225][stdout] venv creating Python 3.13 virtual environment
[1789470951227][stdout] <studio_home>\unsloth_studio
[1789470951235][stdout] [TAURI:OUTPUT_CLEAR] create virtual environment
[1789470951322][stdout] [TAURI:ERROR_CLEAR] create virtual environment recovered
[1789470951322][stderr] [TAURI:ERROR_CLEAR] create virtual environment recovered
[1789470951568][stdout] gpu NVIDIA GPU detected
[1789470951757][stdout] [TAURI:DIAG] diag_schema=1 platform=windows arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=cuda torch_index_family=cu130
[1789470951759][stdout] [TAURI:STEP] Installing PyTorch
[1789470951823][stdout] installing PyTorch (https://download.pytorch.org/whl/cu130)...
[1789470951834][stdout] [TAURI:OUTPUT_CLEAR] install PyTorch
[1789470955038][stdout] [TAURI:DL] torch 1.8GiB
[1789471216042][stdout] [TAURI:DL_DONE] torch
[1789471221249][stdout] [TAURI:ERROR_CLEAR] install PyTorch recovered
[1789471221249][stderr] [TAURI:ERROR_CLEAR] install PyTorch recovered
[1789471221252][stdout] [TAURI:STEP] Installing unsloth
[1789471221253][stdout] installing unsloth (this may take a few minutes)...
[1789471221557][stdout] [TAURI:OUTPUT_CLEAR] install unsloth
[1789471221601][stdout] error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
[1789471221601][stdout]
[1789471221602][stdout] [TAURI:ERROR_OUTPUT] install unsloth failed (exit code 2)
[1789471221602][stdout] retrying "install unsloth" after transient failure (attempt 2/3, waiting 3s)...
[1789471224606][stdout] [TAURI:OUTPUT_CLEAR] install unsloth
[1789471224626][stdout] error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
[1789471224626][stdout]
[1789471224626][stdout] [TAURI:ERROR_OUTPUT] install unsloth failed (exit code 2)
[1789471224626][stdout] retrying "install unsloth" after transient failure (attempt 3/3, waiting 6s)...
[1789471230631][stdout] [TAURI:OUTPUT_CLEAR] install unsloth
[1789471230654][stdout] error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
[1789471230654][stdout]
[1789471230654][stdout] [TAURI:ERROR_OUTPUT] install unsloth failed (exit code 2)
[1789471230655][stdout] [ERROR] Failed to install unsloth (exit code 2)
[1789471230659][stdout] [TAURI:ERROR_DEFAULT] Failed to install unsloth (exit code 2)
-- phase_log_group label=install:install-1789471533028-3 source=live-state-history --
note=previous linked install attempt retained in memory
file=<studio_home>\logs\install-install-1789471533028-3-s01.log label=install:install-1789471533028-3 source=live-state-history size_bytes=4303 mtime_ms=1789471555383 included_bytes=4303 included_lines=56 truncated=false
# Unsloth diagnostics phase log
diag_schema=1
flow=install
segment_index=1
started_at_ms=1789471533028
attempt_id=install-1789471533028-3
--- log ---
[1789471533029][meta] Using script: \\?\G:\UnslothAgent\Unsloth\install.ps1
[1789471533553][stdout] [TAURI:DIAG] elevated=false
[1789471533569][stdout]
[1789471533569][stdout] 🦥 Unsloth Studio Installer (Windows)
[1789471533569][stdout] ────────────────────────────────────────────────────
[1789471533570][stdout]
[1789471535364][stdout] [TAURI:STEP] Checking system dependencies
[1789471535380][stdout] winget available
[1789471535381][stdout] [TAURI:STEP] Installing Python
[1789471535552][stdout] python Python 3.13 already installed
[1789471535560][stdout] [TAURI:DIAG] diag_schema=1 platform=windows arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=unknown torch_index_family=none
[1789471535560][stdout] [TAURI:STEP] Installing uv package manager
[1789471535702][stdout] uv cache reusing existing shared cache ($HOME\AppData\Local\uv\cache) to avoid duplicate Torch/CUDA downloads; use --isolated-uv-cache to isolate
[1789471535703][stdout] [TAURI:STEP] Creating virtual environment
[1789471535884][stdout] preserving existing environment for rollback...
[1789471535895][stdout] previous environment preserved for rollback
[1789471535903][stdout] venv creating Python 3.13 virtual environment
[1789471535903][stdout] <studio_home>\unsloth_studio
[1789471535911][stdout] [TAURI:OUTPUT_CLEAR] create virtual environment
[1789471535970][stdout] [TAURI:ERROR_CLEAR] create virtual environment recovered
[1789471535970][stderr] [TAURI:ERROR_CLEAR] create virtual environment recovered
[1789471536185][stdout] gpu NVIDIA GPU detected
[1789471536357][stdout] [TAURI:DIAG] diag_schema=1 platform=windows arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=cuda torch_index_family=cu130
[1789471536370][stdout] existing install has torch 2.11.0+cu130 -- keeping it (set UNSLOTH_TORCH_UPGRADE=1 to get the newest release)
[1789471536370][stdout] [TAURI:STEP] Installing PyTorch
[1789471536435][stdout] installing PyTorch (https://download.pytorch.org/whl/cu130)...
[1789471536447][stdout] [TAURI:OUTPUT_CLEAR] install PyTorch (kept release)
[1789471542894][stdout] [TAURI:ERROR_CLEAR] install PyTorch (kept release) recovered
[1789471542894][stderr] [TAURI:ERROR_CLEAR] install PyTorch (kept release) recovered
[1789471542896][stdout] [TAURI:STEP] Installing unsloth
[1789471542896][stdout] installing unsloth (this may take a few minutes)...
[1789471543088][stdout] [TAURI:OUTPUT_CLEAR] install unsloth
[1789471543115][stdout] error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
[1789471543116][stdout]
[1789471543116][stdout] [TAURI:ERROR_OUTPUT] install unsloth failed (exit code 2)
[1789471543117][stdout] retrying "install unsloth" after transient failure (attempt 2/3, waiting 3s)...
[1789471546134][stdout] [TAURI:OUTPUT_CLEAR] install unsloth
[1789471546157][stdout] error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
[1789471546157][stdout]
[1789471546157][stdout] [TAURI:ERROR_OUTPUT] install unsloth failed (exit code 2)
[1789471546158][stdout] retrying "install unsloth" after transient failure (attempt 3/3, waiting 6s)...
[1789471552161][stdout] [TAURI:OUTPUT_CLEAR] install unsloth
[1789471552186][stdout] error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
[1789471552186][stdout]
[1789471552186][stdout] [TAURI:ERROR_OUTPUT] install unsloth failed (exit code 2)
[1789471552187][stdout] [ERROR] Failed to install unsloth (exit code 2)
[1789471552190][stdout] [TAURI:ERROR_DEFAULT] Failed to install unsloth (exit code 2)
[1789471552194][stdout] restoring previous environment after failed install...
[1789471555383][stdout] restored previous environment
-- phase_log_group label=install:install-1789471582393-4 source=live-state --
file=<studio_home>\logs\install-install-1789471582393-4-s01.log label=install:install-1789471582393-4 source=live-state size_bytes=4303 mtime_ms=1789471604586 included_bytes=4303 included_lines=56 truncated=false
# Unsloth diagnostics phase log
diag_schema=1
flow=install
segment_index=1
started_at_ms=1789471582393
attempt_id=install-1789471582393-4
--- log ---
[1789471582395][meta] Using script: \\?\G:\UnslothAgent\Unsloth\install.ps1
[1789471582870][stdout] [TAURI:DIAG] elevated=false
[1789471582885][stdout]
[1789471582885][stdout] 🦥 Unsloth Studio Installer (Windows)
[1789471582886][stdout] ────────────────────────────────────────────────────
[1789471582886][stdout]
[1789471584650][stdout] [TAURI:STEP] Checking system dependencies
[1789471584663][stdout] winget available
[1789471584664][stdout] [TAURI:STEP] Installing Python
[1789471584825][stdout] python Python 3.13 already installed
[1789471584832][stdout] [TAURI:DIAG] diag_schema=1 platform=windows arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=unknown torch_index_family=none
[1789471584832][stdout] [TAURI:STEP] Installing uv package manager
[1789471584980][stdout] uv cache reusing existing shared cache ($HOME\AppData\Local\uv\cache) to avoid duplicate Torch/CUDA downloads; use --isolated-uv-cache to isolate
[1789471584980][stdout] [TAURI:STEP] Creating virtual environment
[1789471585148][stdout] preserving existing environment for rollback...
[1789471585159][stdout] previous environment preserved for rollback
[1789471585160][stdout] venv creating Python 3.13 virtual environment
[1789471585160][stdout] <studio_home>\unsloth_studio
[1789471585168][stdout] [TAURI:OUTPUT_CLEAR] create virtual environment
[1789471585230][stdout] [TAURI:ERROR_CLEAR] create virtual environment recovered
[1789471585230][stderr] [TAURI:ERROR_CLEAR] create virtual environment recovered
[1789471585439][stdout] gpu NVIDIA GPU detected
[1789471585630][stdout] [TAURI:DIAG] diag_schema=1 platform=windows arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=cuda torch_index_family=cu130
[1789471585643][stdout] existing install has torch 2.11.0+cu130 -- keeping it (set UNSLOTH_TORCH_UPGRADE=1 to get the newest release)
[1789471585643][stdout] [TAURI:STEP] Installing PyTorch
[1789471585700][stdout] installing PyTorch (https://download.pytorch.org/whl/cu130)...
[1789471585712][stdout] [TAURI:OUTPUT_CLEAR] install PyTorch (kept release)
[1789471590884][stdout] [TAURI:ERROR_CLEAR] install PyTorch (kept release) recovered
[1789471590884][stderr] [TAURI:ERROR_CLEAR] install PyTorch (kept release) recovered
[1789471590887][stdout] [TAURI:STEP] Installing unsloth
[1789471590887][stdout] installing unsloth (this may take a few minutes)...
[1789471591092][stdout] [TAURI:OUTPUT_CLEAR] install unsloth
[1789471591120][stdout] error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
[1789471591120][stdout]
[1789471591120][stdout] [TAURI:ERROR_OUTPUT] install unsloth failed (exit code 2)
[1789471591121][stdout] retrying "install unsloth" after transient failure (attempt 2/3, waiting 3s)...
[1789471594124][stdout] [TAURI:OUTPUT_CLEAR] install unsloth
[1789471594147][stdout] error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
[1789471594147][stdout]
[1789471594147][stdout] [TAURI:ERROR_OUTPUT] install unsloth failed (exit code 2)
[1789471594147][stdout] retrying "install unsloth" after transient failure (attempt 3/3, waiting 6s)...
[1789471600151][stdout] [TAURI:OUTPUT_CLEAR] install unsloth
[1789471600175][stdout] error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at %USERPROFILE%
[1789471600176][stdout]
[1789471600176][stdout] [TAURI:ERROR_OUTPUT] install unsloth failed (exit code 2)
[1789471600177][stdout] [ERROR] Failed to install unsloth (exit code 2)
[1789471600181][stdout] [TAURI:ERROR_DEFAULT] Failed to install unsloth (exit code 2)
[1789471600189][stdout] restoring previous environment after failed install...
[1789471604586][stdout] restored previous environment
== Collection warnings ==
- <studio_home>\tauri.log.1 unavailable: The system cannot find the file specified. (os error 2)
== Redaction/omission summary ==
redaction_replacements=47
redaction_scope=ANSI, private keys, URL credentials, auth headers, cookies, token patterns, assignment-style secrets, studio/home paths, emails
report_bounds=log sections <=1000 lines/200KiB each; backend session logs <=400 lines/64KiB each; total clipboard text <=1MiB
known_v1_gap=elevated apt helper may buffer subprocess output before diagnostics caps it
known_v1_gap=normal install elevation resume is linked in same-run state/report history; disk fallback conservatively includes recent install attempts but has no explicit install_group_id in V1
`
Activity
L4XB commentedon Sep 15, 2026
Some measurements that narrow this. All run with uv 0.10.12 on macOS rather than
on Windows, so treat the paths as illustrative; the requirements parser and its
message shapes are platform independent.
1. It is a requirements file parse, not the
unsloth>=...argument.uv reports a bad requirement on the command line and a bad line inside a file
with two different messages:
The reported error is the second shape, so uv opened and read a file. On the
"install unsloth" step the only file it is handed is the one written by
New-UnslothTorchOverridesFileininstall.ps1, passed as--overrides.2. #10722 / #10765 look rule-out-able without waiting for the reporter.
A space in the overrides path makes uv split the value, and that fails before it
parses anything:
The neighbouring cases are distinct too: a directory gives
failed to read from file ...: Is a directory (os error 21), a missing filegives
File not found. None of them can produceUnexpected '[', so thepre-#10765 temp-path bug appears to be a different failure, not this one.
3. The
[has to be the first non-whitespace character of a line in that file.So a mangled
torch==pin gives the second message, not the reported one. Thefile has a line that starts with
[, and the pin writer never emits one: theonly content it folds in besides the
torch/torchvision/torchaudiopins iswhatever
UV_OVERRIDEpoints at. That makes your question 2 the highest-valueone, and it would be worth asking for the first character of each line of that
file rather than its contents, which keeps it non-sensitive.
4. On whether
%USERPROFILE%is a redaction.You are right that it can be, but the exported line does not look like a
redaction of a normal temp path.
windows_home_reinstudio/src-tauri/src/diagnostics/redaction.rsiswhose character class excludes
\but not:, so it stops at the next pathseparator and keeps everything after it:
A real temp-file path would therefore have kept both its filename and its
:line:columnin Copy Diagnostics. The pasted line has neither, and a bare homedirectory would have produced the
Is a directoryerror rather than a parseerror. Something other than
windows_home_retrimmed that line, which is whythe unredacted local log you asked for in question 3 is worth more here than the
Copy Diagnostics text, and why the
:line:columnsuffix is the part to preserve.File references are against
main@128659085.Sorcerer-Zhao commentedon Sep 16, 2026
Thank you both for the detailed investigation and guidance. I followed up with the environment-variable checks and inspected the local log. The results below provide an additional detail that may help explain the error.
Follow-up findings
1. Username and user-profile path
Both my username and my USERPROFILE path contain a space.
For privacy, I use these consistent placeholders throughout this comment:
<prefix> <suffix>C:\Users\<prefix> <suffix>C:\Users\<prefix>The space between
<prefix>and<suffix>represents a real space. The error path stops immediately before that space.The separate TEMP/TMP space-check results are not available in this report yet; the confirmed path containing a space is USERPROFILE.
2. uv environment variables
All three variables are unset in the current PowerShell process, user-level settings, and machine-level settings:
These checks describe the current PowerShell environment and the persistent settings; they do not directly inspect the environment of the previously running desktop process.
3. Complete error from the local log
The raw stdout entry in
tauri.logis:The same location and error appear across all three recorded installation attempts and their automatic retries.
The later
FAILEDsummary in the same log displays%USERPROFILE%instead, without the:1:1suffix. The raw stdout entry above preserves that suffix.4. Additional check of the truncated path
I checked the path obtained by taking USERPROFILE up to its first space:
[after trimming leading whitespace.This may explain why a split path produces a requirements parsing error on my machine rather than
File not found: the truncated path actually resolves to a readable file with content that triggers this error.Could the temp-path issue addressed by #10765 therefore still be relevant in this case? These findings support that possibility, but I have not yet verified that the patch or a temporary-directory workaround resolves the installation failure.
Command outputs
The outputs below are reproduced from my checks, with username-related text replaced consistently as described above. No file contents or environment-variable values containing credentials are included.
A. Username and user-profile checks
B. uv environment-variable checks
C. Truncated-path checks
D. Local log search output
In the output below,
tauri.log:38:denotes the line number in the log. The trailing:1:1inside the uv error denotes the reported location in the file being parsed.Expand all captured matching log lines
Fall back through several space-free locations, and say so when none …
Windows installer: stop uv splitting a requirements path, and keep th…
Sorcerer-Zhao commentedon Sep 17, 2026
so…… when can i download the fixed version? i am eager to use it
thanks!
L4XB commentedon Sep 18, 2026
It is out: v0.1.810-beta, published 2026-09-17. The x86_64 asset is
Unsloth-Desktop-Windows.exe(21167112 B, sha256c45e95e3832677dace475c711d0cdfe8711d5d15db69a9c5184e22271f582f22); theUnsloth-Desktop-Windows-ARM64.exebeside it is not for your machine.The updater endpoint in the build you are running (
studio/src-tauri/tauri.conf.json@v0.1.808-beta) ishttps://github.com/unslothai/unsloth/releases/latest/download/latest.json. Fetching that URL right now returnsversion: 0.1.810-beta, byte-identical to the release's ownlatest.json, with thewindows-x86_64entry pointing at the same.exe— so an in-app update check has something newer to offer. Not verified here: I have not run the app, so I checked the endpoint's content and the published file, not the update flow itself.Which change fixes your case, and a correction of mine. I argued earlier that the pre-#10765 temp-path bug was probably a different failure, because a split path should give
File not found. Your check overturns that, and it now reproduces. With uv 0.10.12, pointing--overridesat a path containing a space giveserror: File not found:when the fragment before the space does not exist, and gives exactly your message —error: Unexpected '[', expected '-c', '-e', '-r' or the start of a requirement at <fragment>:1:1— when that fragment is a readable file whose first line starts with[. I ran that on macOS rather than Windows; the requirements parser is the same, the paths are illustrative.Your diagnostics show
skip_torch=false, soNew-UnslothTorchOverridesFiledoes not take its early return (install.ps1:6247@v0.1.808-beta), and the failing labelinstall unslothis the--overridescall at:6532(:6522is the(local)variant). WithUV_OVERRIDEunset there is no caller override directory, so the path comes from[System.IO.Path]::GetTempFileName()at:6277and is handed to uv unchanged — that tag'sinstall.ps1contains noShortPathcall anywhere. Inferred rather than measured: that your%TEMP%sits under your profile and so carries the space. The TEMP/TMP question in your report is still open, so that step comes from the shape of the error, not from a measurement.The change that fixes your call path is #10765 (merge commit
b3d1940, merged 2026-09-11), and it is not in your build: GitHub's compare API putsb3d1940...v0.1.808-betaatbehindby 49, andb3d1940...v0.1.810-betaataheadby 305. Atv0.1.810-betathat function converts a spaced path to its 8.3 short name, and when there is no short name it warns and returns$null(install.ps1:9502-9514); the caller then runs the install without--overridesrather than exiting 2 (:9830-9836), so the worst case is that the installed PyTorch is not frozen.#11064 (
0404030, merged 2026-09-16) is the PR whose merge closed this issue, and it is inv0.1.810-betatoo (0404030...v0.1.810-betaisaheadby 120). Its installer half is a sibling call path, not yours:Get-UvSafeRequirementsPath(:9389) is called at:9541and:9810to sanitise the-rrequirements path used at:9543and:9812, both on the no-torch branch. Its other half is the one you will notice — the Windows redaction patterns now exclude:, instudio/src-tauri/src/diagnostics/redaction.rs:166([^\\/\r\n\s]+became[^\\/:\r\n\s]+) and in the frontend twinstudio/frontend/src/lib/tauri-diagnostics.ts:67([^\s\\]+became[^\s\\:]+), so the:1:1that survived only in the raw stdout line of your localtauri.logshould survive into Copy Diagnostics as well. That last part is read from the source and the test that ships beside it, not from a run of the app.Checked in the shipped installers, not only in the repo. Both Windows builds are NSIS with a single solid LZMA stream. Decompressing that stream and counting byte occurrences inside it gives:
The script is in there because the Windows bundle ships the repo's
install.ps1as a resource:studio/src-tauri/tauri.windows.conf.jsonmaps../../install.ps1toinstall.ps1.Not verified here: I have no Windows machine with a space in the profile path, so I have not run the 0.1.810-beta installer end to end. What I checked is that the fixed script and the fixed redaction are inside the released
.exe.On retrying: your log rolls back —
restoring previous environment after failed install/restored previous environment— after the second and third attempts, at 11:25:52 and 11:26:40. The first attempt has no such pair, because there was nothing preserved before it. So a plain Install on the new build should be all that is needed. If it still fails, the error will be worth more than it was: post theerror:line fromtauri.log— with the redaction fix it should keep the file name and the:line:column.Windows installer: stop uv splitting a requirements path, and keep th…