ComfyUI Node
MiniMax-H3 Rewriter Options
The one options node that feeds half this pack
MiniMax-H3 Rewriter Options
- options
◄max_new_tokens2048►
◄temperature0.70►
◄top_p0.80►
◄top_k20►
◄repetition_penalty1.05►
◄attn_implementationsdpa►
◄adapterlightx2v/MiniMax-H3-Prompt-Rewriter-LoRA►
◄use_loratrue►
◄auto_downloadtrue►
◄gpu_layers-1►
◄n_ctx8192►
◄gguf_runtimeauto►
◄deviceauto►
◄llama_backendauto►
◄trust_remote_codefalse►
Most of the pack's nodes take an options input that accepts this node's single output. That's the whole design: the rewriters, writers and captioners keep a clean front panel, and everything you touch once a month lives here. Leave it unconnected and every node falls back to the decoding parameters the adapter was published with - which is the correct default for almost everyone.
So the honest advice is: don't connect it until you have a reason. When you do, here's what you're getting.
The decoding knobs
max_new_tokens(2048),temperature(0.7),top_p(0.8),top_k(20),repetition_penalty(1.05) - sampling parameters, used only whengreedyis off on the main node. If a writer comes back missing a field, lowering temperature is the first thing to try.attn_implementation-sdpadefault;eagerorflash_attention_2if you have it. Non-GGUF models only.
The model-management ones
adapter- which build of the LoRA to apply. The default entry (lightx2v/MiniMax-H3-Prompt-Rewriter-LoRA) means whichever build the model list names for the base you picked - PEFT adapter for a Transformers base, the catalog's GGUF for a GGUF one, the 8B adapter on the 8B node. Below it sit the published precisions: F16 and Q8_0 for each LoRA. The Q8_0 is half the download and rewrites the same - if you're on the GGUF route and never picked this up, that's a free gigabyte or two back. Any.ggufLoRA you drop intomodels/LLMappears here ason disk:.use_lora- on by default. Turn it off to run the plain base model, which is the "what's the LoRA actually doing?" experiment.auto_download- fetch missing weights. Turn it off to fail loudly instead of downloading 52 GB by surprise.gpu_layers/n_ctx- GGUF only.gpu_layersof -1 is all of them; lower it to fit a smaller card at the cost of speed.n_ctx(8192) is the context llama.cpp allocates - the writer nodes raise it themselves, so this is mostly a rewriter-league knob.gguf_runtime-autousesllama-cpp-pythonif it's importable and the official llama.cpp binaries otherwise. Forcellama.cppwhen an installed wheel is broken; forcellama-cpp-pythonto keep the model resident between runs (the binaries can't).llama_backend- which official binary build to fetch:auto→ Vulkan (34 MB, about half CUDA throughput),cuda(511 MB, ~2× faster, Windows only - upstream publishes no Linux CUDA build), orcpu. An llama.cpp you already have is run as-is and this stops mattering.device-auto,cpu, or acuda:Nper GPU. Give the language model a second card andkeep_model_loadedbecomes worth switching on - nothing has to be evicted to make room. A device the machine doesn't have is refused, not quietly demoted.trust_remote_code- off, and should stay off. A Transformers checkpoint can ship its own Python, loaded and run with your user's rights; off means such a model is refused rather than executed. Turn it on only for a model you picked and trust - not because a downloaded workflow asked for it.
Where people get burned
- The
adapterfield is what a downloaded workflow gets a say in. Two things to know: a network path (\\host\share\...) is refused outright, because merely looking at one is an authentication attempt against that host. And a swapped LoRA is invisible - the node still runs and fills every field, it just writes something else - which is why the applied adapter is logged to the console every run. llama-cpp-pythonCUDA wheels are a trap. Both current ones fail on ordinary consumer hardware (one needs AVX-512 that consumer Intel doesn't have; the other refuses modern RTX cards). The official llama.cpp release archives carry 14 CPU backend variants and native SASS, which is why the same model runs fine as a subprocess where the wheel dies. If you want the in-process backend, the Vulkan wheel is the one that works.gguf_runtimeandllama_backendanswer different questions. One picks what runs the model; the other picks which build to fetch and only applies when the binaries are in use. They're both in this node because they're both GGUF concerns, but they're not the same knob.
It's the least glamorous node in the pack and the one that saves you the most pain once you know it's there.
CategoryMiniMax-H3
Inputs (15)
| Name | Type | Default | Description |
|---|---|---|---|
| max_new_tokens | INT | 204864–16384 | — |
| temperature | FLOAT | 0.700–2 | — |
| top_p | FLOAT | 0.800–1 | — |
| top_k | INT | 200–200 | — |
| repetition_penalty | FLOAT | 1.051–2 | — |
| attn_implementation | COMBO | sdpa | Non-GGUF models only. |
| adapteropt | COMBO | lightx2v/MiniMax-H3-Prompt-Rewriter-LoRA | Which build of the prompt-rewriter LoRA to use. The first entry means whichever one the model list names for the base model you picked. Below it are the published precisions - F16 and the smaller Q8_0, which rewrites the same and halves the download - and any '.gguf' adapter already in your ComfyUI model folders. |
| use_loraopt | BOOLEAN | true | Turn off to run the plain Qwen3.6-27B baseline. |
| auto_downloadopt | BOOLEAN | true | Fetch missing weights from Hugging Face. Turn off to fail instead. |
| gpu_layersopt | INT | -1-1–999 | GGUF only: layers to put on the GPU. -1 is all of them; lower it to fit a smaller card, at the cost of speed. |
| n_ctxopt | INT | 81922048–131072 | GGUF only: context size llama.cpp allocates. |
| gguf_runtimeopt | COMBO | auto | GGUF only: what runs the model. 'auto' uses llama-cpp-python when it is importable and the official llama.cpp binaries otherwise. Force 'llama.cpp' if an installed wheel is broken; force 'llama-cpp-python' to keep the model resident between runs, which the binaries cannot do. |
| deviceopt | COMBO | auto | Which device the language model runs on. 'auto' behaves as before. Pick a second card and two things change: the model no longer competes with ComfyUI's own for VRAM, and 'keep_model_loaded' becomes worth turning on, because nothing has to be evicted to make room. No CUDA device is visible to ComfyUI, so only 'cpu' will do anything. |
| llama_backendopt | COMBO | auto | GGUF only, and only when llama-cpp-python is absent: which official llama.cpp build to fetch. 'auto' takes CUDA on Windows with a supported NVIDIA card (511 MB, about twice as fast) and Vulkan otherwise. Pick 'vulkan' to keep the download at 34 MB. Nothing is fetched at all when llama.cpp is already here: a build on PATH, one named in MINIMAX_H3_LLAMA_BIN, or a path written into user/minimax_h3_rewriter/llama_bin.txt is run as it is -- the file being the one that works when the server's environment is not yours to set. That is the way to a CUDA llama.cpp on Linux, where upstream publishes no CUDA build. |
| trust_remote_codeopt | BOOLEAN | false | Non-GGUF models only. Some checkpoints ship their own Python and Transformers runs it when the model loads. Off means such a model is refused rather than executed. Turn it on only for a model you picked and trust — not because a downloaded workflow asked for it. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| options | H3_REWRITER_OPTIONS | — |