How To Use LoRA Models In Stable Diffusion – A1111, Forge & ComfyUI

Here is how to use LoRA models in Stable Diffusion, in the Automatic1111 WebUI, in Forge and in ComfyUI. LoRA models are small add-on files that push your images towards a specific style, character or concept, and using them takes about a minute once you know where the files go. Along the way you’ll also learn what exactly LoRA models are, how they differ from regular Stable Diffusion checkpoints, and what to do when a LoRA doesn’t show up or doesn’t seem to do anything. Let’s begin!

The short version:

  • Automatic1111 and Forge: put the LoRA file in models/Lora, then add <lora:filename:0.8> to your prompt.
  • ComfyUI: put the LoRA file in models/loras, then add a “Load LoRA” node between your checkpoint loader and the rest of the workflow.
  • In both cases, the LoRA has to be made for the same model family as your checkpoint. An SD 1.5 LoRA won’t work properly with an SDXL checkpoint, and the other way around.

What are the LoRA models? – Simply Explained

Using LoRA models allows you to apply consistent styling characteristics to your Stable Diffusion image generations.
Using LoRA models allows you to apply consistent styling characteristics to your Stable Diffusion image generations. | Image: civit.ai

There are quite a few different ways of training and fine-tuning Stable Diffusion models. These include training the models using Dreambooth, making use of textual inversion techniques, hypernetworks, merging checkpoints with different characteristics together, and finally, utilizing LoRA (Low-Rank Adaptation) models to introduce new styles when generating images using an existing Stable Diffusion checkpoint. Out of all of these, LoRAs are by far the most popular today.

Fine-tuning in the context of Stable Diffusion for those who didn’t yet know, is (simplifying things a bit) a way of introducing new personalized styles or elements into your generations without having to train a full Stable Diffusion checkpoint for that.

Low-Rank Adaptation is essentially a method of fine-tuning a small part of a Stable Diffusion model’s weights that allows you to apply consistent image styles, characters or concepts to your image generations. You can learn much more about the technical process involved here.

One very important characteristic of LoRA trained models is the fact that they need to be used alongside a base Stable Diffusion model during the generation process. A LoRA model by itself, won’t be able to generate an image.

Typically, LoRA models available on civit.ai range from a few megabytes to a few hundred megabytes in size, depending on how they were trained and which base model they were made for. That’s still tiny compared to a full checkpoint.

LoRA models have many advantages over other fine-tuning methods. They are relatively small in size, efficient, simple to use and widespread, and very easy to train – here is how you can do that on your own PC!

Training LoRA models is also more memory efficient and it requires way less VRAM than for example fine-tuning Stable Diffusion models using Dreambooth.

LoRA Models vs. Base Models/Checkpoints

A question often asked by beginners is: how do LoRA models actually differ from Stable Diffusion models/checkpoints. As we’ve already touched upon that topic in the previous paragraph, here is the rest of the answer.

Stable Diffusion checkpoints often by oversimplification called “models” are the full image generation models. Most of them are variations on a handful of base models, such as Stable Diffusion 1.5, SDXL (with popular fine-tunes like Illustrious and Pony) and Flux, additionally trained on different types of imagery. You can find various different checkpoints online available for free download on sites such as civit.ai or huggingface.co.

Different Stable Diffusion checkpoints usually have different designated uses, as they are fine-tuned on different image styles. For instance you can find checkpoints that are best used for generating realistic photos, anime-styled images, pixel art characters and much more.

There are quite a few interesting LoRA models available out there. This one for example was created to emulate retro pixel art image style.
There are quite a few interesting LoRA models available out there. This one for example was created to emulate retro pixel art image style. | Source: civit.ai

Stable Diffusion models/checkpoints are most of the time files that are rather big (a few gigabytes in size). In Automatic1111 WebUI you can import and use different checkpoints simply by putting the checkpoint files inside the models folder and selecting your desired checkpoint/model inside the WebUI before generating a new image.

LoRA models are essentially, as we’ve already said, small fine-tunings that are much smaller in size than full model checkpoints, and that need an actual checkpoint to be used alongside them. They can help you achieve different consistent image generation styles depending on the particular LoRA you choose.

While Stable Diffusion checkpoints can be used without any additional data, a LoRA model has to be used alongside a checkpoint for you to be able to generate images. That checkpoint has to come from the same model family the LoRA was trained for. A LoRA trained on SD 1.5 works with SD 1.5 checkpoints, a LoRA trained on SDXL works with SDXL, Illustrious and Pony checkpoints (although results vary between them), and a Flux LoRA needs a Flux model. On Civitai, every LoRA page lists its base model right next to the download button.

How To Use LoRA models in Automatic1111 WebUI – Step By Step

The Automatic1111 Stable Diffusion WebUI has native LoRA and LyCORIS model support, so you can use your newly downloaded LoRA models without installing any additional plugins, extensions or addons. And so, here is the quick step-by-step tutorial on using LoRA models in the SD WebUI.

A quick note before we start: Automatic1111 hasn’t had a new release since version 1.10.1, and it doesn’t support newer model families like Flux. It still works fine for SD 1.5 and SDXL LoRAs, but if you’re setting things up from scratch today, Forge or ComfyUI are the better picks. The LoRA steps for Forge are the same as below, and ComfyUI has its own section further down.

To make use of LoRA models, the only two things you need to do are:

Step 1 – Download And Import Your LoRA Models

After you’ve downloaded your models, put your LoRA model files (usually .safetensors files) inside this folder: ~stable-diffusion-webui/models/Lora. The exact filepath will depend on the directory you’ve set up your WebUI in.

Step 2 – Invoke Your LoRA Model In Your Prompt

That's what your LoRA style list will look like after you populate your LoRA folder with a few low-rank adaptation based models.
The Lora tab with a few LoRA models in the folder. | Image: techtactician.com – Automatic1111 WebUI.

After creating your image generation prompt, click the Lora tab (in current versions it sits in the row of tabs next to “Generation”, together with Textual Inversion, Hypernetworks and Checkpoints), click the Refresh button, and finally choose your desired LoRA model from the list.

After you do that, the LoRA activation prompt phrase should show up in the prompt window like so: <lora:lorafilename:multiplier>, where the lorafilename is the name of your downloaded LoRA file, and the multiplier is the desired weight of the LoRA styling.

The multiplier is usually set between 0 (no LoRA style effect visible) and 1 (chosen LoRA in full effect). A good starting point is somewhere around 0.7 to 0.8, and many LoRA authors list their recommended weight on the model page. You can go above 1 too, but the image tends to get “overcooked” quickly.

Many LoRAs also have trigger words, which you’ll find on the model’s download page (on Civitai they’re listed as “Trigger Words”). Adding them to your prompt alongside the <lora:…> tag is often what makes the LoRA actually show its effect.

If you want to, you can also omit clicking on the LoRA preview in the Lora tab, and just type in or copy over the LoRA invocation line into your prompt by yourself! You can also use more than one LoRA at once, by adding several tags, each with its own weight.

How To Use LoRA Models in Forge and Forge Neo

Stable Diffusion Forge is built on top of the Automatic1111 WebUI, so using LoRAs there works exactly the same way. The files go in models/Lora inside your Forge folder, and you invoke them with the same <lora:filename:multiplier> tag, either by typing it in or by clicking the LoRA in the Lora tab.

The original Forge isn’t updated much these days, and most of the development has moved to Forge Neo, an actively maintained fork that also supports newer model families like Flux, Qwen-Image, Wan 2.2 and Krea 2. The LoRA folder and syntax are the same there too, so everything in this guide applies.

How To Use LoRA Models in ComfyUI

ComfyUI doesn’t use the <lora:…> prompt tag. Instead, you load LoRAs with a node. Here is how to do it:

  1. Put your LoRA files in the ComfyUI/models/loras folder, and refresh ComfyUI (press R, or restart it) so the new files show up.
  2. Double-click on an empty spot in your workflow and add the “Load LoRA (Model and CLIP)” node.
  3. Connect the MODEL and CLIP outputs of your Load Checkpoint node to the LoRA node’s inputs.
  4. Connect the LoRA node’s MODEL output to your KSampler, and its CLIP output to both of your CLIP Text Encode (prompt) nodes.
  5. Pick your LoRA file in the node, set strength_model and strength_clip (they work like the multiplier above, so start around 0.7 to 1), add the trigger words to your prompt and generate.

To use more than one LoRA, chain several of these nodes one after another, each one taking the model and CLIP from the previous one. LyCORIS files load the same way. There’s also a “LoraLoaderModelOnly” node (shown as “Load LoRA” in recent versions) that only affects the model, which is what many Flux and other newer model workflows use.

If you’re new to ComfyUI, my basic ComfyUI SDXL workflows are a good starting point to add a LoRA node to.

What If Your LoRA Models Aren’t Showing In The Lora Tab?

If no LoRA models show up after you click the Lora tab, make sure that you’ve put your downloaded LoRA models in the correct folder. They should be placed in ~stable-diffusion-webui/models/Lora (or ComfyUI/models/loras in ComfyUI).

Once you have moved them over to this location, refresh the LoRA list using the refresh button in the Lora tab itself, or restart the WebUI. Now they should properly display on the list.

If only some of your LoRAs are missing, the most common reason today is a model family mismatch. Automatic1111 and Forge hide LoRAs they detect as made for a different version of Stable Diffusion than your loaded checkpoint, so for example your SD 1.5 LoRAs disappear from the list once you load an SDXL checkpoint. To see all of them anyway, open Settings, type “Always show all networks” into the search box at the top, turn that option on and apply the settings. Keep in mind that showing them doesn’t make them compatible.

