Skip to content

Find ggml-rpc-server in llama.cpp releases; validate --model and --backend early - #1

Merged
maxdp66 merged 1 commit into
mainfrom
claude/project-thread-69cnxy
Nov 2, 2026
Merged

maxdp66 merged 1 commit into
mainfrom
claude/project-thread-69cnxy

Conversation

@maxdp66

@maxdp66 maxdp66 commented Nov 1, 2026

Copy link
Copy Markdown
Owner

Requested by Max · project thread

Why

Verifying main against the spec with the real llama.cpp b12017 release (downloads were reachable this time) found a blocker: the release ships the RPC server as ggml-rpc-server, not rpc-server. A fresh install never found it, so every node stayed in "llama.cpp setup failed" and nothing could run. The fake binaries in the e2e suite used the old name, which is why the tests were green.

Changes

  • llama.rs: accept ggml-rpc-server and rpc-server for downloaded releases, --llama-dir and PATH installs.
  • llama.rs: llama-server --version now prints version: 0.8.0-dev (build 12017, commit …); parse the build number from that format as well as the old version: 12017 (…) one, so --llama-dir/PATH installs report their real tag (new unit test).
  • main.rs: reject an invalid --model on group create (it was saved unvalidated) and an invalid --backend before starting (it used to retry forever in the background).
  • e2e: the mock release ships ggml-rpc-server and the new version string; the mock HF/releases server no longer leaks after a run.
  • README: note on the binary name.

Verified

  • cargo build with -D warnings, cargo clippy --all-targets, cargo build --release: clean.
  • 18 unit tests and all 31 e2e checks pass.
  • Three real llmesh nodes with llama.cpp b12017 (CPU build) and Qwen/Qwen2.5-0.5B-Instruct-GGUF:Q4_K_M: head ready in ~20 s with two remote workers in the split; chat completions, completions and OpenAI-SDK streaming worked through non-head nodes; killing a worker made the head restart with the new split in ~18 s. A verbose llama-server --rpc a,b run (no -ngl) showed -fit assigning layers 0–12 to RPC0 and 13–24 to RPC1, 25/25 offloaded.
  • Windows/macOS still only covered by CI.

Generated by Claude Code

…ckend early

Real llama.cpp b12017 (the pinned release) ships the RPC server as
`ggml-rpc-server`, not `rpc-server`, so a fresh install could never find it
and every node stayed stuck in "llama.cpp setup failed". Accept both names,
for downloaded releases, `--llama-dir` and PATH installs.

`llama-server --version` now prints `version: 0.8.0-dev (build 12017, ...)`;
parse the build number from that format too (older `version: 12017 (...)`
still works), so `--llama-dir` and PATH installs report their real tag.

Reject an invalid `--model` on `group create` and an invalid `--backend`
before starting instead of saving the bad model or retrying forever.

Tests: the e2e mock release now ships `ggml-rpc-server` and the new version
string; the mock server no longer leaks after the run. Verified with three
real llmesh nodes running llama.cpp b12017 and Qwen2.5-0.5B-Instruct Q4_K_M:
layers were split over the two remote rpc-servers, chat/completions,
completions and streaming worked through non-head nodes.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WedDh5afDtXdwwFDhfwUdu
@maxdp66 maxdp66 self-assigned this Nov 1, 2026
@maxdp66
maxdp66 merged commit 1b256b7 into main Nov 2, 2026
4 checks passed
@maxdp66
maxdp66 deleted the claude/project-thread-69cnxy branch November 2, 2026 13:58
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