From 8e3e781520cd5720f4576a0c77b0d07522b88435 Mon Sep 17 00:00:00 2001 From: Manan17 Date: Fri, 20 Mar 2026 07:28:58 +0000 Subject: [PATCH 1/3] Changing the windows launch to one liner --- install.ps1 | 6 ++++-- install.sh | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/install.ps1 b/install.ps1 index 6bf37e39db..5f009b385f 100644 --- a/install.ps1 +++ b/install.ps1 @@ -115,14 +115,16 @@ function Install-UnslothStudio { $IsInteractive = [Environment]::UserInteractive -and (-not [Console]::IsInputRedirected) if ($IsInteractive) { Write-Host "==> Launching Unsloth Studio..." + Write-Host " To relaunch later, run:" + Write-Host "" + Write-Host " .\${VenvName}\Scripts\unsloth.exe studio -H 0.0.0.0 -p 8888" Write-Host "" $UnslothExe = Join-Path $VenvName "Scripts\unsloth.exe" & $UnslothExe studio -H 0.0.0.0 -p 8888 } else { Write-Host " To launch, run:" Write-Host "" - Write-Host " .\${VenvName}\Scripts\activate" - Write-Host " unsloth studio -H 0.0.0.0 -p 8888" + Write-Host " .\${VenvName}\Scripts\unsloth.exe studio -H 0.0.0.0 -p 8888" Write-Host "" } } diff --git a/install.sh b/install.sh index 7ec5e7b148..a00a6029a6 100755 --- a/install.sh +++ b/install.sh @@ -219,6 +219,10 @@ echo "" # in non-interactive environments (Docker, CI, cloud-init) just print instructions. if [ -t 0 ]; then echo "==> Launching Unsloth Studio..." + echo " To relaunch later, run:" + echo "" + echo " source ${VENV_NAME}/bin/activate" + echo " unsloth studio -H 0.0.0.0 -p 8888" echo "" exec "$VENV_NAME/bin/unsloth" studio -H 0.0.0.0 -p 8888 else From 06b7fab3e57055d97c4dab52b42ca2faea904044 Mon Sep 17 00:00:00 2001 From: Manan17 Date: Fri, 20 Mar 2026 07:36:37 +0000 Subject: [PATCH 2/3] one liner --- install.ps1 | 3 +-- install.sh | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/install.ps1 b/install.ps1 index 5f009b385f..85b38a27ab 100644 --- a/install.ps1 +++ b/install.ps1 @@ -119,8 +119,7 @@ function Install-UnslothStudio { Write-Host "" Write-Host " .\${VenvName}\Scripts\unsloth.exe studio -H 0.0.0.0 -p 8888" Write-Host "" - $UnslothExe = Join-Path $VenvName "Scripts\unsloth.exe" - & $UnslothExe studio -H 0.0.0.0 -p 8888 + & (Join-Path $VenvName "Scripts\unsloth.exe") studio -H 0.0.0.0 -p 8888 } else { Write-Host " To launch, run:" Write-Host "" diff --git a/install.sh b/install.sh index a00a6029a6..0f7b0aba2d 100755 --- a/install.sh +++ b/install.sh @@ -221,14 +221,12 @@ if [ -t 0 ]; then echo "==> Launching Unsloth Studio..." echo " To relaunch later, run:" echo "" - echo " source ${VENV_NAME}/bin/activate" - echo " unsloth studio -H 0.0.0.0 -p 8888" + echo " ./${VENV_NAME}/bin/unsloth studio -H 0.0.0.0 -p 8888" echo "" exec "$VENV_NAME/bin/unsloth" studio -H 0.0.0.0 -p 8888 else echo " To launch, run:" echo "" - echo " source ${VENV_NAME}/bin/activate" - echo " unsloth studio -H 0.0.0.0 -p 8888" + echo " ./${VENV_NAME}/bin/unsloth studio -H 0.0.0.0 -p 8888" echo "" fi From 5156d573da1133a4ef3f9fcd9def13e16ba184c2 Mon Sep 17 00:00:00 2001 From: Manan17 Date: Fri, 20 Mar 2026 07:39:22 +0000 Subject: [PATCH 3/3] one liner variable --- install.ps1 | 5 +++-- install.sh | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/install.ps1 b/install.ps1 index 85b38a27ab..411756f745 100644 --- a/install.ps1 +++ b/install.ps1 @@ -112,18 +112,19 @@ function Install-UnslothStudio { # Launch studio automatically in interactive terminals; # in non-interactive environments (CI, Docker) just print instructions. + $LaunchCmd = ".\${VenvName}\Scripts\unsloth.exe studio -H 0.0.0.0 -p 8888" $IsInteractive = [Environment]::UserInteractive -and (-not [Console]::IsInputRedirected) if ($IsInteractive) { Write-Host "==> Launching Unsloth Studio..." Write-Host " To relaunch later, run:" Write-Host "" - Write-Host " .\${VenvName}\Scripts\unsloth.exe studio -H 0.0.0.0 -p 8888" + Write-Host " $LaunchCmd" Write-Host "" & (Join-Path $VenvName "Scripts\unsloth.exe") studio -H 0.0.0.0 -p 8888 } else { Write-Host " To launch, run:" Write-Host "" - Write-Host " .\${VenvName}\Scripts\unsloth.exe studio -H 0.0.0.0 -p 8888" + Write-Host " $LaunchCmd" Write-Host "" } } diff --git a/install.sh b/install.sh index 0f7b0aba2d..5c04762c79 100755 --- a/install.sh +++ b/install.sh @@ -217,16 +217,17 @@ echo "" # Launch studio automatically in interactive terminals; # in non-interactive environments (Docker, CI, cloud-init) just print instructions. +LAUNCH_CMD="./${VENV_NAME}/bin/unsloth studio -H 0.0.0.0 -p 8888" if [ -t 0 ]; then echo "==> Launching Unsloth Studio..." echo " To relaunch later, run:" echo "" - echo " ./${VENV_NAME}/bin/unsloth studio -H 0.0.0.0 -p 8888" + echo " $LAUNCH_CMD" echo "" exec "$VENV_NAME/bin/unsloth" studio -H 0.0.0.0 -p 8888 else echo " To launch, run:" echo "" - echo " ./${VENV_NAME}/bin/unsloth studio -H 0.0.0.0 -p 8888" + echo " $LAUNCH_CMD" echo "" fi