Repository navigation
Conversation
|
Confirmed the _BUILD_DESC strings this keys off still exist in studio/setup.sh, so the footer warning fires on exactly the CPU-on-GPU-host fallback from #9255. The direction is right, but the branch also carries diffusion, mlx-repair and chat UI changes unrelated to this. Could you narrow it to just the setup.sh warning and rebase off main? |
…nslothai#9255) When the prebuilt llama.cpp install fails (TLS-verifying download, preflight library path, GitHub outage) and the host has the NVIDIA driver but no nvcc, the source fallback builds CPU-only and the install still ends with the standard success banner and exit 0. The only hint is a parenthetical mid-log ('CUDA driver found but nvcc missing') — the installer has already determined this is a CUDA machine about to get a build that cannot use it, and says nothing at the end. GGUF inference then runs on the CPU indefinitely with nothing indicating the GPU was dropped (llama-server reports 'Available devices: (none)' on working hardware). The CPU-on-GPU-host shape is now flagged when the build description is chosen, and the footer prints a prominent warning naming both the loss and the two recovery paths (install the CUDA toolkit, or fix the prebuilt failure logged above), instead of the plain success banner.
ffbcaba to
b52fb05
Compare
|
Narrowed and rebased off main — the PR is now exactly the |
|
Thanks for narrowing it, the setup.sh warning is the right shape and the _BUILD_DESC strings it keys off are unchanged in main. Two things left before this can go in: _LLAMA_CPU_ONLY_ON_GPU_HOST is only assigned inside the nvcc/hipcc case, so with the set -euo pipefail at the top of studio/setup.sh the new footer test hits an unbound variable and aborts every install that did not take that fallback, and the branch still carries an unrelated reformat in studio/backend/tests/test_rag_store.py. |
|
Confirmed the footer warning keys off the existing _BUILD_DESC strings and covers the CPU-on-GPU-host fallback in #9255, but setup.sh runs |
|
Thank you for the PR and for pinning down #9255! This has been superseded by #10975 (merged in 6f64398), which folds in the footer warning from this PR along with the
The |
Closes #9259's sibling ask: make the CPU-only fallback loud.
The silent regression
When the prebuilt llama.cpp install fails (TLS-verifying download, preflight library path, GitHub outage) and the host has the NVIDIA driver but no
nvcc, the source fallback builds CPU-only and the install still ends with the standard success banner and exit 0. The only hint is a parenthetical mid-log — the installer has already determined this is a CUDA machine about to get a build that cannot use it. GGUF inference then runs on the CPU indefinitely (llama-serverreportsAvailable devices: (none)on working hardware).Fix
The existing
_BUILD_DESCselection ("CPU, CUDA driver found but nvcc missing" / the ROCm hipcc twin) now sets_LLAMA_CPU_ONLY_ON_GPU_HOST=true, and the final footer prints a prominent warning naming the loss and both recovery paths — install the CUDA toolkit, or fix the prebuilt failure logged above — before the launch line. The success banner and exit code are unchanged (this is a degraded install, not a failed one — the issue explicitly asks for a warning, and hard-failing would break genuinely CPU-only hosts whose driver remnant trips the detection).bash -nclean. The_BUILD_DESCstrings are matched verbatim from the existing selection block, so the flag can only fire on the exact shapes that dropped the GPU.