Repository navigation
Find ggml-rpc-server in llama.cpp releases; validate --model and --backend early - #1
Merged
Merged
Conversation
…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
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.
Requested by Max · project thread
Why
Verifying
mainagainst the spec with the real llama.cppb12017release (downloads were reachable this time) found a blocker: the release ships the RPC server asggml-rpc-server, notrpc-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: acceptggml-rpc-serverandrpc-serverfor downloaded releases,--llama-dirand PATH installs.llama.rs:llama-server --versionnow printsversion: 0.8.0-dev (build 12017, commit …); parse the build number from that format as well as the oldversion: 12017 (…)one, so--llama-dir/PATH installs report their real tag (new unit test).main.rs: reject an invalid--modelongroup create(it was saved unvalidated) and an invalid--backendbefore starting (it used to retry forever in the background).ggml-rpc-serverand the new version string; the mock HF/releases server no longer leaks after a run.Verified
cargo buildwith-D warnings,cargo clippy --all-targets,cargo build --release: clean.b12017(CPU build) andQwen/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 verbosellama-server --rpc a,brun (no-ngl) showed-fitassigning layers 0–12 to RPC0 and 13–24 to RPC1, 25/25 offloaded.Generated by Claude Code