Repository navigation
v0.3.0
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 2for any two cards with room.--vramapplies 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, andGPUQ_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.cardtakes a list, and[llm.models.<id>]gives a model its owncardsor itsvram.- 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_MODEandLLAMA_ARG_TENSOR_SPLIT. - A
[[service]]can name several cards. gpuq statusandGET /statusshow 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_DEVICESon NVIDIA,ROCR_VISIBLE_DEVICESon AMD), so device order does not matter. - To leave a card out, add
gpu.exclude = ["0000:15:00.0"]orgpu.skip_integrated = true.gpuq check-configlists every card it found. - If you have a single card, jobs now also get its device id in their environment.
- Each card is matched by its PCI address. Jobs are pointed at it by UUID (
- A job that names no card now goes to any card with room. Use
--card primaryor"card": "primary"to keep the old behaviour. gpu.nvidia_indexhas no default any more: setting it means a single NVIDIA card.allis now a reserved card name.
Docs: how it works, two-card llama.cpp and llama-swap example, configuration.
Full list of changes: CHANGELOG.md