Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Route the explicit Vulkan setup failures through the setup failure helpers (#7645)
Daniel Han07fb20f5b084
diff --git a/studio/setup.ps1 b/studio/setup.ps1index 34ef82ee4b3..e5c8162eea3 100644--- a/studio/setup.ps1+++ b/studio/setup.ps1@@ -3885,7 +3885,7 @@ if ($LocalLlamaCppLinked) {Write-Host ""step "llama.cpp" "Vulkan was explicitly requested, but this installation requires a source build" "Red"substep "Vulkan source builds are not supported by this installer; use the prebuilt Vulkan bundle or unset the Vulkan override" "Yellow"- exit 1+ Exit-SetupFailure "Vulkan was explicitly requested, but this installation requires a source build, which this installer does not support. Use the prebuilt Vulkan bundle or unset the Vulkan override."} elseif ($env:UNSLOTH_LLAMA_FORCE_COMPILE -eq "1") {Write-Host ""substep "UNSLOTH_LLAMA_FORCE_COMPILE=1 -- skipping prebuilt llama.cpp install" "Yellow"@@ -4057,7 +4057,7 @@ if ($LocalLlamaCppLinked) {# run reports success on the backend the user asked to replace.if ($explicitVulkanBackend) {step "llama.cpp" "Vulkan was explicitly requested, so the installer will not keep the existing backend" "Red"- exit 1+ Exit-SetupFailure "Vulkan was explicitly requested, so the installer will not keep the existing llama.cpp backend."}} else {step "llama.cpp" "prebuilt install failed" "Yellow"@@ -4068,7 +4068,7 @@ if ($LocalLlamaCppLinked) {if ($explicitVulkanBackend) {step "llama.cpp" "Vulkan was explicitly requested, so the installer will not substitute a CUDA, ROCm, or CPU source build" "Red"substep "Check the download error above or try a different UNSLOTH_LLAMA_RELEASE_TAG" "Yellow"- exit 1+ Exit-SetupFailure "Vulkan was explicitly requested, so the installer will not substitute a CUDA, ROCm, or CPU source build. Check the download error above or try a different UNSLOTH_LLAMA_RELEASE_TAG."} else {substep "Prebuilt llama.cpp path unavailable or failed validation -- falling back to source build" "Yellow"$NeedLlamaSourceBuild = $truediff --git a/studio/setup.sh b/studio/setup.shindex b3889f5479a..6e8260167f6 100755--- a/studio/setup.sh+++ b/studio/setup.sh@@ -1459,7 +1459,7 @@ if [ "$_LOCAL_LLAMA_CPP_LINKED" = true ]; thenelif [ "$_explicit_vulkan_source_build" = true ] && [ "$_NEED_LLAMA_SOURCE_BUILD" = true ]; thenstep "llama.cpp" "Vulkan was explicitly requested, but this installation requires a source build" "$C_ERR"substep "Vulkan source builds are not supported by this installer; use the prebuilt Vulkan bundle or unset the Vulkan override"- exit 1+ setup_fail 1 "Vulkan was explicitly requested, but this installation requires a source build, which this installer does not support. Use the prebuilt Vulkan bundle or unset the Vulkan override."elif [ "$_LLAMA_FORCE_COMPILE" = "1" ]; thenstep "llama.cpp" "UNSLOTH_LLAMA_FORCE_COMPILE=1 -- skipping prebuilt" "$C_WARN"_NEED_LLAMA_SOURCE_BUILD=true@@ -1578,7 +1578,7 @@ else# run reports success on the backend the user asked to replace.if [ "$_explicit_vulkan_backend" = true ]; thenstep "llama.cpp" "Vulkan was explicitly requested, so the installer will not keep the existing backend" "$C_ERR"- exit 1+ setup_fail 1 "Vulkan was explicitly requested, so the installer will not keep the existing llama.cpp backend."fielsestep "llama.cpp" "prebuilt install failed" "$C_WARN"@@ -1590,7 +1590,7 @@ elseif [ "$_explicit_vulkan_backend" = true ]; thenstep "llama.cpp" "Vulkan was explicitly requested, so the installer will not substitute a ROCm or CPU source build" "$C_ERR"substep "check the download error above or try a different UNSLOTH_LLAMA_RELEASE_TAG"- exit 1+ setup_fail 1 "Vulkan was explicitly requested, so the installer will not substitute a ROCm or CPU source build. Check the download error above or try a different UNSLOTH_LLAMA_RELEASE_TAG."elsesubstep "falling back to source build"_NEED_LLAMA_SOURCE_BUILD=true