Arynwood Creative / LoRA
Space gallery

Creative · SDXL · LoRA

What is LoRA training?

LoRA training teaches an existing image model something new, such as a face, a style or an object, without retraining the whole model. The base model stays frozen. Training adds small weight changes to some of its layers and saves them as a separate file that you load when you generate an image.

LoRA stands for low-rank adaptation. I trained one on Stable Diffusion XL (SDXL) to study a practical question: does a LoRA made for one SDXL model work on the others?

From my training run on Juggernaut XL v9, documented in the study methodology.

How does LoRA training work?

A model like SDXL stores what it knows in large weight matrices. Fine-tuning all of them takes a lot of memory and produces a full-size copy of the model. A LoRA leaves those matrices alone. For each layer it adapts, it learns two small matrices whose product is the change to apply. The rank sets how small they are, and so how much the LoRA can learn: my run used rank 32 with an alpha of 16, which scales the change down by half.

The training data is a folder of images with captions. I resized 48 self-portrait photos to 1024 pixels on the long edge and captioned them automatically with WD14 tags, with the trigger word Arynwood placed first in every caption. During training, the model learns to connect that word to the face in the photos. Afterward, putting the trigger word in a prompt calls the subject up.

At generation time the LoRA’s changes are added to the base model’s weights, usually with a strength slider, so the same base model can wear different LoRAs without being retrained.

How does a LoRA work with SDXL?

Every SDXL model shares one fixed design: the same UNet layout, the same two text encoders (OpenCLIP-G and CLIP-L, feeding 2048-dimension cross-attention) and the same latent space. A LoRA’s weight changes are labeled by those layer names and shapes. That is why a LoRA trained on Juggernaut XL loads without error on other SDXL models, such as DreamShaper XL Turbo, RealVisXL or SDXL 1.0 itself.

Stable Diffusion 1.5 is a different design, with a single CLIP text encoder, 768-dimension cross-attention and a different UNet. None of an SDXL LoRA’s layers match it, so depending on the software, the LoRA is silently skipped or fails to load. The trigger word means nothing to SD 1.5 either.

Loading is not the same as looking right. The LoRA’s changes were computed against one model’s exact weights, so on a distilled Turbo model, which uses fewer sampling steps, the likeness is expected to be weaker or to drift. Measuring that drift is the next step in the study; today’s findings are architectural.

Why train a LoRA on SDXL?

Where are the Arynwood SDXL studies?