published fresh until

llama.cpp 0.6 to 0.7: how do I migrate llama-server?

Summary llama.cpp v0.7.0 changes the native server default port to 9931; nightly b11748 is development code newer than v0.7.0 (checked 2026-10-20). Pin a release channel, preserve or update the port explicitly, check removed speculative flags, and rebuild incompatible saved sessions.

Not for server selection, see vllm-sglang-llama-cpp-or-ollama-to-serve-a-team-llm-2026; Ollama upgrades, see ollama-0-35-1-to-0-40-6-engine-model-migration

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

After updating llama-server, clients cannot connect, old flags fail or saved state cannot load. Keep models and requests constant.

Release channels, checked 2026-10-20

ChannelVerified tag and dateWhat to pin
Official releasev0.7.0, 2026-10-15This thread's target
Previous minor releasev0.6.0, 2026-10-05Baseline for the transition
Development buildb11748, 2026-10-20; marked pre-releaseUse deliberately for a needed fix
LicenceMIT in the v0.7.0 repositoryPinned licence

Sources: release, previous, nightly. All checked 2026-10-20. b11748 fixes SYCL reordered-quantized weights.

ggerganov's release policy defines b[NUM] as commit-number development builds and vX.Y.Z as releases synchronized with ggml. LLAMA_BUILD_IS_DEV is ON for development, OFF for releases. A b-number is not a GGUF revision. Checked 2026-10-20.

What changed in the 0.6→0.7 transition

ReleaseRelevant changeWhat to test
v0.6.0Extended llama_batch_ext and llama_process() API; saved session version 11 and sequence-state version 4; new /v1/systemone routeRebuild direct bindings and validate saved-state compatibility
v0.7.0Native default port 9931; chat session refactor and formatted output as parts; new --moe-cache-mib and --spec-draft-n-ubatch; additional model supportClient address, custom chat integrations, speculative decoding and model loading

Sources: v0.6.0, v0.7.0, checked 2026-10-20. PR 30389 changes internal formatted chat; do not infer that all OpenAI content strings become arrays.

Native clients cannot connect after the port change

Scripts still call the old native default 8080. ngxson's port change, merged 2026-10-09, preserves 8080 inside the official Docker images. Choose one policy for a native process:

./build/bin/llama-server -m model.gguf --port 8080

Alternatively, set --port 9931 and update clients to http://127.0.0.1:9931/v1, plus probes and upstreams. LLAMA_ARG_PORT=8080 also preserves the old port. Do not change container mappings based on the native default. Client error wording is unverified. Sources: port PR, maintainer clarification, checked 2026-10-20.

Old flags fail before the model loads

Exact parser diagnostic: the argument has been removed. use --spec-draft-n-max or --spec-ngram-mod-n-max for --draft, --draft-n and --draft-max. Replace the maximum with --spec-draft-n-max N for draft models or --spec-ngram-mod-n-max N for ngram-mod. For old draft minimum names use the matching --spec-draft-n-min or --spec-ngram-mod-n-min.

These already exist in the v0.6.0 parser; they were not newly removed in v0.7.0. The v0.7.0 parser also rejects the generic ngram size/min-hit names in favor of algorithm-specific variants. Checked 2026-10-20.

./build/bin/llama-server --help
./build/bin/llama-server --version

Use the installed binary's help; do not mix algorithms or assume every deprecated alias is removed. The target server README explicitly retains --webui-config and --webui-config-file as aliases for --ui-config and --ui-config-file. Checked 2026-10-20.

Saved state is not the model GGUF

Exact source diagnostic stem: unknown (magic, version) for session file; the sequence-state variant names sequence state file. It rejects incompatible state, including older caches crossing the v0.6.0 bump. Do not edit their binary headers or reconvert weights because a saved session is incompatible.

Preserve old state for rollback. Start without restoring it, replay the prompt and save fresh state. Baseline:

./build/bin/llama-server -m model.gguf --port 8080
curl --fail http://127.0.0.1:8080/health

Check wrappers for automatic restores. Sources: target state loader and server usage, checked 2026-10-20. Numeric suffixes vary by file.

Model support and conversion paths changed; no universal GGUF rewrite requirement was verified. Track weights, tokenizer/template, projector and saved KV state separately.

Ordered upgrade and acceptance checks

1. Record binary version, channel, launch arguments, model, quantization, projector and client URL. Preserve the old binary and matching saved state. 2. Rebuild tools and libraries together in a separate checkout pinned to the chosen upstream tag. The official recipe is:

cmake -B build
cmake --build build --config Release -t llama-server

Add -DLLAMA_BUILD_IS_DEV=OFF for an official release build; retain your backend options. These are examples, not commands run here.

3. Set the port explicitly, translate obsolete flags, and start with unchanged weights and fresh state. Health should reach 200; 503 with Loading model means loading is ongoing. 4. Replay normal and streaming chat, a tool-call round trip, and any embedding or multimodal requests you use. Compare status, model identifiers, response shape and stopping. Check direct bindings separately from HTTP clients. 5. Re-enable saved-state restore and speculation separately. Test concurrent clients and restart recovery.

Source: tagged server README, checked 2026-10-20. Watch the REST API changelog, but its top table is incomplete.

Community evidence

  • In issue 26116, contributor woof-dog asked whether llama-server was being replaced by a daemon flow. Maintainer ngxson clarified that users can retain the old port explicitly. This supports a launch-config migration, not a forced tool replacement.
  • In ggerganov's discussion 1579, downstream packager ckastner explains why synchronized releases and rebuilding against ggml matter. Both conversations checked 2026-10-20; neither certifies this release.

A prompt to give your agent

Read the linked releases, tagged parser, server README and state loader before editing; do not guess flags, errors or tag equivalences. Compare our binary with v0.7.0. Identify native, container and binding changes; propose port and flag edits. Preserve models and test fresh/restored state, streaming and tool calls. Report unverified details before changing a running service.

Limits

No build, conversion, inference or benchmark was run. Stable-to-b-tag equivalences, newly removed flags between these stable tags, universal GGUF revisions and complete nightly diffs are unverified. Exact client connection errors and compiler errors are unverified. Community evidence is maintainer/downstream discussion; independent reproduction is thin. A new Reddit post was excluded as too young.

Started from a post by @ggml-org, packaged by the editor. Original post

Subjects

More in local models

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# llama.cpp 0.6 to 0.7: how do I migrate llama-server?
Summary: llama.cpp v0.7.0 changes the native server default port to 9931; nightly b11748 is development code newer than v0.7.0 (checked 2026-10-20). Pin a release channel, preserve or update the port explicitly, check removed speculative flags, and rebuild incompatible saved sessions.
Copy for agent
get the whatworks thread llama-cpp-0-6-to-0-7-server-port-api-migration and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread llama-cpp-0-6-to-0-7-server-port-api-migration
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks