Skip to content

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 17 Oct 15:09
· 70 commits to main since this release

Several cards can now work as one: a job, a service or the LLM server can hold more than one GPU at a time, and gpuq finds every GPU on the machine by itself.

Added

  • Leases on several cards at once: gpuq run --card gpu0,gpu1, --card all, or --cards 2 for any two cards with room. --vram applies to each card. In the lease API: "cards": ["gpu0", "gpu1"], "card": "all" or "card_count": 2.
    • A multi-card lease is granted all at once or not at all. It holds nothing while it waits, so two leases can never block each other.
    • Later leases of its class or below do not overtake it on its cards.
    • When something more important needs one of its cards, a yieldable multi-card lease is asked to yield.
  • The job gets the env of all its cards in one list, for example CUDA_VISIBLE_DEVICES=GPU-a,GPU-b, and GPUQ_CARD=gpu0,gpu1. Cards of different vendors can share a lease only when they use different variables.
  • The LLM server can span several cards. llm.card takes a list, and [llm.models.<id>] gives a model its own cards or its vram.
    • A model too big for the LLM's card gets the fewest extra cards that fit it. For llama-swap models, the size is estimated from their GGUF files.
    • A job that needs any of the LLM's cards unloads it from all of them, and the LLM reloads on all of them.
  • llama-server started by gpuq gets the cards' env and, with several cards, LLAMA_ARG_SPLIT_MODE and LLAMA_ARG_TENSOR_SPLIT.
  • A [[service]] can name several cards.
  • gpuq status and GET /status show multi-card leases and the LLM's cards.
  • docs/architecture.svg, a diagram of how the parts fit together.

Changed

  • With no [[gpu.card]] and no single device set in [gpu], gpuq detects every AMD and NVIDIA GPU and manages all of them, named gpu0, gpu1, and so on, largest first.
    • Each card is matched by its PCI address. Jobs are pointed at it by UUID (CUDA_VISIBLE_DEVICES on NVIDIA, ROCR_VISIBLE_DEVICES on AMD), so device order does not matter.
    • To leave a card out, add gpu.exclude = ["0000:15:00.0"] or gpu.skip_integrated = true. gpuq check-config lists every card it found.
    • If you have a single card, jobs now also get its device id in their environment.
  • A job that names no card now goes to any card with room. Use --card primary or "card": "primary" to keep the old behaviour.
  • gpu.nvidia_index has no default any more: setting it means a single NVIDIA card.
  • all is now a reserved card name.

Docs: how it works, two-card llama.cpp and llama-swap example, configuration.

Full list of changes: CHANGELOG.md