Skip to content

Studio: say when a llama.cpp update leaves the CUDA build on the CPU - #17744

Merged
danielhanchen merged 1 commit into
mainfrom
studio-llama-update-cuda-runtime-check
Nov 14, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
studio-llama-update-cuda-runtime-check

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

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.py already 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_installer returns whether the installer printed that notice. It was already reading every line, so this needs no extra process and no new probe.
  • The llama.cpp update keeps its success state, but its message now adds: "The CUDA runtime llama.cpp needs could not be installed, so it will run on the CPU. Use Repair installation in Settings in the desktop app, or re-run the Unsloth installer."

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.
  • Every suite that drives llama_cpp_update or stream_installer passes (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.

@danielhanchen danielhanchen self-assigned this Nov 14, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T10:19:11.205398Z 851efcb Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: 🔄 Running

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-14T10:17:31.790789Z 851efcb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 851efcb59f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@danielhanchen
danielhanchen merged commit 0cac898 into main Nov 14, 2026
@danielhanchen
danielhanchen deleted the studio-llama-update-cuda-runtime-check branch November 14, 2026 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant