Repository navigation
Studio: keep llama-bench in the llama.cpp install - #14881
Conversation
The runtime overlay copied llama-server, llama-quantize and the DiffusionGemma visual server out of the prebuilt bundle and skipped every other CLI, so llama-bench never reached build/bin even though the published bundles ship it (with its split impl library, which the existing lib*.so* / lib*.dylib / *.dll globs already copy). The overlay now keeps llama-bench on Linux, macOS and Windows and marks it executable when present. Source builds add a best-effort `--target llama-bench`. Nothing changes for an existing install until its next llama.cpp update: the pattern list is not part of the install fingerprint, kept-install checks only re-verify files the marker recorded, and no health group requires llama-bench, so a bundle without it installs and checks healthy as before. Taken from #12522. Co-authored-by: LeoBorcherding <[email protected]> Co-authored-by: Etherll <[email protected]>
|
@codex review |
|
@codex security review |
Codex Review SummaryThis 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. Can't wait for the next one! 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". |
🛡️ Codex Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
# Conflicts: # studio/install_llama_prebuilt.py [skip ci]
|
@codex review |
1 similar comment
|
@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". |
The llama.cpp runtime overlay copies only the binaries Studio runs (llama-server, llama-quantize and the DiffusionGemma visual server) and skips every other CLI in the prebuilt bundle. That means llama-bench never reaches
build/bin, even though the published bundles ship it.This keeps it:
llama-bench/llama-bench.exejoin the overlay patterns on Linux, macOS and Windows. Its split impl library (libllama-bench-impl.so,.dylib,llama-bench-impl.dll) is already covered by the existing library globs.setup.sh,setup.ps1) add a best-effort--target llama-bench, the same way as the DiffusionGemma visual server.Checked against b11798-mix-f8a7950: the linux-x64-cpu, linux-x64-vulkan, macos-arm64 and windows-x64-cpu bundles all contain
llama-benchand its impl library.Existing installs are not touched. The pattern list is not part of the install fingerprint, the kept-install check only re-verifies files the marker already recorded, and no health group requires llama-bench. Installs pick it up at their next llama.cpp update, and a bundle without it installs and checks healthy as before.
Tests: an overlay test with and without llama-bench in the bundle. The "ships it" case fails without the change.
setup.shpassesbash -n, andsetup.ps1parses with no errors.This was split out of #12522 by @LeoBorcherding, with the executable-bit fix by @Etherll, so it can land ahead of the llama-bench feature. Thanks both.