ComfyUI reference¶
This page has the details of the gmlx nodes for ComfyUI: what
gmlx launch comfyui does with its options, how the nodes find the server,
how they share the work with ComfyUI, the model loader's attention and what
they refuse. The guide is ComfyUI.
Launch options¶
gmlx launch comfyui --model qwen-image-turbo
gmlx launch comfyui --comfyui-dir ~/src/ComfyUI
gmlx launch comfyui -- --use-pytorch-cross-attention
--model picks the model the loaders show first. --comfyui-dir names
another ComfyUI folder, and arguments after -- go to ComfyUI. Without
--comfyui-dir, launch uses the folder it used last, then ~/ComfyUI,
then the ComfyUI that gmlx comfyui install finds, where a ComfyUI it can
start comes before Comfy Desktop. It puts the gmlx nodes into that ComfyUI
as gmlx comfyui install does, then runs ComfyUI's main.py on the Python
of the folder's .venv or venv. ComfyUI opens on port 8188, or 8189 when
gmlx uses 8188, and listens only on 127.0.0.1.
launch tells the gmlx nodes where the server is through the environment:
| Variable | Set to |
|---|---|
GMLX_BASE_URL |
The server's address |
GMLX_API_KEY |
The server's API key, when it has one |
GMLX_DEFAULT_IMAGE_MODEL |
--model, or the server's default image model |
How the nodes find the server¶
A ComfyUI started another way, such as Comfy Desktop, finds the server
through the loader's server_url input, then GMLX_BASE_URL, then
base_url in ~/.config/gmlx/comfyui.json or the file that
GMLX_COMFY_SETTINGS names. After those it tries the address
gmlx status reports, which is the port in your gmlx config when no
server runs, then http://127.0.0.1:8080.
A new loader's server_url shows the address found this way. The example
workflows carry http://127.0.0.1:8080, the default. With the default or
an empty server_url, the loaders use the gmlx server found without it,
then the default, and only a server that answers the gmlx handshake: a
workflow saved on a Mac whose server uses another port still runs, and
llama-server on port 8080 is not taken for gmlx. When the loaders leave
the default for another address, gmlx Server Status and any error say
which address they use. Any other address is used as it is. When nothing
answers there, the run stops if start_server is off; with it on, the
loaders first start gmlx serve on this Mac and wait for that address.
With their start_server input on, the default, the loaders start
gmlx serve when no server answers. While the server loads, they wait.
When it stops before it answers, the run stops with what gmlx serve
printed and the end of the server's log. Cancel in ComfyUI stops the wait
for the server.
The model_name list holds the image and video models of the server at
the address found, else the image models that gmlx list --image prints,
with the default image model first. With none, it holds only the default
model's name. The nodes read the list in the background, so the list
updates within a few seconds of a refresh. A loader whose model the server
does not have stops with the gmlx pull command that adds it, or, when
the server has that model under another id, with the id to pick. A video
model the server does not have stops with its gmlx video pull command.
Desktop starts ComfyUI without your shell's PATH, so the nodes run the
gmlx command whose path gmlx comfyui install recorded. After you
reinstall gmlx in another place, run gmlx comfyui install again.
How the work is shared¶
ComfyUI sees each gmlx model as its own model class, so its stock nodes
for that model work too, such as ModelSamplingAuraFlow and
TextEncodeQwenImage21. The prompt nodes of the example workflows are
ComfyUI's CLIP Text Encode (Prompt), and the latent node is its
EmptySD3LatentImage, or its EmptyFlux2LatentImage for FLUX.2 klein,
FLUX.3 klein and MOSS-Image. ComfyUI has no model class for MOSS-Image,
so the gmlx nodes register their own, with the settings of the OpenMOSS
ComfyUI plugin, and stock nodes such as ModelSamplingSD3 work on it.
The sampler, the noise, the guidance and the schedule run in ComfyUI. Each call to the model is one request to the gmlx server, which runs the DiT, encodes the text and runs the VAE. The tiled VAE nodes call the same route, since the server tiles large images itself. ComfyUI's interrupt stops the step in progress on the server.
On MiniMax-H3, ComfyUI samples the video and the sound as one latent, as
its own MiniMax-H3 model does, and the server reads each step as that
model's forward reads it: the timestep, the two shifts that
ModelSamplingMiniMaxH3 sets and the scale the sound is carried at. The
server also refines the prompt's text features under the step's LoRAs.
gmlx Video VAE Loader and gmlx Audio VAE Loader give VAEs that decode
on the server, and VAE Decode and VAE Decode Audio take their halves
of the latent as with ComfyUI's own VAEs. gmlx VAE Loader refuses a
video model and names these two loaders, and they refuse an image model.
Comfy Desktop installs¶
An install that Desktop migrated from the old desktop app still loads its
custom nodes from the old app's folder, so gmlx comfyui install links
the nodes there. A Desktop build that carries a signed policy file can
refuse custom nodes that its policy does not list, and install says so
when it finds one.
The model loader's int8¶
gmlx Model Loader has an int8 input for MiniMax-H3 and
MiniMax-H3-Image: entry, the default, off, attention, linears or
all. entry runs each step at the entry's defaults.int8, of a
video or an
image entry, and sends nothing. Any
other value goes with each step, and the server runs that step at it, as
Faster clips with int8 and
Faster images with int8 describe:
it is lossy, needs an M5 or newer, and fasth3 runs at off and
linears only.
The loader refuses a value that changes the entry's linear layers, as
In serve and ComfyUI explains. A server
that cannot run a value refuses the first step with an error that names
int8, and the error shows on the sampler. A value other than entry or
off is refused on another image model, and a gmlx server from before
the setting runs the entry's in its place, with one warning in ComfyUI's
log for each model.
What the gmlx nodes refuse¶
Anything that would run inside the DiT in ComfyUI is refused with an error that names it:
- Model patches and block replacements, such as
FreeU,PatchModelAddDownscale,SkipLayerGuidanceDiT,PerturbedAttentionGuidanceandTomePatchModel. - Attention overrides, RoPE options such as
ScaleROPE, weight wrappers and diffusion model wrappers. - ControlNet.
- Hook keyframes and scheduled CLIP hooks.
- A quantized Qwen-Image 2.1 prefix cache:
QwenImage21Cachewith a dtype other than the default. - A MOSS-Image conditioning that masks some of its text rows, such as one
from a text encoder other than
gmlx CLIP Loader. - A FLUX.2 klein reference method other than
index, such asoffsetfromFluxKontextMultiReferenceLatentMethod, but for theindex_timestep_zeromethod thatFlux KV Cachesets. - LoHa, LoKr, GLoRA, OFT, BOFT and DoRA files, LoRAs with a mid tensor, model merges, and any node that scales the model's own weights.
- Saving a gmlx model, text encoder or VAE with the checkpoint save nodes, since ComfyUI holds no weights for them.
- On MiniMax-H3: the references of
MiniMax H3 Reference to Video, the Fun ControlNet (Apply MiniMax H3 Fun ControlNet), a noise mask on the latent, such as one fromSet Latent Noise Mask, and on FastH3 a first or last frame ofMiniMax H3 Image to Videoorgmlx MiniMax-H3 Image to Video, or a guide fromAdd Guide for MiniMax H3.
On FastH3, a run on its trained noise levels, or on a part of them as a
split schedule samples, stops at shifts other than the fasth3 recipe's
10 and 3, with an error that names ModelSamplingMiniMaxH3 and the two
shifts. Without that node, ComfyUI's forward would derive the sound's
noise levels at 12 and 3, off those FastH3 was trained at, with no error.
FastH3 on noise levels of another schedule runs at any shift.
Flux KV Cache on FLUX.2 klein 9B KV is not refused. The server keeps the
keys and values of the reference images of each row of the batch from the
first step of a run, the later steps of the run reuse those of each row,
and the end of the run drops them.
SkipLayerGuidanceDiTSimple on MOSS-Image is not refused when it names
single_layers alone, with start_percent 0 and end_percent 1. The
server leaves those blocks out of the negative pass of each step. The
node is refused with double_layers, another window, a linked widget or
a block MOSS-Image lacks, and on any other model.
A refusal from a node's own setup shows on that node. A refusal during sampling shows on the sampler and names the node upstream that caused it.