From 1438aad26cc725670af65c3a7869e85aa90f1a42 Mon Sep 17 00:00:00 2001 From: gearwave00001 Date: Sat, 24 Oct 2026 16:38:48 -0500 Subject: [PATCH] comfyui: Radiance's first ComfyUI node -- /v1/videos over HTTP, zero VRAM One node drives a radiance server: DaSiWa-style structured prompts, all five tasks (t2va/i2va/l2va/fl2va/ref2va) with their media sockets, two LoRA dropdown slots fed from GET /v1/loras mirroring --max-loras 2, tier+aspect size picking that mirrors the plugin's size law into the node title, and a live per-step progress line. Placement is a first draft; the folder is exactly what ComfyUI loads from custom_nodes/. --- integrations/README.md | 22 + .../ComfyUI-Radiance-MiniMax/README.md | 142 ++++ .../ComfyUI-Radiance-MiniMax/__init__.py | 10 + .../ComfyUI-Radiance-MiniMax/radiance_node.py | 791 ++++++++++++++++++ .../web/radiance_size.js | 176 ++++ 5 files changed, 1141 insertions(+) create mode 100644 integrations/README.md create mode 100644 integrations/comfyui/ComfyUI-Radiance-MiniMax/README.md create mode 100644 integrations/comfyui/ComfyUI-Radiance-MiniMax/__init__.py create mode 100644 integrations/comfyui/ComfyUI-Radiance-MiniMax/radiance_node.py create mode 100644 integrations/comfyui/ComfyUI-Radiance-MiniMax/web/radiance_size.js diff --git a/integrations/README.md b/integrations/README.md new file mode 100644 index 00000000..ffc0b669 --- /dev/null +++ b/integrations/README.md @@ -0,0 +1,22 @@ +# Integrations + +Client-side companions to the radiance server — code that runs *beside* other +tools, not inside radiance. + +## comfyui/ComfyUI-Radiance-MiniMax + +Radiance's first ComfyUI node: one node, **Radiance MiniMax**, that drives a +radiance server's `POST /v1/videos` over HTTP and returns the finished clip. +It is a pure HTTP client — no model, no VRAM on the ComfyUI side — so it +coexists with the server even on the same box, and one frontend can point at +several servers on the LAN. + +Drop the `ComfyUI-Radiance-MiniMax/` folder into +`ComfyUI/custom_nodes/` and restart ComfyUI; `README.md` inside it documents +every input (tasks, media sockets, LoRA slots, the size law) and the server +side it expects (`--lora-dir`, CORS, no auth — trusted LAN only). + +The folder layout is exactly what ComfyUI loads, so the repo copy and the +installed copy are the same files — `cp -r` one way. (The location inside +this repo is a first-draft guess; move it if `contrib/` or `clients/` suits +better.) diff --git a/integrations/comfyui/ComfyUI-Radiance-MiniMax/README.md b/integrations/comfyui/ComfyUI-Radiance-MiniMax/README.md new file mode 100644 index 00000000..ce67046f --- /dev/null +++ b/integrations/comfyui/ComfyUI-Radiance-MiniMax/README.md @@ -0,0 +1,142 @@ +# ComfyUI-Radiance-MiniMax + +One node: **Radiance MiniMax**. It calls a Radiance MiniMax-H3 server's +`POST /v1/videos` over HTTP and hands back the finished clip. + +The node is a pure HTTP client — it loads **no model and no VRAM**. The ~60 GiB +checkpoint lives in the radiance server process, which can be this machine +(`http://127.0.0.1:8133`) or any TP2 box on the LAN (`http://192.168.1.x:8133`). +Run three servers, point three copies of the node at them, one ComfyUI +frontend drives all of them. No contention with radiance's VRAM, even when +ComfyUI runs on the same box: the node only sends bytes. + +## Server side + + radiance --model /path/to/minimax-h3-ref2va-*.rad --radiance-home ... \ + --host 0.0.0.0 --port 8133 --tp 2 --vision-tower-placement ram --max-model-len 4096 + +`--host 0.0.0.0` (or your LAN address) is what makes the box reachable from +another machine; the server has **no authentication**, so keep it on a trusted +LAN. Open the port in the firewall (`ufw allow 8133/tcp`). CORS is on, so a +LAN client needs nothing else. + +To serve LoRA files, add `--lora-dir DIR`: any `NAME.safetensors` under it +(subdirs one level deep as `sub/NAME`) can then be named by a request. Same-box +tidbit: mount ComfyUI's `models/loras` into the container and point `--lora-dir` +at the mount, and the LoRAs you browse for `Load LoRA` and the ones radiance +lists at `GET /v1/loras` are the **same files** (radiance reads the kohya / +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). + +## Inputs + +- **server_url / model** — which box, which served model (`GET /v1/models` lists ids). +- **prompt** — widget *and* STRING socket: wire your LLM prompt-enhancer's + output straight into `prompt` and the wire wins over the typed text. The + MiniMax format (`subject_definitions` / `summary` / `retention_analysis` / + `detailed_description`, `` / `` / `` / + `