github mostlygeek/llama-swap v279

2 hours ago

Per-round speculative decoding statistics, GPU power limits on the Performance page, and a batch of metrics fixes.

This release improves reliability and compatibility.
Thanks to everyone who reported issues and contributed fixes.


  • PR #1388 Enhance draft statistics for speculative decoding: records the number of speculative decoding rounds per request (new draft_rounds activity column and migration) and adds opt-in Activity columns "Drafted/Round" and "Accepted/Round" plus a Gufo usage extractor, so engines such as gufo and TensorFold that adapt their draft length each round can actually be measured by @pilzcer
  • PR #1389 server: judge preload success by process state, not GET / status: preload sent GET / and treated any status >= 400 as a failure, so upstreams with no route for / (llama-server built without its web UI, kokoro-fastapi) returned 404 while healthy and every preload logged a misleading "failed to preload model"; it now checks the model reached StateReady by @candrews
  • PR #1392 AGENTS.md,CONTRIBUTING.md,docs/development: more agent friendly: slims AGENTS.md into focused development documents and tightens the contribution guidelines so agents and first time contributors submit smaller, easier to review pull requests by @mostlygeek
  • PR #1393 internal/server: fix metrics collection for audio responses: /v1/audio/speech replies with binary audio, so every successful TTS request logged "invalid JSON in response body" and buried real warnings; responses with an explicitly non-JSON Content-Type now skip token parsing, and Realtime replies sum input/output tokens and record cached and reasoning counts when the upstream reports them by @mostlygeek
  • PR #1394 internal/mcpserver: include resultType in tool responses: tools/list and tools/call results now carry resultType: "complete" as the MCP 2026-07-28 spec requires, because strict clients such as OpenCode rejected llama-swap's docs MCP endpoint outright by @mostlygeek
  • PR #1399 internal/server: fix vLLM prefill rate for queued requests: vLLM's per-request metrics block reports time to first token from when the request is scheduled rather than when it arrived, so subtracting queue_time_ms again inflated prefill speed by however long the request sat in the queue; TTFT is now used directly as the prefill duration by @knguyen298
  • PR #1402 internal/server: omit status for peer models in /v1/models: peer entries reported a hardcoded "status": {"value": "unloaded"} even while llama-swap was proxying to a healthy peer, but status describes the lifecycle of processes llama-swap spawns and peers have none, so the field is now omitted for them while local models, aliases, selectors and profile pins are unchanged by @mostlygeek
  • PR #1403 .coderabbit.yaml: enable reviews and check contribution rules: turns on automatic CodeRabbit reviews for non-draft pull requests and has it check commit format, squashing and matching PR metadata in warning mode using the contributor and development guides by @mostlygeek
  • PR #1405 ui: show GPU power limits on the Performance page: the nvidia-smi, rocm-smi, lactd and sysfs monitors now sample each GPU's power limit alongside its draw, and the Power readout shows draw against the limit sampled at that time, such as 4 / 300W, falling back to draw alone when a monitor reports no limit by @mostlygeek

Don't miss a new llama-swap release

NewReleases is sending notifications on new releases.