Load a Stable Diffusion XL (SDXL) model and insert an IP-Adapter into the model with the [`~loaders.IPAdapterMixin.load_ip_adapter`] method. Use the `subfolder` parameter to load the SDXL model weights.  
```py
from diffusers import AutoPipelineForText2Image
from diffusers.utils import load_image
import torch