Repository navigation
Studio: say when a llama.cpp update leaves the CUDA build on the CPU - #17744
Conversation
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 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 |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! 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". |
Follow-up to #17675 for #17663
In #17663 an in-app llama.cpp update on Windows left llama-server running entirely on the CPU, and the update still reported "Updated llama.cpp to b12319". The installer exits 0 when the CUDA runtime it needs could not be installed, because the CPU fallback still works. So the update had no way to tell the user anything was wrong, and the first sign was slow generation.
Change
install_llama_prebuilt.pyalready logs "CUDA runtime wheel install failed ...; llama.cpp will run on the CPU" when the runtime install fails. After a runtime install that succeeds, it now re-checks, and if the runtime is still missing it logs the same notice.update_flow.stream_installerreturns whether the installer printed that notice. It was already reading every line, so this needs no extra process and no new probe.The update flow, its states and the installed files are unchanged. Only the completion message differs, and only when the installer said llama.cpp will run on the CPU.
Tests
test_the_installer_logs_the_cpu_fallback_notice_the_update_reads: guards against the installer's wording drifting from what the update looks for.test_an_update_that_leaves_llama_on_the_cpu_says_so[True|False]: with the notice in the installer output the message names Repair installation; without it the message is unchanged.test_a_runtime_still_missing_after_its_install_is_reported: the re-check fires only when the install succeeded and the runtime is still missing.llama_cpp_updateorstream_installerpasses (376 passed, 1 skipped). These are the update, combined update, backend switch, update-flow messages, orphaned children, account mutations, path settings, local link and source build suites.