Also check that the file actually finished downloading. A broken or partial .safetensors file won’t load, and the console window will show an error when you try to use it.

What If Your LoRA Does Nothing?

If the LoRA loads but your images look the same as without it, check these three things in order: the LoRA was made for the same model family as your checkpoint, you’ve added its trigger words to the prompt, and the weight isn’t set too low. In Automatic1111 and Forge, also look at the console window after generating, as a “Lora not found” warning there usually means the name in your <lora:…> tag doesn’t match the file name.

Let’s move on for some examples of LoRA model usage in Stable Diffusion WebUI!

Stable Diffusion LoRA Model Prompt Examples

Results from the two example LoRA prompts, a pixel art bunch of roses and a 3D rendered metal cube.
Here are the results from our example generations prompts – exact settings listed below! | Photo: techtactician.com

Here are two examples of how you can use your imported LoRA models in your Stable Diffusion prompts. Both of these are SD 1.5 LoRAs, so they need an SD 1.5 checkpoint to work:

  • Prompt: (masterpiece, top quality, best quality), pixel, pixel art, bunch of red roses <lora:pixel_f2:0.5>
  • Negative prompt: (worst quality, low quality:2)
  • LoRA link: M_Pixel 像素人人 – Civit.ai – Pixel art style LoRA.
  • Prompt: high quality, 3d render, blender render, one single metal cube in an empty room, <lora:stylized_3dcg_v4-epoch-000012:1>
  • Negative prompt: (worst quality, low quality:2)
  • LoRA link: Stylized 3D Model LoRA – Civit.ai – 3D rendered image style LoRA.

And here are the exact settings used for generating images in both of our examples:

  • Steps: 34, Sampler: Euler a, CFG scale: 6.5, Seed: 1922503763, Size: 512×768, Model hash: c5b6055a84, Clip skip: 2, ENSD: 31337

These are typical SD 1.5 settings. With SDXL, Illustrious or Pony LoRAs, use an image size of around 1024×1024 instead, as these models were trained at a higher resolution.

Remember that both your prompt keywords and the multiplier value at the end of your LoRA activation will affect the image generation process. It’s best to use prompt keywords that are related to your chosen LoRA style to assure more consistent styling of your newly generated images.

Another great thing is that you can also use LoRA models both for the img2img functionality of the Stable Diffusion WebUI, and for inpainting. Although this requires modifying a few different settings to achieve satisfying results (for example the denoise level in the img2img tab), it can yield great results when you experiment with it for a bit!

Best Sources for Free LoRA Models

Civit.ai and huggingface.co are one of the best sites for exploring and downloading different LoRA models and SD checkpoints for free.
Civit.ai and huggingface.co are one of the best sites for exploring and downloading different LoRA models and SD checkpoints for free! | Image: civit.ai

Here are the best sources out there for downloading free LoRA models for Stable Diffusion. Feel free to browse through these sites to find the LoRA models with the image styles you need. Lots of great stuff here!

  • Civit.ai – the biggest library of LoRA models out there, with lots of character, style and concept LoRAs. Use the “Base Model” filter to only see LoRAs that match your checkpoint.
  • Huggingface.co – they have very diverse set of LoRA models in their collection, which is also worth exploring after you’re done on Civit.

These two are still the places with the biggest libraries of different LoRA styles. Whichever one you use, always check the base model listed on the LoRA’s page before downloading.

How To Train LoRA Models By Yourself?

Training your own LoRA models is not as hard as you think!
Training your own LoRA models is not as hard as you think!

You can train your very own LoRA models by yourself, on your own photos, pictures of your favorite anime character, or particular artist’s style to invoke them into your image generations without training a whole Stable Diffusion checkpoint for that. And it’s pretty easy too!

Here is my complete guide that walks you through the whole process, from picking your base model and preparing your dataset to testing the finished LoRA: How To Train LoRA Models. If you want a step-by-step run in the Kohya GUI specifically, check out How To Train Your Own Stable Diffusion LoRA Models With Kohya GUI, and for the newest models there’s my Krea 2 LoRA training guide. Happy training!

What About LyCORIS Models?

You may still run into older files labeled LyCORIS, LoCon or LoHa on Civitai. These variants were popular in 2023, but these days almost everything gets released as a plain LoRA. If you do download one, it loads exactly like a LoRA in A1111, Forge and ComfyUI, and my LyCORIS guide explains the differences. Good luck and have fun!

Tom Smigla
Tom Smiglahttps://tomsmigla.com/
Tom is the founder of TechTactician.com with years of experience as a professional tech journalist and hardware & software reviewer. Armed with a master's degree in Cultural Studies / Cyberculture & Media, he created the "Consumer Usability Benchmark Methodology" to ensure all the content he produces is practical and real-world focused.

Check out also:

Latest Articles