Skip to content

fix: adapt llama-server to current xllamacpp binding - #307

Merged
WSHAPER merged 1 commit into
nextcloud:mainfrom
WSHAPER:fix/xllamacpp-hostnames
Oct 19, 2026
Merged

WSHAPER merged 1 commit into
nextcloud:mainfrom
WSHAPER:fix/xllamacpp-hostnames

Conversation

@WSHAPER

@WSHAPER WSHAPER commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

xllamacpp 2026.10.11549 renames CommonParams.hostname to hostnames (now a list) and drops use_mmap and use_mlock, so the setattr loop in llama_server crashed at startup and took down consumers' CI.

SERVER_KEYS now sends hostnames as a list, the dropped keys are removed, and keys the binding no longer knows are skipped with a warning, so the next rename degrades to a log line instead of a dead server.

Verified on 2026.10.11549 with a cpu wheel: llama-server boots on a small test model and serves /health and /v1/chat/completions, and a config still carrying the old keys starts fine. On the locked 2026.9.10809 the unknown key is skipped with the warning and the default bind still serves the health check.

Closes #306

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

xllamacpp 2026.10.11549 renames CommonParams.hostname to hostnames
(now a list) and drops use_mmap/use_mlock, so the setattr loop crashed
at startup and took down every consumer CI. SERVER_KEYS updated, the
config sends hostnames as a list, and keys the binding no longer knows
are skipped with a warning instead of killing the server.

Verified against 2026.10.11549: server boots on a known-good model and
serves /health and /v1/chat/completions; unknown keys log and continue.

Assisted-by: opencode:zai/glm-5.3
Signed-off-by: WSHAPER <42714629+WSHAPER@users.noreply.github.com>
@WSHAPER
WSHAPER merged commit c23a7f6 into nextcloud:main Oct 19, 2026
8 checks passed
@WSHAPER
WSHAPER deleted the fix/xllamacpp-hostnames branch October 19, 2026 15:25
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.

llama-server fails to start with xllamacpp 2026.10.11549: CommonParams has no attribute hostname

2 participants