Skip to content

CPU prebuilts: ship the full bin set (incl llama-cli) - #28

Merged
oobabooga merged 1 commit into
masterfrom
cpu-prebuilt-full-bin-set
Jun 22, 2026
Merged

oobabooga merged 1 commit into
masterfrom
cpu-prebuilt-full-bin-set

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

What

Make the CPU app bundles (app-*-{linux,windows}-x64-cpu) ship the full llama.cpp binary set, including llama-cli, matching the macOS bins (llama-*-bin-macos-*) which already do.

Why

unsloth_zoo.llama_cpp.install_llama_cpp prefers the prebuilt bundle. The Linux/Windows CPU bundles only contained llama-server, llama-quantize and the DiffusionGemma binaries, never llama-cli, because the build narrowed to --target llama-server llama-quantize. That breaks the consolidated-tests-ci "llama.cpp build + smoke" step, which asserts llama-cli exists at the install root. The macOS and ROCm children already build the full set (no --target).

Change (unsloth-prebuilt-cpu.yml)

  • Linux: drop --target llama-server llama-quantize so the full set builds; add -DLLAMA_BUILD_TOOLS=ON -DLLAMA_BUILD_SERVER=ON to match macOS; strip all built binaries.
  • Windows: drop --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-server and llama-quantize all build and run (llama-cli --version -> ok). llama-cli and the rest of the tool set are enumerated as targets under these flags. The CPU package step raw-tars all of build/bin, so the extra binaries ship automatically; package_bundle.py's allowlist is CUDA-only and does not apply here.

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.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.

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.

2 participants