Repository navigation
Studio: replay a stalled Vulkan start on CPU when the device probe failed - #18172
Conversation
|
@codex review |
Codex Review Summary: 🔄 RunningThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Problem
A Discord user on Unsloth Desktop (Windows 11, Intel Core i7-6700T, 8 GB RAM, only an Intel HD Graphics 530) saw "Loading a model..." for more than 30 minutes on
unsloth/DeepSeek-R1-Distill-Qwen-1.5B-GGUF. Settings > System showed "No visible GPU" with the bundled Vulkan build.Since #14521 a Vulkan auto-selected load already handles most of this:
A probe that failed any other way (
error: non-zero exit without a signal, an exception, or a bundle without the Vulkan backend library) was grouped with a probe that listed a working device. That gets the listed-device budget: CPU work renews the 600 s stall window, the ceiling is 3x (30 minutes for a small model), and the end is a terminal error that tells the user to pick CPU in Settings. A failed probe proved no device, so the rationale for that budget ("the probe saw a working device, so a slow start is not proof of a broken driver") does not apply.Fix
Treat a failed probe like a timed-out or crashed one (
_vulkan_suspect). A healthy start is unchanged and stays on Vulkan; only a start that makes no loading progress is replayed on CPU after 300 s instead of failing after 30 minutes. A probe that listed a device keeps the current behaviour.This does not change the UI or any setting, and the next load re-probes, so one bad start never pins a build to CPU.
Tests
tests/test_vulkan_no_device_cpu_route.py:errorjoins the suspect cases in the stall-window test and intest_a_hung_suspect_launch_replays_on_cpu; the listed-device stall test keepsdevicesonly.vulkan_startup_stallpytest tests/test_vulkan_no_device_cpu_route.py: 52 passed (base: the twoerrorcases fail).tests/test_gpu_arch_gate_os_matrix_7624.py tests/test_llama_cpp_mmproj_fallback.py: 341 passed on both base and head.