Lemonade PR #4004 on a five-card host
PR #4004 by fl0rianr adds GPU selection per backend, picked in the app. The author asked for testers with several GPUs. We ran it on a search-and-rescue lab machine with five NVIDIA cards, four of them the same model, and on a second machine with two.
Short version: selection works and lands on the card you pick. Tested at commit 860279342 on 14–15 November 2026.
Hardware
| Machine | Cards | Driver | OS |
|---|---|---|---|
| First | 4 × Tesla P100 16 GB, 1 × RTX 2060 12 GB | 580.178.04, CUDA 13.0 | Arch-based Linux |
| Second | 1 × Tesla P100 16 GB, 1 × Quadro P1000 4 GB | 580.178.04 | Ubuntu 24.04 |
Two of the five cards were ours to load for this test; the other three were busy with other work and only had to appear in the list correctly.
Results
| Test | Result | Evidence |
|---|---|---|
| The PR's own unit tests | Pass | 42 and 133 checks, 0 failures |
| Device list matches the driver | Pass | 5 cards; count, order, UUID and memory match nvidia-smi |
| Vulkan: pick a card, work lands there | Pass | Vulkan3 and Vulkan4 each landed on their own card only; no build changes needed |
| CUDA: pick a card, work lands there | Pass * | CUDA3 and CUDA4 mapped by UUID, from the app and from the CLI |
| Choice survives unload and server restart | Pass | Saved on the server |
| Saved card that does not exist | Pass | Clear error, nothing starts |
| Two backends on two cards at once | Pass | CUDA on one card, Vulkan on another, both generating |
| CLI and REST | Pass | --sdcpp-device CUDA3, --save-options, and the load body |
| Text model with no device option | Pass | llama.cpp on CPU loads and answers |
| App on one machine, server on another | Found a bug | See below; fix offered |
| Chosen card is full | Fails without saying why | "sd-server failed to start"; no mention of memory or the card |
| TheNoise, ACE-Step, ThinkSound, TRELLIS, OpenMOSS | Not run | Their builds start at a newer card generation than the ones we could load |
| ROCm, Windows, macOS | Not run | No such hardware in this test |
* The stock CUDA build of stable-diffusion.cpp does not cover Tesla P100 cards, so for the CUDA rows we pointed Lemonade at our own build of it and used a small wrapper so the server would offer CUDA on these cards. Card indexes, names, order and UUIDs were untouched. The Vulkan rows used nothing of the kind.


What worked well
- UUID mapping does its job with four cards that share one name. The log line names the UUID it selected, which made checking easy.
- Lemonade numbers CUDA cards the way
nvidia-smidoes. CUDA's own order on this machine is different (it puts the RTX 2060 first), so a plain index would have picked the wrong card for two of the five. - Errors for a bad saved device are clear, and nothing is started.
- The Vulkan path needed no help at all on old cards.
Two things we found, with a fix
- Changing the server in Settings keeps the old machine's cards. With the app pointed at a second server, the Device list still showed the first machine's cards and its saved card, and Load sent that card name to the second machine, where the same name is a different card. Steps: save a card for a model on server A, change Settings → Server URL to server B, open the same model, press Load.
- A card saved from the CLI is listed twice in the app. The CLI and docs write
CUDA4, the app writescuda4, and the selector treats them as two entries.


The fix is four small commits on top of the PR, app code only: festeraeb/lemonade, branch cesarops/4004-multi-machine (diff against the PR). The app's runtime tests pass with it, 47 of 47, with one new test file. It is offered to the author to take, change or ignore.
Smaller notes for the author
- Identical cards differ only by index in the selector. A short UUID or bus id in the label would help on machines like this one.
- The saved value is an index. If a card is added or removed, a saved
CUDA3can point at a different card. Saving the UUID would hold. - An explicit card choice overrides a
CUDA_VISIBLE_DEVICESmask set when the server started; "auto" respects the mask. That may be intended. - On a machine with mixed card generations the CUDA build follows the newest card, so the older cards are listed under CUDA but cannot be used there.
- The
/v1/loadtable in the API docs does not listsd-cpp_deviceorsd-cpp_backendyet. - After a failed load on a chosen card, the next request loads with automatic selection, which can open every visible card.
What this test does not show
- CUDA index 0 and 1, the two cases where CUDA's order and the driver's order differ on this machine, were not loaded: those cards were not ours to use.
- Mesh routing between machines is not on the branch this PR targets, so "multi-machine" here means the app talking to a remote server.
- Re-seating cards to shift indexes was not done.
← Back to CESARops × Lemonade: what we build on Lemonade for search and rescue, the adapter plane, and the collaboration board.