Repository navigation
Switch production inference to llama-server after the backend comparison cleared every adoption gate (ADR-001067) - #443
Merged
Conversation
…nd the llama.cpp chat driver to pass think through like the Ollama driver, forcing it off only for streaming (ADR-001067) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nk through the llama.cpp chat driver like the Ollama driver, forcing it off only for streaming (ADR-001067) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mpt builders, a backend comparison against the adoption gates, and per-case Augur eval result dumps (ADR-001067) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rompt builders and chat drivers, compare backends against the adoption gates, and dump per-case Augur eval results (ADR-001067) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…with Ollama kept as an opt-in overlay, the declared backend to be llamacpp, and the Ollama chown hook to leave the production audit (ADR-001067) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a as the compose.ollama.yaml overlay, declare NEWS_CREATOR_LLM_BACKEND=llamacpp, and record the backend comparison that cleared every adoption gate (ADR-001067) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…startup, the inference driver to be pinned in compose instead of read from the host env, the inference container to get no host .env, and a seed script for the llama-server model volume (ADR-001067) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… the inference driver in compose and retire NEWS_CREATOR_LLM_BACKEND, stop passing the host .env to llama-server, and add a seed script for its model volume (ADR-001067) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…format in the compose wiring test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Why
ADR-001066 made news-creator's generation backend switchable between Ollama and llama-server and left the production default to a measured comparison. This PR records that comparison and switches production to llama-server (ADR-001067).
Before comparing, llama-server's thinking behaviour had to match Ollama's. Ollama thinks by default for Gemma 4 when a chat request does not set
think, and production's non-streaming chats (rag answers, plan-query, the recap final summary) rely on that. llama-server was started with--reasoning off, so a plain switch would have changed speed and answers at the same time.What
Thinking parity
--reasoning on.thinkthrough with the same rules as the Ollama driver. Thinking is forced off only for streaming.Comparison harness
Result: all 13 gates passed
Production switch
compose/ai.yamlrunsnews-creator-backendas llama-server (CUDA, b12808). GPU, memory limit, network and container name are unchanged. It no longer receives the whole host.env, only its three settings.compose/compose.ollama.yaml, and its chown hook moves with it. The CUDA llama-server overlay is removed because it is now the default.LLM_BACKENDis pinned in the same compose render that picks the container kind:llamacppby default,ollamain the Ollama overlay.NEWS_CREATOR_LLM_BACKENDis removed from LKAL, required env and the env templates, and is listed as retired, so a leftover host value is flagged.news-creator-backendsits only on the internalgeneration-raw-networkand cannot download models itself.scripts/seed-llamacpp-models.shfills its volume from a throwaway container, or from an already-verified volume, using the same sha256 pins as the entrypoint. A test keeps the URLs and pins in step.Rollout
scripts/seed-llamacpp-models.shon the host. The container cannot fetch the models.news-creator-backendtogether withnews-creator. If only news-creator is recreated, its startup check finds Ollama where it expects llama-server and it restarts until the inference container is switched too.Tests
cd news-creator/app && uv run pytest: 1584 passed../scripts/lint/run.sh news-creator/app,composeandrepoall pass.docdag validate --immutable-since origin/mainandalt-harness adr-gate --base origin/mainpass.compose/compose.ollama.yaml..envpassthrough; the second RED/GREEN pair fixes them.🤖 Generated with Claude Code