Repository navigation
CPU prebuilts: ship the full bin set (incl llama-cli) - #28
Merged
Merged
Conversation
The Linux and Windows CPU app bundles narrowed the build to
`--target llama-server llama-quantize`, so app-*-{linux,windows}-x64-cpu
shipped without llama-cli and the rest of the tool set that the macOS bins
already include. This broke the consolidated-tests-ci "llama.cpp build +
smoke" assertion that llama-cli exists at the install root.
Drop the --target narrowing so the CPU builds compile the full set like the
macOS/ROCm children, and set LLAMA_BUILD_TOOLS/SERVER=ON explicitly on
Linux. The package step already tars all of build/bin, so the extra
binaries ship automatically.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Make the CPU app bundles (
app-*-{linux,windows}-x64-cpu) ship the full llama.cpp binary set, includingllama-cli, matching the macOS bins (llama-*-bin-macos-*) which already do.Why
unsloth_zoo.llama_cpp.install_llama_cppprefers the prebuilt bundle. The Linux/Windows CPU bundles only containedllama-server,llama-quantizeand the DiffusionGemma binaries, neverllama-cli, because the build narrowed to--target llama-server llama-quantize. That breaks theconsolidated-tests-ci"llama.cpp build + smoke" step, which assertsllama-cliexists at the install root. The macOS and ROCm children already build the full set (no--target).Change (
unsloth-prebuilt-cpu.yml)--target llama-server llama-quantizeso the full set builds; add-DLLAMA_BUILD_TOOLS=ON -DLLAMA_BUILD_SERVER=ONto match macOS; strip all built binaries.--target llama-server llama-quantize(the configure already sets TOOLS/SERVER on).CUDA and Vulkan bundles stay curated (out of scope here).
Validation
Configured with the exact CPU recipe flags and built locally on Linux:
llama-cli,llama-serverandllama-quantizeall build and run (llama-cli --version-> ok).llama-cliand the rest of the tool set are enumerated as targets under these flags. The CPU package step raw-tars all ofbuild/bin, so the extra binaries ship automatically;package_bundle.py's allowlist is CUDA-only and does not apply here.