Skip to content

Studio: keep llama-bench in the llama.cpp install - #14881

Merged
danielhanchen merged 4 commits into
mainfrom
llama-bench-install
Oct 27, 2026
Merged

danielhanchen merged 4 commits into
mainfrom
llama-bench-install

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

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.exe join 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.
  • The bundle does not ship it executable, so it is chmod'ed 0755 when present, next to llama-server and llama-quantize.
  • Source builds (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-bench and 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.sh passes bash -n, and setup.ps1 parses 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.

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]>
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex security review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T13:19:25.057596Z 7dd1c74 Manual request
🔒 Security Review ✅ Completed 2026-10-23T03:17:33.144110Z b043e39 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.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: b043e392c5

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

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: b043e392c5

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

danielhanchen added a commit to Etherll/unsloth that referenced this pull request Oct 23, 2026
# Conflicts:
#	studio/install_llama_prebuilt.py

[skip ci]
@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. What shall we delve into next?

Reviewed commit: 7dd1c74d15

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant