docs: the second LoRA slot does not fit a busy 32 GB card -- document the budget and default to --max-loras 1

Measured on the flagship serve (MiniMax-H3 dasiwa-fp8, TP2, rank 16): an
adapter slot is 265 MiB a card and EXACTLY one slot of elastic slack
survives the video arena after KV takes the rest. --max-loras 2 boots only
when nothing else holds VRAM (an idle ComfyUI on the box itself holds
~1.7 GiB); otherwise startup stops at 'vram_kv resolved to 0 MiB'. Lowering
--max-num-batched-tokens is not an escape for a video generator -- the auto
value is a floor (the largest denoise step must fit the arena) and the
declare refuses below it (verified live).

Written where a stuck user or their agent will grep it: the node's lora 2
tooltip (names the failure string), a README 'LoRA slots and VRAM' section,
GUIDE's --max-loras bullet, and the PR's Known limits. Recommendation:
serve with --max-loras 1; go to 2 on idle cards.
This commit is contained in:
gearwave00001 committed 2026-10-25 05:14:04 -05:00
1 parent 258d685768
commit 07904a3628
3 files changed
+41 -6

No files matched your search

+9
View File
@@ -1612,6 +1612,15 @@ below.
unload while serving: `POST /v1/load_lora_adapter {"lora_name": "x", "lora_path": "/dir"}` and
`POST /v1/unload_lora_adapter {"lora_name": "x"}` (vLLM's routes; loopback-only without
`--api-key`).
On a 32 GB card a video generator's slots can be the line between booting and not: the buffer
plan's activation arena is fixed by the largest legal step, and whatever elastic VRAM survives it
must also hold the KV cache — measured on MiniMax-H3 TP2 at rank 16, one slot is 265 MiB a card
and exactly one slot of slack survives, so `--max-loras 2` boots only when the cards are
otherwise free (an idle ComfyUI on the same box holds ~1.7 GiB). The failure mode is a startup
that stops with `VRAM pool budgets are empty: … vram_kv resolved to 0 MiB`. Lowering
`--max-num-batched-tokens` cannot buy the room back on a video generator — the auto value is a
floor (the largest denoise step must fit the arena) and a lower one is refused at declare.
Default to `--max-loras 1` on tight cards.
- An unload of an idle adapter answers 200 and frees its slot. An unload of an adapter requests
are still using **drains** it and answers 202
`{"action": "draining", "lora_name": "x", "in_flight": N}`: from then on a request naming `x`
@@ -30,6 +30,24 @@ ComfyUI / PEFT key spellings as they come). New LoRA without a restart:
`POST /v1/load_lora_adapter {"lora_name": "...", "lora_path": "..."}` with a
path on the **server's** filesystem (loopback-only unless `--api-key` is set).
**LoRA slots and VRAM — tight on 32 GB cards.** Every adapter slot is *reserved
at server start* and lives in VRAM whether used or not (the startup log prints
"N slots of rank R, X a slot on this rank"). A video generator's activation
arena is sized for its largest legal step and is not shrinkable, so the slots
compete head-on with the KV cache for whatever slack remains. Measured on this
node's flagship serve — MiniMax-H3, TP2, 32 GB cards, rank 16 — one slot costs
**265 MiB per card and exactly one slot of slack remains** after the arena:
`--max-loras 1` boots by a hair; `--max-loras 2` boots **only if nothing else
holds VRAM** (stop ComfyUI on the same box — it holds ~1.7 GiB itself — and any
other GPU process). The failure signature is a boot that stops with
`the static weights alone want … of the … this card can give` then
`VRAM pool budgets are empty: … vram_kv resolved to 0 MiB` (exit 1).
Lowering `--max-num-batched-tokens` to claw room back does NOT work for a
video generator: its auto value is a floor — the largest denoise step must fit
the arena — and a lower one is refused at declare. **Recommendation: serve
with `--max-loras 1` as the default** (this node's `lora 1` keeps working,
keep `lora 2` at `none`); raise to 2 when the cards are otherwise idle.
## Inputs
- **server_url / model** — which box, which served model (`GET /v1/models` lists ids).
@@ -467,12 +467,20 @@ class RadianceMiniMax(io.ComfyNode):
tooltip="strength of the loras pick -- sent as NAME:STRENGTH; "
"inert while loras is 'none'"),
io.Combo.Input("lora2", options=["none"], default="none", display_name="lora 2",
tooltip="second adapter -- the radiance server holds "
"--max-loras 2 by default, and this pair mirrors "
"that exactly. Same dropdown rules as loras "
"('none' = off); either slot may stand alone. "
"Beyond two: <lora:name:0.8> prompt tags and a "
"raised --max-loras on the server"),
tooltip="second adapter -- mirrors the server's second "
"adapter slot (--max-loras; 2 with --lora-dir "
"alone). VRAM NOTE: slots are reserved at server "
"start, and on 32 GB cards a video generator may "
"only fit ONE -- the second slot can leave the KV "
"cache nothing and the server refuses to boot. If "
"the server dies with 'vram_kv resolved to 0 MiB', "
"free the cards (stop ComfyUI too -- it holds "
"VRAM) or serve with --max-loras 1 and keep this "
"slot 'none'. See the README, 'LoRA slots and "
"VRAM'. Same dropdown rules as loras ('none' = "
"off); either slot may stand alone. Beyond two: "
"<lora:name:0.8> prompt tags and a raised "
"--max-loras on the server"),
io.Float.Input("lora2_strength", default=1.0, min=0.0, max=2.0, step=0.05,
display_name="lora 2 strength",
tooltip="strength of the lora2 pick -- sent as NAME:STRENGTH; "