Skip to content

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 03 Nov 17:27
· 47 commits to main since this release

Added

  • [desktop]: free the VRAM the graphical desktop holds on a card. policy = "stop" stops the
    configured user units and display manager while an LLM model from models is loaded, less
    than min_free_mib is free, or a job does not fit, and starts the display manager again
    restore_delay_s after the last reason. policy = "offload" restarts the desktop pointed at
    another card instead ([desktop.offload]), checks that it left the card, and uses
    fallback when it cannot. Off by default. Never acts while a user is logged in at the seat.
  • The processes holding a card are found through /proc/*/fd and DRM fdinfo by PCI address,
    with their resident VRAM; processes in ignore, such as a headless compositor, never count
    as the desktop. Nothing is killed: only the configured units are stopped and started.
  • Each change is checked: units down or up, the desktop's processes gone, VRAM before and
    after; a release that does not complete is rolled back. After each change the system and
    user journals are read for new errors, failed units and core dumps.
  • After a stop, session_env is set in the user manager and the D-Bus activation environment,
    so D-Bus activated services do not start against the display that is gone.
  • gpuq desktop [status|release|restore], GET /desktop, POST /desktop/release and
    POST /desktop/restore; gpuq status and GET /status show the desktop state.
  • Optional wake_on_input: a key press at the seat restores the desktop.
  • [llm.class_tuning.<class>] hold_other_models_s: while that class uses the LLM, and that
    long after its last request, requests of less important classes for another model wait, so a
    server with one model at a time does not swap back and forth. Same-model and more important
    requests pass. gpuq status shows a holding line and GET /status a model_hold object;
    the log has one line when a hold starts and one when it ends.

Fixed

  • A lease on one AMD or Intel card now also gets DRI_PRIME=pci-<address>!, so Vulkan and
    OpenGL programs see that card and no other. HIP_VISIBLE_DEVICES and ROCR_VISIBLE_DEVICES
    only steer ROCm: a Vulkan build of whisper.cpp took Vulkan device 0, the integrated GPU,
    while gpuq had unloaded the LLM from the card it leased. Leases on several cards get no pin,
    since Mesa takes a single device. A DRI_PRIME set in the card's own env is kept.
  • An unreachable Immich is logged once, and again when it is back, instead of on every poll.
  • gpuq check-config no longer shows a gate address when backend = "none", where no gate
    runs.
  • A gpuq run or gpuq hold whose connection to gpuq breaks says so instead of printing the
    bare HTTP error.

Changed

  • CI runs on pushes to every branch, not only main.