How to use negative embeddings in python with Stable Diffusion?

Hello everyone!

Could someone please help me with how can I use negative embeddings in python when generating images with Stable Diffusion XL model?

For now this is my code:

from diffusers import DiffusionPipeline
import torch

base = DiffusionPipeline.from_pretrained(

prompt="a parent leaning down to their child, holding their hand and nodding understandingly as the child expresses their worries and fears"

image = base(


I downloaded a file of negative embeddings for bad hands from CivityAI (“”), but I don’t how to pass it in the negative_prompt as suggested.

Also, if anyone can give me some tricks on how to generate humans without any anomalies (like extra fingers or fused fingers etc.), please share! I tried with different negative prompts, but I still see some artifacts or undesired things that I don’t want in the generated image.

Thank you!