Intermediate 12 minDaily plan

ComfyUI LoRA: installing and using a LoRA image

A monitor displays a colorful abstract composition at an artist’s desk.

An image LoRA is a small file that changes the behavior of an image generation model (style, character, object, lighting) without replacing that model. In ComfyUI, you use a LoRA with a dedicated node, Load LoRA, inserted between the checkpoint and the rest of the workflow. This guide covers what you need to know to use a LoRA in ComfyUI without wasting an evening: where to put the files, how to check that a LoRA matches your base model, how to set its weight, and how to tell whether you're allowed to use what you downloaded.

By Mohamed Meguedmi·Update 2026-11-26·Tested on Windows, macOS, and Linux

#What a LoRA does in ComfyUI

LoRA stands for Low-Rank Adaptation. Instead of retraining all of a model's weights, you train small matrices that are added to certain layers of the original model. The result fits in a file much smaller than a full checkpoint. The size depends on the rank chosen during training and on the target architecture, so check it on the download page rather than relying on a general ballpark figure.

At generation time, ComfyUI loads your checkpoint (the base model), then the Load LoRA node applies the LoRA file's modifications to the diffusion model and, in some cases, to the text encoder (CLIP). Nothing is written to disk: the original checkpoint stays intact, and you can remove the LoRA, change its weight, or stack several of them on every generation.

Style
Watercolor rendering, pixel art, illustration in a specific genre. This is the most common use.
Character or subject
A character, object, or product learned from a set of images. Watch out for right-of-publicity and intellectual property issues (see the license section).
Concept or detail
A pose, a lighting style, a fix for hands or faces, a level of detail.
Acceleration
Some LoRAs reduce the number of steps required. They often require specific sampler settings specified by their author.

The official ComfyUI documentation includes a basic tutorial on LoRA (docs.comfy.org/tutorials/basic/lora, accessed 30/10/2026). It is the primary source for this guide. The procedure described here follows that documentation and ComfyUI's known behavior. We don't publish any comparison images or measurements because we didn't produce any for this article.

#Image LoRA and LLM fine-tuning: same idea, incompatible files

The complete kit for creating your images with local AI.

Benefit from our experience and a guided path to get comfortable with your tools and create your images locally.

  • Lifetime online access
  • PDF + files
  • Refunded within 30 days

On QuelLLM, the word LoRA also appears in the LLM fine-tuning guide (Unsloth, QLoRA, GGUF export to Ollama). The underlying math is the same, but the two worlds do not mix:

Target model
An image LoRA modifies a diffusion model (Stable Diffusion 1.5, SDXL, Flux, etc.). An LLM LoRA modifies a language model (Qwen, Llama, Gemma…).
Software
An image LoRA loads in ComfyUI, Forge, or AUTOMATIC1111. It doesn't load in Ollama, LM Studio, or llama.cpp, and vice versa.
Usage
In this guide, you use a LoRA that someone else has already trained. Training your own image LoRA is a separate project (image dataset, captions, training tool) that isn't covered here.

#Prerequisites

Working ComfyUI
An installation that already generates an image with the default workflow. If it doesn't, start with the beginner's ComfyUI installation guide.
A base checkpoint
Placed in ComfyUI/models/checkpoints (or in the model-specific folders for recent architectures that separate the model, text encoders, and VAE).
A compatible LoRA
Trained for the same family as your checkpoint. This is what causes the most attempts to fail.
Video memory
A LoRA adds little memory compared to the base model, but it does add some. If your workflow is already at the limit of your VRAM, adding several LoRAs can push ComfyUI into a slower mode or cause an out-of-memory error.

#Step 1: Download the LoRA file and put it in the right folder

ComfyUI lists the LoRAs in the models/loras folder of its installation. The exact folder name matters: a file placed in models/checkpoints will not appear in the Load LoRA node.

Terminal (Linux / macOS, manual installation)
# Depuis le dossier racine de ComfyUI
ls models/loras

# Déplacer un LoRA téléchargé
mv ~/Téléchargements/mon_style.safetensors models/loras/

# Optionnel : ranger par famille pour s'y retrouver
mkdir -p models/loras/sdxl models/loras/sd15 models/loras/flux
mv models/loras/mon_style.safetensors models/loras/sdxl/

Subfolders are supported: the file will appear in the list as sdxl/mon_style.safetensors. Organizing by model family is the simplest way to avoid loading an SD 1.5 LoRA onto an SDXL checkpoint. With the ComfyUI Desktop app or a portable install, the models folder is in the directory you chose during installation; the principle is the same.

!
Prefer .safetensors
A LoRA may be distributed as .safetensors or in older PyTorch formats (.ckpt, .pt, .bin) that rely on pickle and can execute code when loaded. The .safetensors format contains only tensors and metadata. If a LoRA is only available as .ckpt or .pt and comes from a source you don't know, don't load it.

If you already use Forge or AUTOMATIC1111, there's no need to duplicate files. ComfyUI reads an extra_model_paths.yaml file in its root folder (an example, extra_model_paths.yaml.example, is included in the repository). You can declare an existing LoRA folder there:

extra_model_paths.yaml
mes_modeles:
    base_path: /data/ia-images/
    checkpoints: checkpoints/
    loras: loras/

Adjust the paths for your machine, then restart ComfyUI. To confirm the exact syntax for your version, start from the provided example file rather than a snippet copied from the web: the section for AUTOMATIC1111 is already set up there.

After adding a file while ComfyUI is running, refresh the node definitions (R key in the interface, or restart) so it appears in the dropdown list.

#Step 2: check the LoRA's compatibility with the base model

A LoRA is trained for a specific architecture. The layers it modifies have names and dimensions that exist only in that architecture. An SD 1.5 LoRA does not apply to an SDXL checkpoint, an SDXL LoRA does not apply to Flux, and so on. ComfyUI does not necessarily block loading: it ignores layers it does not recognize, and you get an image identical or nearly identical to the one without the LoRA.

Download page
Sharing platforms (Civitai, Hugging Face) usually list the LoRA's "base model." That's the first thing to check.
Family, not just version
A LoRA trained on SDXL often works with SDXL-derived checkpoints, but some derivatives diverge significantly (Pony, Illustrious, and others). LoRAs made for them rarely give the expected result on a different derivative.
File metadata
Many LoRAs trained with common tools contain training metadata (base model, resolution, trigger words). This metadata isn't always present or reliable: it supplements the author's page but doesn't replace it.
ComfyUI console
"lora key not loaded" lines in the console during generation indicate that some LoRA layers don't match the loaded model. A few lines may be harmless; a long list almost always means an incompatible model family.
→
Trigger words
Some LoRAs only have a clear effect if a specific word (trigger word) appears in the prompt. The author lists it on the download page. Without it, the LoRA is loaded and compatible, but its effect stays weak: this is a common cause of "LoRA that does nothing."

#Step 3: wire the Load LoRA node in ComfyUI

The Load LoRA node (internal name LoraLoader) takes the MODEL and CLIP from the checkpoint as input and outputs a modified MODEL and CLIP. Everything downstream must use these outputs, not the checkpoint's. This is the most common wiring mistake.

  1. 01
    Start from a working workflow
    Load the default workflow (Load Checkpoint → CLIP Text Encode ×2 → KSampler → VAE Decode → Save Image) and make sure it generates an image with your checkpoint. Note the seed so you can compare later.
  2. 02
    Add the node
    Double-click an empty area of the canvas, type “Load LoRA,” and add the node. You can also use the right-click menu: Add Node → loaders → Load LoRA.
  3. 03
    Connect the inputs
    Connect the MODEL output of Load Checkpoint to the model input of Load LoRA, and the CLIP output of Load Checkpoint to the clip input of Load LoRA.
  4. 04
    Reconnect the outputs
    Connect the MODEL output of Load LoRA to the model input of the KSampler. Connect the CLIP output of Load LoRA to both CLIP Text Encode nodes (positive and negative prompt). The old direct links from the checkpoint are replaced automatically when you connect a new link to an input that is already in use.
  5. 05
    Choose the file and generate
    Select the LoRA in the lora_name field, leave strength_model and strength_clip at 1.0 for a first try, add the trigger word to the prompt if there is one, then run the generation with the same seed as before.

The official documentation illustrates this setup with an SD 1.5 checkpoint and a style LoRA downloaded from Civitai: the files go in models/checkpoints and models/loras respectively, then the Load LoRA node is inserted between the checkpoint and the rest of the graph, exactly as shown above. You can load this tutorial's workflow from the documentation page.

#Variant: LoraLoaderModelOnly

ComfyUI also provides a LoraLoaderModelOnly node, which acts only on the MODEL and has no CLIP input. It's meant for LoRAs that don't contain weights for the text encoder, which is common with recent architectures, or for when the text encoder is loaded by a separate node. The official workflows for some models use it directly: if a workflow loaded from the documentation contains this node, leave it as is.

#Step 4: Set the LoRA weight

Load LoRA exposes two settings. strength_model sets the strength applied to the diffusion model, and strength_clip sets the strength applied to the text encoder. The default value is 1.0. ComfyUI accepts values well above 1 as well as negative values, but the useful range is almost always around 1 or below.

Start with the author's recommendation
Many LoRA pages list a recommended weight range. That's the best starting point, because it depends on how the LoRA was trained.
Distorted image, burned-out colors, subject disappearing
The weight is probably too high, or the LoRA is a poor fit for the checkpoint. Lower strength_model in steps.
No visible effect
Check the trigger word and compatibility first, and only then increase the weight.
strength_clip
Keeping it equal to strength_model is a good starting point. Lowering it reduces the LoRA's influence on how the prompt is interpreted without affecting the rendering itself.
Negative values
They invert the learned effect. Some “slider” LoRAs are designed to be used in both directions; for an ordinary LoRA, the result is unpredictable.

To compare two settings fairly, change only one thing at a time and keep the same seed, prompt, sampler, and number of steps. Otherwise you're comparing randomness. In the KSampler, set control_after_generate to fixed during these tests.

#Combining multiple LoRAs

