• v0.10.7-rc.8
    Release / build (push) Successful in 1m14s
    Release / notes (push) Successful in 4s
    CI / test (push) Successful in 3m50s
    Pre-Release

    gitea-actions released this 2026-10-03 18:46:23 +02:00 | 569 commits to main since this release

    From the field report in issue #2, after a deployment on GPU nodes.

    GPU metrics that move, and charts of them

    A GPU's utilisation and memory in use were read once, when the agent
    started, and published from then on: a card busy since looked as idle as it
    was at registration, and one idle since as busy. They are now sampled with
    the temperatures and power every heartbeat (ten seconds at most), with the
    memory bandwidth in use, the SM clock and uncorrected ECC errors besides.
    An agent too old to send them still has its registration figures published,
    and a figure the driver does not give is left out rather than shown as zero.

    • New series: llmgw_gpu_memory_utilization_percent,
      llmgw_gpu_sm_clock_mhz; llmgw_gpu_utilization_percent,
      llmgw_gpu_memory_used_bytes and llmgw_gpu_ecc_errors now from the
      sample.
    • The node page shows each card's utilisation, memory, clock and ECC
      errors in its table, and charts of utilisation, memory, temperature and
      power, one line per card.
    • The cluster page charts the fleet's GPUs by class: average utilisation
      and memory in use.
    • Grafana (deploy/monitoring/grafana/llmgw-overview.json) has a GPU row:
      utilisation, memory, memory bandwidth, temperature, power against the
      limit, clock, and what holds cards back.
    • Alerts: GPUThermalThrottling (ten minutes slowed by heat),
      GPUUncorrectedECCErrors, GPUHot (above 87 °C for ten minutes).
    • The cluster page's GPU map: every card a square, a row per node,
      coloured by how busy, how full or how hot it is (?gpumap=util|memory|temp),
      with what holds it and its figures under the pointer; free cards dashed.
    • Cards held and doing nothing: the replicas whose every card reads under
      5% busy, with when they were last asked — the first place to find room.
    • What each model gets from its cards, on the cluster page and in
      Grafana: output tokens a second per GPU and per watt-hour, with the cards'
      draw and average utilisation, over the last quarter hour.
    • What wears a card out, read every minute: XID errors from the kernel's
      log (counted from when the agent started), memory rows remapped or pages
      retired and whether either waits for a reset, a card out of spare rows,
      PCIe link retries and NVLink errors. Published as llmgw_gpu_xid_errors,
      llmgw_gpu_last_xid, llmgw_gpu_remapped_rows, llmgw_gpu_remap_pending,
      llmgw_gpu_remap_failure, llmgw_gpu_retired_pages,
      llmgw_gpu_retirement_pending, llmgw_gpu_pcie_replays,
      llmgw_gpu_nvlink_errors; said in words on the node page; a red outline
      on the GPU map; a Grafana panel; and alerts — GPUXidError,
      GPUOutOfSpareRows, GPUNeedsReset, GPUPCIeRetriesClimbing,
      GPUNVLinkErrorsClimbing.
    • GPU time by owner on the usage page: the cards each owner's models
      held over the window, charted and summed into GPU-hours, whether or not the
      models were asked anything — the time a GPU quota is about. From the
      metrics store, as far back as it keeps history.
    • llmgw_gpu_assigned{node,gpu,model,replica,owner}: which replica holds
      each card and whose quota it counts against, for joining the GPU series to
      models and tenants.

    A card shared with something else is judged every heartbeat

    A card with another process on it when its agent started was kept out of
    placement, and stayed out — "5014 MiB already allocated by another process" —
    after that process let go of it, until the agent was restarted. Found on a
    node shared with ComfyUI. The other way round, a tenant arriving after
    registration was never seen, and a card the agent's own engine held when the
    agent restarted read as someone else's.

    The agent now reads every card's memory per process on each heartbeat,
    leaves out what its own engines hold, and sends the rest; the control plane
    keeps a card out of placement on that reading, and lets it back in when it
    falls under 512 MiB. llmgw_gpu_memory_used_bytes reads the same figure. An
    agent too old to send it keeps the reading from registration.

    A GPU placement no longer runs on the CPU unnoticed

    llama.cpp placed on a GPU, with its CUDA backend unable to load (cuBLAS not
    where the loader looks), came up on the CPU, answered at CPU speed, and was
    reported ready while its GPU sat reserved and idle. Three checks now stop it:

    • Installing the CUDA build asks it which devices it sees
      (llama-server --list-devices). None, on a node with GPUs, is a failed
      install, with what ldd says libggml-cuda.so is missing. The binary's
      own ldd could not say it: the backend is opened at run time.
    • After the upgrade, engines the agent finds already running are held to
      the same check when it adopts them: one serving a GPU placement on the CPU
      is stopped, and its replacement starts through the check. The installed
      CUDA build is checked again within ten minutes, and installed afresh if it
      sees no GPU.
    • Starting a shard on GPUs is ready only when its process holds memory on
      each of them (nvidia-smi --query-compute-apps, its process group
      included). One that does not is stopped and reported failed: "placed on GPU
      0 but computing on the CPU", with the devices the engine lists. This covers
      a hand-installed binary (engines.llamacpp.bin), which nothing else checks.
    • llmgw ctl engine-check llamacpp, run on a GPU node, now also fails
      when the engine sees no GPU, and otherwise prints the devices it computes on.

    Shards are also given CUDA_DEVICE_ORDER=PCI_BUS_ID: placement numbers GPUs
    as nvidia-smi does, by PCI bus, and CUDA's own order is fastest first — on a
    node with two kinds of GPU, a shard could get a different card from the one it
    was given.

    A model of many files, mirrored whole for vLLM

    vLLM loads a directory — shards, config.json, the tokenizer — and does not
    read GGUF. Mirroring one could go wrong several ways: the explorer offered the
    shards alone, a node could be handed a version still downloading or missing a
    shard, and a repository's page given as a model's source was fetched as one
    file of HTML.

    • The explorer fetches a safetensors set with what the engine reads beside
      it
      : config.json, generation_config.json, the tokenizer files, the shard
      index, the quantisation config. Never code: a .py would be the engine
      running what the repository ships, which is to be chosen on purpose.
    • A version is offered to nodes only whole. The mirror refuses its
      manifest (409, with what is missing) while a file is still downloading, or
      while a shard its model.safetensors.index.json names, or a part of a
      split (-00002-of-00004), is absent. A node reports "not complete on the
      mirror yet" and is tried again.
    • Checksums go with the files. The mirror keeps each file's sha256 beside
      it and the manifest carries it; a node checks every file of a set against
      it before using the set, and fetches one that differs again.
    • llmgw mirror add takes several URLs into one version.
    • A Hugging Face repository page given as a source is read as the
      repository id for a model vLLM or SGLang runs, which the engine downloads
      itself (the node then needs to reach Hugging Face), and refused for one
      llama.cpp runs, which needs a file.

    With a vLLM profile of tp: 4, placement reserves four GPUs of one node for
    such a model, as before.

    Signing up with an address that has an account

    On PostgreSQL, signing up with an address already registered showed
    "something went wrong; try again": the store recognised a duplicate by the
    word "UNIQUE", which is SQLite's, and PostgreSQL says it in lower case under
    code 23505. It now knows both, and the address is answered as on SQLite —
    with the same page as a new sign-up, so the page cannot be used to find out
    who has an account. That page now also says what to do if the address had
    one: sign in, or ask an operator to reset the password.

    An error the page does not explain says the account was not created and
    gives a reference (err-…), logged beside the error, for an operator to find
    it; the database's own words stay in the log.

    An adapter no fabric uses does not keep a node out

    llmgw doctor failed a node for a RoCE port with no RoCE v2 GID entry, or for
    ib_uverbs not being loaded, whether or not any fabric used them; on a node
    added for single-node inference, with no fabric given, that refused it for
    RDMA nobody had asked for.

    • Those are failures only for ports a declared fabric uses, and only when a
      fabric is declared. Otherwise they are warnings saying nothing uses them yet.
    • Which fabric an undeclared InfiniBand port is on, and whether it has a
      subnet manager LID, are notes rather than warnings; node add still warns
      once that adapters are up with no fabric given.
    • node add --fabric hands its fabrics to doctor (doctor --fabric name:mlx5_0,…), so they are checked as declared even though agent.yaml is
      written afterwards.

    A restart with no room beside it

    ctl restart places each replacement beside the replica it replaces. With
    no room for it — one GPU, every card that fits held by the replica itself —
    the old replica was stopped only after the drain grace period, five minutes
    of "restart replacing" with nothing saying why, which read as a restart that
    never happened; scaling to zero and back was the way out. And a replacement
    that fit nowhere even with the old replica gone was stopped for all the same,
    leaving the model with nothing. Now:

    • The replica is the only thing in the way, found by placing the
      replacement on a copy of the inventory without it: stopped at once, the
      replacement taking its place.
    • The replacement fits nowhere even then: the restart is given up and the
      replica keeps serving. ctl replicas shows restart refused: and why.
    • Room being made — a lower class preempted, an idle on-demand replica
      stopping — is waited for, as before.
    • ctl restart --in-place stops each replica first, whatever room there is.

    Every GPU node gets engine builds it can run, by itself

    Which build of an engine a node installs follows its hardware — the CPU
    architecture, the driver, and the oldest GPU on it — from what each project
    publishes and how it was compiled. Each engine has a list of builds, best
    first; the node takes the first its hardware meets, and the first of those
    that installs and is seen to compute on the GPU. A build the table is wrong
    about costs its download, and the next one is tried.

    llama.cpp vLLM
    Driver 580+, Turing and newer CUDA 13.3 the version asked for, CUDA 13 (PyPI)
    Driver 525–579 CUDA 12.8 (x64): its machine code for 8.6, 8.9, 12.0; the GPUs it ships as PTX need 570 the version asked for, CUDA 12.9 (vLLM's GitHub release, PyTorch's cu129 torch)
    Volta (V100) CUDA 12.8 on driver 570+, else Vulkan 0.19.1, the newest vLLM built for 7.0: no build of 0.20 or later has its kernels
    Pascal, Maxwell CUDA 12.8 on 570+, else Vulkan none: no vLLM is built for them
    arm64 GPU (GH200, Grace) CUDA 13.3, else Vulkan — never the CPU build CUDA 13 or 12.9, 8.0 and newer
    No NVIDIA GPU the CPU build none

    Read from the projects' release pipelines: vLLM's x86 builds start at 7.5
    from 0.20.0, its PyPI build is CUDA 13 from 0.20, 0.19.1 was the last
    compiled for 7.0 (PyPI's torch 2.10 is too); llama.cpp's CUDA 12.8 build
    carries 5.0–9.0 as PTX and 8.6/8.9/12.0 as machine code, its CUDA 13.3 build
    starts at 7.5.

    • A node running an older vLLM says so: the cluster page's vLLM build
      column shows the version installed, and the installation's detail says why
      ("vLLM 0.19.1, the newest built for compute capability 7.0, instead of
      0.30.0"). Profiles choose GPUs by class, so a model meant for the newer
      vLLM is not placed on a V100 by accident.
    • The install computes on the GPU before it counts: a small tensor
      operation for vLLM, the devices llama.cpp lists for its GPU builds.
    • The build can still be chosen per node on the cluster page (auto, CUDA
      13, CUDA 12.9, none), with llmgw ctl engine-build NODE vllm BUILD, or
      POST /api/v1/nodes/{id}/engines; kept in the store and sent to the node
      at once.
    • Whether an engine computes on its GPUs is read from every process
      nvidia-smi lists
      , not compute processes alone: the Vulkan build is a
      graphics one. A llama.cpp shard is given GGML_VK_VISIBLE_DEVICES beside
      CUDA_VISIBLE_DEVICES.

    Engines per node, and nodes that do not run them all

    A cluster with older GPUs could not add them cleanly: node add refused a
    V100 node for the vLLM it could not run, though it was meant for llama.cpp,
    and --ignore-checks passed over every other problem with it.

    • What vLLM cannot do is a warning, in llmgw doctor and node add: the
      node joins without it and serves what it does run. node add checks the
      vLLM the control plane installs, not the binary's own default.
    • node add --disable-engine vllm keeps an engine off a node for good:
      written as engines.disabled in its agent.yaml, never installed or
      advertised there, and not checked by doctor.
    • engine_overrides in server.yaml give nodes picked by GPU class, id
      or labels a different version of an engine, or none — for exceptions; the
      build each GPU generation needs is chosen without it (above).
    • The requirements follow the version, as the table above sets out; the
      threshold had been CUDA 13's for every version.
    • An engine binary named in agent.yaml is used. The agent had installed
      its own beside it, which was then used first.
    • The node page shows each GPU's compute capability.

    Serving from the mirror says where a model will run

    The serve form put every GGUF model on the CPU: it offered no choice, and its
    "Profile name" field, pre-filled "cpu", read as though renaming it would move
    the model to a GPU. Placement is decided by gpu_class, which the form never
    set. Now:

    • Runs on lists the fleet's GPU classes with how many cards are free, and
      for llama.cpp the CPU. On a fleet with GPUs the class with the most free
      cards is chosen.
    • GPUs per replica sets how many cards a replica takes on one node
      (gpus_per_node for llama.cpp, tp for vLLM), and parallel requests
      how many a llama.cpp replica serves at once.
    • The profile is named for where it runs (t4, t4-x4, cpu) rather than
      typed.
    • A line under the form says what the model will run as — engine, CPU or how
      many of which GPU, memory, context pool and how it is divided — and turns
      red when the CPU is chosen with GPUs free. The message after adding repeats
      it.
    • Choosing the CPU while GPUs are free is refused unless run on the CPU
      anyway
      is ticked.

    llama.cpp on several GPUs of one node

    A llama.cpp profile takes several of a node's GPUs with gpus_per_node: N:
    placement reserves N cards of its gpu_class on one node, the engine sees
    those N (CUDA_VISIBLE_DEVICES) and spreads the layers over them
    (--split-mode layer, in proportion to each card's free memory, which for
    whole cards is even). tp or pp on a llama.cpp profile was a width nothing
    placed — the replica stayed unplaced or ran on one card. It is now read as
    gpus_per_node, so a profile written that way is placed on that many cards
    after the upgrade, rather than dropped; only both given and disagreeing, or
    nodes above one, is refused.

    Downloads