diff --git a/install.ps1 b/install.ps1 index 9a7a31d57c..4639fe067f 100644 --- a/install.ps1 +++ b/install.ps1 @@ -192,17 +192,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 "" - $UnslothExe = Join-Path $VenvName "Scripts\unsloth.exe" - & $UnslothExe 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\activate" - Write-Host " unsloth studio -H 0.0.0.0 -p 8888" + Write-Host " $LaunchCmd" Write-Host "" } } diff --git a/install.sh b/install.sh index 7ec5e7b148..5c04762c79 100755 --- a/install.sh +++ b/install.sh @@ -217,14 +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 " $LAUNCH_CMD" 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 " $LAUNCH_CMD" echo "" fi