ComfyUI LLM SDXL Adapter
A comprehensive set of ComfyUI nodes for using Large Language Models (LLM) as text encoders for SDXL image generation through a trained adapter.
Nodes (9)
The bridge that turns LLM embeddings into SDXL conditioning
Where the trained weights actually come in
Same adapter loader, but every knob is yours now
The SDXL text encoder that fits on a low-VRAM card
The plain LLM loader this whole pack is built around
SDXL finally reads full sentences instead of tag soup
T5Gemma's handoff to the sampler, size conditioning included
Load the encoder half of Google's T5Gemma as your SDXL text encoder
The T5Gemma branch's text front end
ComfyUI LLM SDXL Adapter
A comprehensive set of ComfyUI nodes for using Large Language Models (LLM) as text encoders for SDXL image generation through a trained adapter.
<img width="1803" height="904" alt="image" src="https://github.com/user-attachments/assets/e8e5f047-37e7-4f8b-9bbd-78d70e2a7d80" />🎯 Available Adapters
RouWei-Gemma Adapter
Trained adapter for using Gemma-3-1b as text encoder for Rouwei v0.8 (vpred or epsilon or base).
Download Links:
📦 Installation
Install Nodes
- Clone the repository to
ComfyUI/custom_nodes/:
cd ComfyUI/custom_nodes/
git clone https://github.com/NeuroSenko/ComfyUI_LLM_SDXL_Adapter.git
- Restart ComfyUI
Setup RouWei-Gemma Adapter
-
Download the adapter:
- Download from CivitAI or HuggingFace
- Place the adapter file in
ComfyUI/models/llm_adapters/
-
Download Gemma-3-1b-it model:
- Download gemma-3-1b-it (non-gated mirror)
- Place in
ComfyUI/models/llm/gemma-3-1b-it/ - Note: You need ALL files from the original model for proper functionality (not just .safetensors)
-
Download Rouwei checkpoint:
- Get Rouwei v0.8 (vpred, epsilon, or base) if you don't have it
- Place in your regular ComfyUI checkpoints folder
📁 File Structure Example
ComfyUI/models/
├── llm/gemma-3-1b-it/
│ ├── added_tokens.json
│ ├── config.json
│ ├── generation_config.json
│ ├── model.safetensors
│ ├── special_tokens_map.json
│ ├── tokenizer.json
│ ├── tokenizer.model
│ └── tokenizer_config.json
├── llm_adapters/
│ └── rouweiGemma_g31b27k.safetensors
└── checkpoints/
└── rouwei_v0.8_vpred.safetensors
🔍 Debugging
To enable detailed logging, edit __init__.py:
# Change from:
logger.setLevel(logging.WARN)
# To:
logger.setLevel(logging.INFO)