---
title: "Efficient Controllable Generation for SDXL with T2I-Adapters"
description: "T2I-Adapter-SDXL drives the 2.6B-parameter SDXL model with a 79M-parameter adapter that runs once per generation, unlike ControlNet, which runs alongside the UNet at every denoising step."
url: "https://swe.quest/articles/efficient-controllable-generation-for-sdxl-with-t2i-adapters-4ef46153eee1c0c4"
canonical: "https://huggingface.co/blog/t2i-sdxl-adapters"
source: "Hugging Face"
published: "2023-09-08"
difficulty: "medium"
kind: "How-to"
reading_minutes: 5
tags: ["computer-vision","model-training","inference","python"]
---

# Efficient Controllable Generation for SDXL with T2I-Adapters

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2023-09-08, 5 min read, How-to. Original: [https://huggingface.co/blog/t2i-sdxl-adapters](https://huggingface.co/blog/t2i-sdxl-adapters)

## Summary

T2I-Adapter-SDXL drives the 2.6B-parameter SDXL model with a 79M-parameter adapter that runs once per generation, unlike ControlNet, which runs alongside the UNet at every denoising step. That makes it about 94% smaller than ControlNet-SDXL (158 MB vs 2.5 GB in fp16). Checkpoints for sketch, canny, lineart, depth and openpose conditioning were trained on 3M LAION-Aesthetics pairs at batch size 128, learning rate 1e-5, for 20k–35k steps. They are usable through the diffusers StableDiffusionXLAdapterPipeline, with adapter\_conditioning\_scale and adapter\_conditioning\_factor controlling how strongly and for how many steps the condition applies.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Computer vision](https://swe.quest/tags/computer-vision.md) (AI & ML)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Python](https://swe.quest/tags/python.md) (Languages)

## Prerequisites

- diffusion models basics
- PyTorch
- Stable Diffusion pipelines

## Keywords

T2I-Adapter, SDXL, ControlNet, diffusers, Stable Diffusion XL, LAION-Aesthetics

## Related posts

- [SDXL in 4 steps with Latent Consistency LoRAs](https://swe.quest/articles/sdxl-in-4-steps-with-latent-consistency-loras-2dbb6e57c86cbe97.md): Hugging Face · 2023-11-09 · Medium · 10 min read · Inference & serving, Computer vision, Model training, Performance engineering
  LCM LoRAs apply latent consistency distillation as small LoRA adapters instead of distilling each full model, so any fine-tuned SDXL or Stable Diffusion 1.5 model can generate images in 4–8 steps instead of 25–50.
- [Open-sourcing Knowledge Distillation Code and Weights of SD-Small and SD-Tiny](https://swe.quest/articles/open-sourcing-knowledge-distillation-code-and-weights-of-sd-small-and-sd-tiny-053ea66ae7ff27cc.md): Hugging Face · 2023-08-01 · Medium · 5 min read · Computer vision, Model training, Inference & serving, Open source
  Segmind releases training code and weights for SD-Small and SD-Tiny, Stable Diffusion variants compressed by block-removal knowledge distillation that cut UNet parameters by 35% and 55% while keeping image fidelity close to the base model.
- [LoRA training scripts of the world, unite!](https://swe.quest/articles/lora-training-scripts-of-the-world-unite-73f0d15365f25313.md): Hugging Face · 2024-01-02 · Hard · 18 min read · Model training, Computer vision, Machine learning
  Combining Pivotal Tuning (textual inversion of newly inserted tokens, then LoRA fine-tuning) with the adaptive Prodigy optimizer produces strong SDXL Dreambooth LoRA results, and both are now available in a diffusers training script.
- [How Diffusion Controller unifies and simplifies AI image generation](https://swe.quest/articles/how-diffusion-controller-unifies-and-simplifies-ai-image-generation-261f5c78987e6b2e.md): Google Research · 2026-09-29 · Hard · 7 min read · Model training, Computer vision, Machine learning
  Diffusion Controller reframes diffusion denoising as a continuous control problem, unifying inference-time guidance and fine-tuning methods such as LoRA, reward-weighted regression and policy gradients under one framework.
- [ControlNet in 🧨 Diffusers](https://swe.quest/articles/controlnet-in-diffusers-2c39bfe039d68caf.md): Hugging Face · 2023-03-03 · Medium · 11 min read · Computer vision, Inference & serving, Python, Machine learning
  ControlNet conditions Stable Diffusion on spatial inputs such as Canny edges, segmentation maps, scribbles or OpenPose keypoints.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