To stack two LoRAs, chain two Load LoRA nodes: the MODEL and CLIP outputs of the first go into the inputs of the second, and only the outputs of the last one go to the KSampler and the CLIP Text Encode nodes. The effects add up, which means two LoRAs at 1.0 each can oversaturate the image. Lower each one's weight when you combine them, and add them one at a time to identify the one causing problems.

Wiring diagram (text)
Load Checkpoint ─MODEL/CLIP─▶ Load LoRA (style) ─MODEL/CLIP─▶ Load LoRA (détails)
    Load LoRA (détails) ─MODEL─▶ KSampler
    Load LoRA (détails) ─CLIP──▶ CLIP Text Encode (positif) + CLIP Text Encode (négatif)
    Load Checkpoint ─VAE─▶ VAE Decode

#Step 5: Check the LoRA's provenance and license

Downloading a LoRA takes ten seconds; knowing what you're allowed to do with it takes a bit more care. Three layers of rules stack up, and the most restrictive one wins.

Base model license
A LoRA remains dependent on the checkpoint it is applied to. Licenses vary by model family: CreativeML OpenRAIL-M for Stable Diffusion 1.5, CreativeML Open RAIL++-M for SDXL, a non-commercial license specific to FLUX.1 [dev], and specific Stability AI licenses for more recent versions. Read the license of the checkpoint you are using, not that of a related model.
The LoRA author's terms
On Civitai, each model displays permissions (commercial use of images, selling the model, sharing merges, credit required). On Hugging Face, the license appears on the repository's model card. Take a screenshot of these terms on the day you download: they can change.
Learned content
A LoRA that reproduces a real person, a protected character, a brand, or the recognizable style of a living artist raises right-of-publicity, copyright, or trademark issues that are independent of the file's license. A permissive license on the file doesn't resolve those issues.

For provenance, keep a simple record of each file: name, source page URL, author, version, download date, stated base model, and license. If the platform publishes a SHA256 hash, compare it with your file's hash.

Terminal (Linux / macOS)
# Empreinte SHA256 du fichier téléchargé
sha256sum models/loras/sdxl/mon_style.safetensors   # Linux
shasum -a 256 models/loras/sdxl/mon_style.safetensors  # macOS
PowerShell (Windows)
Get-FileHash .\models\loras\sdxl\mon_style.safetensors -Algorithm SHA256

An image generated locally does not leave your machine because of ComfyUI alone, but the custom nodes you install can make network calls. If privacy matters, check your installed extensions rather than assuming the entire workflow stays local.

#Troubleshooting: common problems with a LoRA in ComfyUI

The LoRA doesn't appear in the list
The file isn't in models/loras (or in a path declared in extra_model_paths.yaml), or ComfyUI hasn't been refreshed. Press R or restart. Also check that the download is complete: a truncated file or an HTML page renamed to .safetensors won't load.
No visible difference
In order: are the Load LoRA outputs actually connected to the KSampler and the CLIP Text Encode nodes? Is the trigger word present? Is the model family the same? Any "lora key not loaded" lines in the console?
Imported workflow with a LoRA name shown in red
The workflow references a file you don't have, or one stored in a different subfolder. Select your own file in lora_name, or download the one specified by the workflow's author from its original source.
Out-of-memory error after adding a LoRA
Remove a LoRA, lower the resolution or batch size, or use a lighter version of the base model. The LoRA itself is small; it's often the full workflow that exceeds the available VRAM.
Degraded image even at moderate weight
The LoRA may have been trained for a different derivative in the same family, or it may expect a specific sampler, step count, or CFG. Reread the author's recommended settings.
Error loading a .ckpt or .pt file
Recent versions of PyTorch reject certain pickle loads deemed risky by default. Look for a .safetensors version of the same LoRA instead of bypassing the protection.
i
Limitations of this guide
Procedure based on the official ComfyUI documentation consulted on October 30, 2026, and not re-run for this article. Menu names and the interface's appearance change with frontend versions: if a label looks different on your end, you can always find the node by searching (double-click the canvas). No visual results and no speed or memory measurements are provided here.

#Go further

ComfyUI: installation and getting started locally
The companion guide, to follow before this one: installation on Windows, Mac, or Linux, organizing models, your first image, and the VRAM required for each model family.
ComfyUI workflows: where to find them and how to load them
Many shared workflows already contain Load LoRA nodes: how to import them from a PNG or JSON and replace missing files.
ComfyUI Manager: install nodes and fix errors
For workflows that use custom LoRA loaders, and to spot risky extensions before enabling them.
Local LLM fine-tuning: LoRA / QLoRA
If you're interested in adapting a language model: same technique, different tooling (Unsloth, GGUF export to Ollama).

Sources: official ComfyUI documentation, LoRA tutorial (docs.comfy.org/tutorials/basic/lora), and the extra_model_paths.yaml.example file from the github.com/comfyanonymous/ComfyUI repository, accessed 30/10/2026; original LoRA method paper (Hu et al., "LoRA: Low-Rank Adaptation of Large Language Models," arXiv 2106.09685). Base model licenses: check the official page for each checkpoint when you download it.

Did this guide help you?

Feedback, an error, or a clarification? Let us know—it improves the guide for everyone.