UPDATE: I have now added support for 2B and 0.8B as well, although expect prompt adherence to degrade significantly more. Please update the custom node if you have already installed it.
4B is still recommended, 2B and 0.8B are only if you are obsessed with maximizing storage savings. You can find more info in the Hugging Face repo linked below.
It's a small adapter and a custom node for ComfyUI that lets you use Qwen3.5-4B as the text encoder for MOSS Image instead of the original Qwen3.5-9B.
The adapter takes the 4B encoder's output and projects it into what MOSS expects from the 9B. The MOSS model and VAE stay the same, and you write prompts in the normal CLIP Text Encode node.
The motivation was primarily to save storage space and reduce RAM/VRAM during image generation. The 4B adapter is only about 21 MB, and for INT8 ConvRot the encoder file goes from 9.75 GB (9B) down to 4.82 GB (4B).
Inspired by ComfyUI-ClipProj
It's not identical to 9B of course but for simpler subjects and composition, it has fared well. However, it can struggle when the prompts become too long and complex involving multiple subjects (look at my comment in the comment section, it has an example).
Since it just projects the output of text encoder and does not modify the model, it should work with finetunes as well.
Installation
Clone it into your ComfyUI/custom_nodes folder:
git clone https://github.com/bakapotatolord/moss-image-smaller-encoder
Create a models/moss_encoder_adapters folder or put the adapter in the custom node's adapters/ folder and the 4B/2B/0.8B encoder in models/text_encoders, then restart ComfyUI.
The adapter can be downloaded from my github releases here - moss_qwen35_4b_to_9b_1600_train.safetensors
Tested 4B with this - Qwen3.5-4B Text Encoder
Tested 2B with this - Qwen3.5-2B Text Encoder
Tested 0.8B with this - Qwen3.5-0.8B Text Encoder
Usage
In Load CLIP, select the 4B/2B/0.8 encoder and set type to moss_image. Then it's:
Load CLIP -> Load LoRA (optional) -> MOSS Smaller Encoder Adapter -> CLIP Text Encode -> KSampler
There's a workflow.json in the repo too.
Hugging Face Repo - https://huggingface.co/PotatoForge/moss-image-4b-encoder-adapter
Github Repo - https://github.com/bakapotatolord/moss-image-smaller-encoder
How it was trained
Fitted on 1,600 prompts. On 400 held-out prompts it gets 0.9126 cosine similarity (4B) against the 9B features.
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.