Downloads · 30 days
8
3% of all-time downloads
checkpoint54144sd/RouWei-Gemma
RouWei-Gemma is a machine learning model from checkpoint54144sd. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
8
3% of all-time downloads
All-time downloads
270
Public
Repo size
15.8 GB
Likes
0
Public
Click a slice to open those files.
.safetensors15.5 GB · 87%
From the Hugging Face model README
.png)
white haired fox girl in intracate aqua dress riding giant black cat that flies through night sky, best quality, by kantoku
You need to download and use both adapter model and llm for it to work properly. Llm can be downloaded as a single gguf file or as a dir via HF-Hub. To run it you need updated custom nodes. Example workflow. Other examples can be founded here.
The new version gives a better prompt adherence, allows to use structured prompts that describes individual features of each character, can create simple comixes and in general has more knowledge about anime-art-related things. It still not perfect but already significantly outperforms vanilla CLIP encoders allowing use of long and detailed prompts without typical tags bleeding.
As a parallel experiment with a slightly different approach adapter that utilises text encoder from t5gemma-2b-2b-ul2 and converts its outputs for SDXL unet was trained. Actually it shows pretty nice performance taking into account short training and untouched t5genna encoder. It already outperforms version with gemma-3-1b as text encoder in terms of knowledge about characters and artists styles, but is less accurate with complex prompts. To launch it you need a different workflow than for gemma-llm.
A drop-in replacement for SDXL text encoders that utilises the power of LLM for prompt understanding and conditions creation.
Kind of same as ELLA, SDXL-T5 and likely others, but this one is focused on anime models and advanced knowledge without censorship.
SDXL proven to be a good and flexible model that can generate results with great aesthetic and variety at relatively low compute cost and high speed. But prompt adherence is significantly limited by the use of CLIPs. Also dealing with prompt longer than 75 tokens requires its splitting which may distort original meaning.
Replacement of CLIPs with something newer can potentially significantly improve SDXL capabilities in understanding of complex prompts and allow more control at the same time maintaining existing benefits. Also, extra things like images, coordinates, poses from openpose, individual prompts for each characters, etc. can be implemented and work in synergy with main prompt.
Text prompt is being processed by the LLM, then hidden states from last layer are processed by adapter to compensate casual attention and reshape them into conditions for SDXL unet.
Just because it is kind of decent and small model for experiments. Likely during further development it will be replaced with qwen-vl or some other model. And do not worry, there are no censoring or rejections that may appear in this llm inference. The scheme uses only hidden states that represent "model understanding".
So it can work as standard text encoder but provides much deeper understanding for long expressions and can hold more conditions without dissolving into each other.
Actually all these will be solved with further training. First requires unet training, 2-4 requires training of LLM because it simply doesn't know and such words give too small reaction. 5 just requires more training (and corresponding dataset) and will be done soon. 6 requires improvement of custom nodes and will be added soon.
gguf python package in Comfy venv./models/llm_adapters/models/LLM/ (whole dir in case of HF, you need all files from original model, not only .safetensors. Create the folder with model name if it doesn't exist).Prevoius version 0.0alpha utilises original gemma-3-1b-it (non-gated mirror)
Same steps except:
You can use HF-Hub with command:
hf download Minthy/RouWei-Gemma --include "t5gemma-2b-2b-ul2_*" --local-dir "/path/to/comfy/models/LLM"
Unfortunatelly GGUF does not support t5gemma architecture now, can be updated as soon as added.
The new pipeline allows you to use almost any prompt format and is very flexible (even supports base64 or multilangual but with reduced performance). To get best results you can stick to following patterns:
2girls, wakamo (blue archive), izuna (blue archive), richly decorated room, from above, masterpiece.
## Character 1
Wakamo (blue archive), a fox girl with black hair, yellow eyes and fox mask standing on the left wearing maid outfit. She holds tray with a unworn panties. Her expression is smug and confident, she proudly presenting the tray.
## Character 2
Izuna (blue archive) fox girl with brown hair, yellow eyes, hair flower stands on the right. She also wears maid uniform, she is lifting the hem of her skirt showing that she wears no panties. blushing, ashamed
Current state of custom nodes does not support prompt weights and standard spells. Also (brackets) should be left as is, no need to add \.
Other settings and recommendations are same as for original RouWei
masterpiece or best quality you can use them both but it unlikely will give improvement, or just omit them. Keep it clean and avoid extra 'magic combinations' since they will likely give negative effect. Can be placed at the very end.
worst quality or low quality. Same as for positive. Better to keep it clean only adding things you don't want to appear specificly in this image, not in general.
It knows popular characters, can mimic artist styles, understand concepts and other things. But, they are limited by the llm that needs to be trained at later stages to get all. Also some more general things are limited by current dataset that consisct from anime pictures, and unet abilities.
Designed to work with Rouwei, should also work with its merges and tunes. May have limited compatibility with Illustrious models, Noobai, other sdxl checkpoints.
3 liters of beer, 0.5 liters of coffee, few days (now 2 weeks) on 3x5090 rig.
Join Discord server where you can share you thouhts, give proposal, request, etc. Write me directly here, on civitai or dm in discord.
BTC bc1qwv83ggq8rvv07uk6dv4njs0j3yygj3aax4wg6c
ETH/USDT(e) 0x04C8a749F49aE8a56CB84cF0C99CD9E92eDB17db
XMR 47F7JAyKP8tMBtzwxpoZsUVB8wzg2VrbtDKBice9FAS1FikbHEXXPof4PAb42CQ5ch8p8Hs4RvJuzPHDtaVSdQzD6ZbA5TZ
NeuroSenko (code), Rimuru (idea, discussions), Lord (testing), DraconicDragon (fixes, testing)
A number of anonymous persons, Bakariso, dga, Fi., ello, K., LOL2024, NeuroSenko, OpenRoot-Compute, rred, Soviet Cat, Sv1., T., TekeshiX
This repo contains original or finetuned models google/t5gemma-2b-2b-ul2 and google/gemma-3-1b-it. Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms.
MIT license for adapter models.