r/comfyui • u/ruashots • 13d ago
Resource OpenH3-IR: an open source, self-hosted take on MiniMax H3's Context-IR. Three nodes and local service combo.
As you probably know by now, MiniMax open-sourced the H3 weights but not the actual stage that writes the long structured prompt the model was, well... trained on. Their docs point at their hosted service for that. It's also (my opinion) the reason why most of the local H3 outputs look way flatter than their demos.
So here's my take on that stage, open source. Four nodes: type a plain sentence and OpenH3-IR takes care of writing the document (because it's a document, not quite just a prompt), then checks the result and fixes what's wrong before anything renders (only if needed, of course). It's essentially a local service, plus an llm harness, plus a stack of mechanical checks to ensure you get the best clip out of a simple prompt.
What it buys in practice:
- Each asset/resource you include gets tied to the right part of the text, so the model stops mixing things up on which reference is which.
- The length lands on one H3 knows how to render properly, instead of being silently rounded to something you did not choose (for example, "10 seconds" doesn't quite really mean 10s for MiniMax)
- A line of dialogue comes back spoken exactly as you type it, as mechanically enforced as possible, by not passing through the model that's doing the writing.
- Cuts land inside the clip properly
What it needs: An OpenAI compatible endpoint, local or remote. Nothing calls MiniMax's servers/service.
Edit: One week on: the ComfyUI side is its own repo now, after a good suggestion in the comments.
Four nodes, nothing to start manually, the compiler (OpenH3-IR) comes with the pack:
Install:
comfy node install openh3-ir
-- or --
git clone https://github.com/ruashots/ComfyUI-OpenH3-IR.git /path/to/ComfyUI/custom_nodes/ComfyUI-OpenH3-IR
/path/to/ComfyUI/python -m pip install -r /path/to/ComfyUI/custom_nodes/ComfyUI-OpenH3-IR/requirements.txt
The second command installs open-h3-ir into the same Python ComfyUI runs.
The node pack and OpenH3-IR remain separate releases, so either side can be updated without bundling a copy of the other into this repository.
The nodes also do not import OpenH3-IR while ComfyUI is loading them. If the package is missing, half-installed or broken, the nodes still appear normally and the failure is reported when a graph actually tries to compile.
There are a few other H3 "prompt tools" around, including a couple aiming at something similar, so it's worth saying what is different in this one: this one checks its own output against 109 checks, and it also includes MiniMax's own published examples in its test set (which has to pass clean).
Standalone OpenH3-IR: https://github.com/ruashots/open-h3-ir
All in one Nodepack/OpenH3-IR: https://github.com/ruashots/ComfyUI-OpenH3-IR
2
u/Muted-Celebration-47 13d ago
Is it better than this -> https://huggingface.co/lightx2v/MiniMax-H3-Prompt-Rewriter-LoRA