WeGen2 for ComfyUI — 61B Experts Q4_0 GGUF
Generate 1024 × 1024 images or edit with ordered references in ComfyUI. This node pack includes an optional local prompt enhancer and fetches the required models on first use. It uses a community quantization of GrayShine/WeGen2.
| Download a workflow | What to do |
|---|---|
| 1024 text-to-image with prompt enhancement | Enter a prompt and click Run to see the rewrite and the image. |
| 1024 multi-reference editing | Upload a subject to Reference 1 and a pattern, style or setting to Reference 2. |
| Original 512 starter | Run the generator with your prompt directly. |
Install
- Extract the node ZIP into
ComfyUI/custom_nodes/. The resulting path should beComfyUI/custom_nodes/ComfyUI-WeGen2/__init__.py. If upgrading, update the existing folder and its requirements. - From the ComfyUI root with its Python environment active, run
python -m pip install -r custom_nodes/ComfyUI-WeGen2/requirements.txt. On Windows portable, run.\python_embeded\python.exe -m pip install -r .\ComfyUI\custom_nodes\ComfyUI-WeGen2\requirements.txtfrom the portable folder. - Restart ComfyUI and open one of the node pack’s workflow templates, or drag a workflow JSON onto the canvas. For the two-reference demo, upload your own images, choose the supplied files under
example_inputs/wegen2/, or extract the example references into your active ComfyUI input directory. - Click Run. The first run downloads the selected workflow’s missing assets. To install the generator manually, put the image GGUF in
ComfyUI/models/wegen2/.
First run
Download missing is enabled in the supplied workflows. Queuing a workflow with missing assets downloads only what that workflow uses. Allow about 59 GB of disk space for both sets of weights, plus working space. Anonymous access to Hugging Face and GitHub is needed for initial setup.
| Component | Download | Local location |
|---|---|---|
| WeGen2 image generator | 39.57 GB, routed experts in Q4_0 | ComfyUI/models/wegen2/ |
| Qwen3-VL-30B-A3B-Instruct prompt enhancer | 18.56 GB Q4_K_M language model, plus a 0.71 GB Q8_0 vision projector for image references | Reuses files in text_encoders. Missing files download to ComfyUI/models/wegen2_enhancer/. |
| Managed llama.cpp runtime | Approximately 13–25 MB, depending on platform | A build-specific subfolder of ComfyUI/models/wegen2_enhancer/ |
The enhancer searches all of ComfyUI’s configured text_encoders folders, including subfolders, legacy clip locations and shared model paths. It uses matching files in place, even when the model and projector are in different folders. It recognizes the official Qwen Q4_K_M, Q8_0 and complete two-shard F16 language GGUFs, and the official Q8_0 or F16 vision projector. Single-file weights may be renamed. For F16, keep both shards together with their numbered suffixes. The enhancer checks its own folder for any missing component before downloading. Text-only rewrites do not need a projector.
The node verifies the weights by SHA-256 and stores the verification record in its own folder. It starts a private loopback process for a rewrite, then stops it before image generation. Prompts and references are processed on your machine. Ollama, API keys and a separately installed llama.cpp server are unnecessary.
You can also put the image GGUF in models/wegen2/ yourself. To reuse an installed setup offline, turn download_missing off on both nodes. To use a hand-written or edited prompt in the enhanced workflows, paste it into the enhancer and select use prompt as written. This also skips loading or downloading the enhancer.
Multiple references
- Choose your two images using the Load Image upload widgets. For the exact demo, select the files in the node pack’s
example_inputs/wegen2/folder. Alternatively, extract WeGen2 example references.zip into ComfyUI’s active input directory, preserving thewegen2/subfolder. - Connect additional Load Image nodes to image_3 and image_4 on WeGen2 Ordered References. Each image retains its own aspect ratio. For more slots, connect one collector’s output to the next collector’s previous input.
- Write the instruction in that same order. For example, “Keep the teapot shape from reference 1 and apply the stripe pattern from reference 2.” If a slot is empty, the remaining connected images are numbered consecutively. A batch in a slot contributes its images in batch order.
The generator also accepts older workflows using its single reference image-batch socket.
Tested on an RTX 5080
The enhanced multi-reference workflow was imported in ComfyUI 0.46.0 and run on an RTX 5080 16 GB with 192 GB of system RAM. It used a square subject image and a landscape stripe pattern. The published 1024 × 1024 workflow took 419.9 seconds with 50 schedule points, guidance 4 and seed 42. Peak sampled total GPU memory use was 10.11 GiB. Timing includes prompt enhancement and model loading with the weights already downloaded.
The direct-prompt 512 × 512 starter took 3 minutes 3 seconds at 24 schedule points, with 8.32 GiB peak sampled total GPU memory use. System RAM capacity describes the test machine.
Model sources
The image GGUF contains all 1,848 original tensors, configuration and tokenizer. The 192 routed expert banks use GGML Q4_0, with one FP16 scale per 32 weights. The other 1,656 tensors retain BF16. During rendering the node memory-maps the packed experts and stages their weights on the GPU for each projection. Original weights · Upstream inference source
The enhancer uses Qwen’s existing quantization and the upstream WeGen2 rewriter instructions, numbered image previews, and retry checks for quoted lettering. Its runtime is pinned to llama.cpp build b12774. Automatic runtime setup includes Windows, macOS and Ubuntu-compatible Linux builds for x64 and arm64. The image generator retains its CUDA requirement. Official enhancer weights · Runtime release
| File property | Value |
|---|---|
| Size | 39,568,228,928 bytes |
| SHA-256 | 63fd9610697efc7b0e34d18760cb654443376eaeeee11dea68ee78842992c457 |
- Downloads last month
- 435
4-bit
Model tree for cadenlol/WeGen2-ComfyUI-GGUF
Base model
GrayShine/WeGen2