It's an adapter and a custom node for ComfyUI that lets you use Qwen3-VL-2B as the text encoder for Krea 2 instead of the original Qwen3-VL-4B. Made it after I received noice response with the MOSS Image adapters
The adapter takes the 2B encoder's output and projects it into what Krea 2 expects from the 4B. The Krea 2 model and VAE stay the same, and you write prompts in the normal CLIP Text Encode node.
The motivation was mainly to save storage and memory while encoding. For INT8 ConvRot, the encoder goes from 4.86 GB (4B) to 1.74 GB (text-only 2B), plus a ~126 MB adapter, so 1.87 GB in total. Against a text-only 4B (4.05 GB) it's still a 54% saving.
On my GTX 1660 Super, encoding used about 2.3 GiB less VRAM and 2.1 GB less peak RAM. Over a full generation the diffusion model dominates, so don't expect your overall peak to drop much.
Inspired by ComfyUI-ClipProj
It's not identical to the 4B, of course. In my comparisons it stays close on composition and subjects, including multi-subject prompts, but details differ. In the lake scene, the moose that should be drinking looks like it's grazing. In the market scene, the counter that should hide the fishmonger's legs doesn't. Rendered text is the weakest point, especially Chinese signage.
Installation
Clone it into your ComfyUI/custom_nodes folder:
git clone https://github.com/bakapotatolord/krea2-smaller-encoder
Start ComfyUI once and it creates models/krea2_encoder_adapters. Put the adapter there and the 2B encoder in models/text_encoders, then restart.
The text-only encoder logs a bunch of "Missing weight for layer visual..." warnings on load. That's expected. It also means no image inputs.
Usage
In Load CLIP, select the 2B encoder and set type to krea2. Then:
Load CLIP -> Krea 2 Smaller Encoder Adapter -> CLIP Text Encode -> KSampler
There's a workflow.json in the repo too.
GitHub: https://github.com/bakapotatolord/krea2-smaller-encoder
HuggingFace: https://huggingface.co/PotatoForge/krea2-qwen3vl-2b-encoder-adapter
How it was trained
Fitted on 4,160 prompts (English captions and tag lists, Chinese captions, JSON and layout-style prompts). On 836 held-out prompts it gets 0.931 cosine similarity and 0.364 relative L2 against the 4B features, measured after Krea 2's txtfusion and txtmlp. Those are feature numbers, not image-quality scores.
Since it only replaces the text encoder output, I'd expect it to work with finetunes, but I haven't tested that. Text encoder LoRAs made for the 4B aren't supported.
Disclaimer
This is vibe coded-ish. I used AI heavily for the research, code and experiments, while I reviewed the steps and checked the results.
Hoping to get some feedback on this.