This repository has been archived on 2026-11-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
radiance-sycl/integrations/comfyui/ComfyUI-Radiance-MiniMax
Deadcode 6645337f69 radiance 1.13.0
New models:
- Tencent Hy-Memory (HYV3) from its BF16, FP8 and GGUF checkpoints, with its native tool calls
- M2XFP4: metadata-augmented MXFP4 weights for Qwen3.8-27B and its DFlash2 drafter (top-1 89.1% ->
  92.4% against plain MXFP4), its quantiser and recipe, and ParoQuant's M2XFP4 checkpoints
- Gemma 4 E2B/E4B audio input; NVIDIA-Nemotron-3.5-Bolt-E4B in int8 and 4-bit, on two cards by
  default; Ornith-1.5-122B compose files

Speed:
- Weight reads beside the decode all-reduces (qwen35_fp8, gemma3; --weight-prefetch, on by default):
  the 27B MXFP4 with DFlash2 61.2 -> 67.9 tok/s at c1, TranslateGemma 27B +13%
- Head-256 split-KV decode attention at 256 workgroups and without bank conflicts (27B: +3-5% a
  step at 25-41K context), and the prefill KV split for small launches (a short turn over a long
  context decodes the other sequences 27% faster in that step)
- MXFP4 decode gate_up, activation and fp8 quantiser in one launch (27B, Gemma 3 up to 64 rows:
  TranslateGemma +2-5% at 2-8 streams)
- ParoQuant int4/int5 tiled GEMMs 6-9% faster
- Speculation: a step's tokens are sent before the drafter's passes end, no step waits behind one
  that ends its requests, and the MTP head's first draft no longer collapses after short chats in
  the prefix cache

Features:
- --kv-resident N: KV streaming for a context bigger than VRAM (qwen4exp_fp8, GLM-5.3)
- MiniMax-H3: reference media and keyframe conditioning with the VAE encoders
- Krea 2 rebalance presets balanced, detail and subtle
- The dashboard's request history; a stall watch that reports a frozen step's thread and stack
- rad-tune at the served configuration, collectives measured as the exchange; Gemma 4 E2B/E4B's
  per-layer embeddings read ahead off the step path
- A GPTQ calibration tap and recipe for Gemma 4 31B's w4a8 container

Fixes:
- The two-rank all-reduce checks that a peer's push has landed before reducing it
- z-lab's DFlash drafter on Gemma 4 31B keeps drafting after a prefix-cache hit
- MiniMax-H3's modulation rows

Changes: Plugin ABI 31: out-of-tree plugins must be rebuilt. RADIANCE_PREFETCH_BESIDE is
--weight-prefetch now; RADIANCE_NO_HUGE_PAGES, RADIANCE_IDS_EARLY, RADIANCE_ATTN_BAND_SPLIT,
R4D_PREFILL_SPLITS, RAD_PLE_TIMING and RAD_PLE_CACHE_ROWS are gone.
2026-10-27 16:47:35 +01:00
..
2026-10-27 16:47:35 +01:00
2026-10-27 16:47:35 +01:00
2026-10-27 16:47:35 +01:00
2026-10-27 16:47:35 +01:00

ComfyUI-Radiance-MiniMax

One ComfyUI node, Radiance MiniMax, that renders a clip on a radiance server serving MiniMax-H3 (POST /v1/videos) and returns it. The node is an HTTP client: the model runs in the radiance server process, on the same machine or another one, and ComfyUI holds no model and no VRAM for it. Several nodes can drive several servers from one ComfyUI.

Install it by copying this folder into ComfyUI/custom_nodes/ and restarting ComfyUI. The node's description (the ? in its header) documents every input.

The server

radiance --model minimax-h3-fp8.rad --radiance-home ... --tp 2 \
    --host 0.0.0.0 --port 8133 --lora-dir /path/to/loras

--host 0.0.0.0 makes the server reachable from other machines. The node sends no API key, so it drives a server without --api-key, which takes any request: keep that server on a trusted network. The node fetches the adapter lists from the browser, which needs the server's CORS headers (on unless --no-cors).

--lora-dir lets a request name any NAME.safetensors under the directory; the node's two adapter lists show them (GET /v1/loras). Pointing it at ComfyUI's models/loras serves the same files ComfyUI shows. ComfyUI's Load LoRA node does not apply to this node, since the server applies adapters to the weights it serves.

The server reserves every adapter slot in VRAM at startup and logs what a slot costs. With --lora-dir alone it reserves two (--max-loras). On two 32 GB cards serving MiniMax-H3 a rank-16 slot costs about 265 MiB a card, and the second one fits only when nothing else holds VRAM on those cards. When it does not, startup stops with vram_kv resolved to 0 MiB: serve with --max-loras 1 and leave the node's second adapter at none, or run ComfyUI on other cards.

Media

task media used
t2va none
i2va image_1: the first frame
l2va image_1: the last frame
fl2va image_1: the first frame, image_2: the last frame
ref2va image_1..9, video_1..3, video_audio_1..3, audio_1..3

A task ignores media it does not use, with a warning on the console. For ref2va, video_audio_N is the soundtrack of video_N, and audio_N is standalone reference audio such as a voice. Each kind is filled in order, since the input's number is the reference's number in the request. Pictures are sent as PNG, audio as WAV and clips as MP4.

Sizes

The resolution tier is the short side and the aspect gives the long side (480p 16:9 is 864x480); the node's title shows the size. MiniMax-H3 takes sides that are multiples of 32 px and at least 256, an aspect of at most 4:1 and an area of at most 1344x768, so 720p 16:9 is 1312x736. A custom size is adjusted to the nearest size the model takes, with a note on the console. Every task takes every size.

latent_upscale (advanced) runs the early steps at half or a quarter of the size and the rest at full size, with a container converted with the latent upscaler. The keyframe tasks do not take it.

Outputs

The clip is saved under radiance/ in ComfyUI's output folder and returned as a VIDEO, with its path and the server's job id (GET /v1/videos/<id>). While the job runs, the node drives the progress bar and prints a console line for each finished step:

[RadianceMiniMax] video_x: 45%, step 12/26, 5.2 s/step, eta ~1m 07s and the decode, elapsed 55s

A refused or failed job raises with the server's message; timeout (advanced) bounds the wait.