Diffusers How to use LyliaEngine/S4bit4mago with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("LyliaEngine/ilustmix_v20", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("LyliaEngine/S4bit4mago")
prompt = "incredibly absurdres, highres, masterpiece, newest,best quality, very aesthetic, absurdres, newest,S4bit4mago_illu, 1girl, hood,panda hood, smile, headphones around neck,too many, panda,graffiti, red background, earrings, jewelry, headphones, hooded jacket, bangs, v, dark skin, grin, <lora:S4bit4mago-000010:1>"
image = pipe(prompt).images[0]