• v0.14.6
    CI / test (push) Failing after 30m6s
    Release / build (push) Successful in 17m32s
    Release / notes (push) Successful in 4s
    Stable

    gitea-actions released this 2026-10-16 14:16:48 +02:00 | 209 commits to main since this release

    Setup that says what each part of an install is and lets every one be
    chosen and set; three machines that each run the gateway, so any one can
    be lost; a cluster that loses its store's primary without losing a
    request; one ComfyUI for an environment's models; pictures, 3D and
    workflows as MCP tools; alerts asked for at setup; extended thinking.

    Upgrading.

    • No migration.
    • Control planes: with control.lease_ttl unset the lease is now 10 s
      (was 15). Upgrade the standbys first and the leader last; a mix of
      versions meanwhile is fine.
    • The store (PostgreSQL): each member is dialled for 3 s before the
      next is tried. A store so far away that connecting takes longer needs
      connect_timeout=10 in its address.
    • Nodes notice a control plane that died without closing its
      connection in 8 s (was 15) once they run this release.
    • Judges installed by an earlier server init keep reserving no cores
      and 2 GB. To give them their own:
      llmgw ctl model resources qwen3guard-0.6b --memory 4 --cores 2, then
      llmgw ctl restart --model qwen3guard-0.6b.
    • Patroni replaces a lost primary within 20 s on a new cluster. On an
      existing one, run server init --patroni ... again from the machine with
      the authority; it changes only that.
    • A floating address keeps VRRP router id 51 until server add --vip
      runs again, which moves it to one of its own; run it for every standby.
    • A request whose judge is not there yet waits up to the policy's
      latency_budget for one before fail: closed refuses it.

    Added

    • Setup lets every part be chosen, each with its settings, and says what each is. sudo llmgw on a new machine lists
      the parts of an install: the control plane, the store, the model mirror, this machine as a node, the starter model,
      pictures and 3D, the guardrails' judge, the firewall, notifications, limits and keys, on-demand turns, an offline
      bundle. Beside each is what it will be or what is missing without it. Space turns a part on or off, and Enter opens
      its settings in a dialog that explains it at more length. The settings are: which starter model (six Qwen sizes, or
      any GGUF on Hugging Face) and its context; the mirror's directory or another machine's mirror; the judge's
      categories, copies, wait and what happens when it does not answer; the portal's language; the sign-up form; the
      default limits; the longest a key lives; the on-demand waits. A plan page then lists what is installed and what is
      left out, with the same install as a command. Every setting is a server init flag too (--starter,
      --judge-fail, --media, --max-key-ttl, ...).

    • Three machines are high availability for the gateway, not only the store. With three machines, setup makes the two
      database machines control planes too, standing by while the first leads, with an optional floating address
      (keepalived) that follows whichever leads. Any one machine can now be lost. By command: server init --patroni ... --standbys --vip 10.0.0.160/24. The mirror's management API answers the three control planes, so a standby that
      comes to lead can still fetch models.

    • Pictures uploaded to work from: /v1/files takes purpose=vision or
      user_data besides batch, kept as long as job results, so a picture is
      sent once and named by its file-… id in the MCP tools and a workflow's
      inputs.

    • One ComfyUI for an environment's models: ComfyUI models in one
      comfyui.environment (two or more) share one replica — the catalog
      makes it a hidden entry, comfyui-env-<name>, on the first member's
      profiles with the most memory any member needs, carrying every member's
      weights and custom nodes. Asking for any member starts it; it answers for
      each with that member's workflow and checkpoint, and the members get no
      replicas of their own. A picture model and a 3D model on one card stop
      handing it to each other with a cold start each way.

    • Pictures, 3D models, vision and workflows as MCP tools at /mcp,
      beside the memory notes, each offered only where the gateway has a model
      for it: generate_image (with concept, side and texture styles),
      generate_mesh (from a picture or a prompt), review_images (a vision
      model, to a JSON schema), run_workflow, job_status and
      gateway_status. Each makes its request under the caller's key, so
      allowlists, limits, licences and budgets apply and it is charged like
      any request; what it makes is kept as the caller's file and answered by
      id and download URL. A client that takes a stream gets
      notifications/progress while a mesh is made and waits up to ten
      minutes; one that does not, 50 seconds, then the job id.

    • Setup asks where alerts go: llmgw server init --webhook URL
      (repeatable) and a Notification webhooks field on both setup screens.
      Slack's, Mattermost's and Rocket.Chat's addresses are sent Slack's text,
      any other the event as JSON (slack: or json: in front says which).
      They are added to the cluster's notify.webhooks beside those already
      there, and each is sent a test once the control plane runs on them.

    • Extended thinking on /v1/messages: thinking: {type: "enabled"}
      tells a model that thinks by its chat template to (enable_thinking),
      and its reasoning comes back as thinking blocks before the text,
      streamed as thinking_delta events; disabled tells it not to. Not
      asked for, the reasoning is left out as before.

    • How long on-demand models hold a card is a setting, in force on the
      leader within seconds: on_demand.evict_after_idle (2m unless set) and
      on_demand.min_lifetime (5m). On one card shared by a picture model and
      a 3D model, 1m each brings the wait between a picture and its mesh to
      about a minute.

    Fixed

    • The judges and the starter model divide a machine's CPUs instead of each taking all of them. server init gave the
      judge and the starter no cores of their own, so every llama.cpp engine ran on every core: two judges and the starter
      on a 4-core control plane competed, and under load 38 of 60 requests were refused for want of a judgment. Moved to a
      node of their own with 2 cores each, the same test refused 2. When this machine is the node, init now gives each judge
      replica 1 core (2 from 8 cores) and the starter what is left (at most 8); judges bound for other nodes get 2 each. A
      judge also reserves 4 GB, not 2: it uses about 3.2.

    • A lost store machine stops costing requests most of a minute. The store's connections try each member for 3 seconds,
      not until the kernel gives up, and a connection to a machine that is gone is closed within about 10 seconds (TCP
      keepalive, and TCP_USER_TIMEOUT on Linux). Patroni replaces a lost primary within 20 seconds (ttl 20, loop_wait
      5, retry_timeout 5). Running server init --patroni again applies this to an existing cluster. Measured on three
      VMs with the primary's power cut: about 45 seconds of hanging requests before.

    • Leadership stays put while the store's primary is replaced. Replacing a lost primary takes longer than the
      leadership lease lives, so the lease had lapsed for everyone by the time the store answered again. Whoever asked first
      took it, as often a standby as the leader. A standby that saw the store out of reach now leaves the lease alone for one
      round after it returns, so the leader renews it, and a leader that is truly gone is replaced a round later. With that,
      the default lease is 10 seconds (was 15). A node notices a control plane that died without closing its connection in
      8 seconds (was 15), so it is on its way to the new leader as that one takes over.

    • A judge replica that hangs no longer costs the request. All the tries of a judge request shared the policy's
      budget, so a replica that hung used it all and the try on another replica had none left: under fail: closed the
      request was refused while a judge stood idle. When the first replica has not answered by half the budget, the same
      question now goes to a replica on another machine too, and the first answer is taken. The first replica is not cut
      short, which on a slow machine would refuse answers it was about to give. Replicas on one machine whose CPUs are taken
      are slow together, so asking both only doubles the work there: measured that way, as many requests failed as before.
      On such a machine the remedy is room, not a second question: judges on more than one node, more cores, or the judge
      on a GPU.

    • A new leader waits for the judge instead of refusing at once. The moment a control plane takes the lead it knows no
      judge yet. When every judge fails at once, they are asked again every 250 ms while the policy's latency_budget lasts,
      so fail: closed no longer answers every request in those seconds with 503 (about 17 seconds of them in the test). A
      judge that is slow is not asked again, and an alarm is raised once per request, not once per try.

    • Node discovery for Prometheus listed only the control plane asked and the
      store, so a machine that is both was a control plane to one and a store
      member to the other — scraped twice — and a standby asked alone lost every
      node. Every control plane lists all of them alike; deploy/monitoring's
      prometheus.yml says to scrape and ask each.

    • A model whose weights and context pool did not fit its card was added
      and then failed to make its context on every start, taking the card from
      others each time (Apertus 70B with a 65536-token pool, 8B with 131072, on
      24 GB). ctl model serve shrinks the pool to what the card holds, saying
      so, and refuses weights that do not fit at all; the portal's serve form
      refuses such a pool and says the largest that fits.

    • Removing weights from the mirror that a catalog model still loads is
      refused, naming the model: removed from the mirror alone, the model stayed
      in the catalog and its replicas went on loading the node's copy.

    • Jobs ran one at a time, so a 3D job waiting for the card held up another
      model's job that could have run. They run side by side, one per model at
      a time and eight in all, on the leader as before.

    • llmgw ctl model serve served an embedding model as a chat model: no
      --embedding, four slots, a 512-token batch, embeddings unset and a
      "say hello" smoke test it could not pass. A model whose GGUF says it
      pools (or --embeddings) is served for embedding: 32 slots of 1024
      tokens unless sized otherwise, a batch that holds a whole passage, and
      one vector asked for as its smoke test.

    • llmgw ctl upgrade checks every node's version once the waves are done
      and fails naming any not on the release, and says when the control plane
      has no nodes registered; llmgw upgrade on a control plane says how many
      nodes it left behind and the command that upgrades them. A site's nodes
      stayed a release behind with nothing to say so.

    • The cluster and node pages swapped their live part every few seconds,
      forms and all, so filling one in raced the clock: what was typed, an
      open choice and the focus were lost. The refresh now waits while a field
      in it has the focus or a form in it has been typed into and not sent;
      the mirror page's reload during a download waits the same way.

    Downloads