How to Change LoRA Folder Location Without Breaking Your Stable Diffusion Setup

How to Change LoRA Folder Location Without Breaking Your Stable Diffusion Setup

You're staring at a red bar on your SSD. We've all been there. You started with one or two LoRAs, maybe a nice cinematic lighting one and a specific character skin. Then, you discovered Civitai. Suddenly, you have 400GB of "essential" weights, and your C: drive is screaming for mercy. It’s time to move things. Learning how to change lora folder location isn't just about saving space; it’s about organization and sanity. If you keep everything in the default models/Lora directory within your webui folder, you’re eventually going to hit a wall.

Disk speed matters too. If you move your LoRAs to an old, external 5400 RPM hard drive, your generation times might not suffer, but your initial load times definitely will. Honestly, it’s a pain when the UI hangs for twelve seconds just because it’s trying to index a mechanical drive.

Why the Default Path is a Trap

Most people use Automatic1111 or Forge. These tools are fantastic, but their default installation assumes you want everything in one neat little bundle. That’s fine for a 20GB install. It’s a disaster for a pro-level setup. When you change lora folder location, you decouple your data from your software. This is huge. If your SD installation breaks—which happens more often than we’d like after a messy git pull—you can delete the whole folder without losing your precious, curated LoRA collection.

There are three main ways to handle this. You can use command-line arguments, which is the "official" way. You can use symbolic links, which is the "hacker" way that works across almost any software. Or, you can use specialized extensions. Each has quirks.

The Command Line Argument Method

This is the cleanest approach if you’re using Automatic1111 or SD.Next. You need to find your webui-user.bat file. Right-click it. Hit edit. You’ll see a line that says set COMMANDLINE_ARGS=. This is where the magic happens.

Basically, you’re going to append a specific flag: --lora-dir "D:\AI_Models\LoRAs".

Make sure you use quotes if your path has spaces. I’ve seen so many people tear their hair out because they had a folder named "My LoRAs" and the script broke because it couldn't handle the space. It’s a classic mistake. Once you save that bat file and relaunch, the UI will look in your new D: drive folder instead of the local one.

The downside? It replaces the default folder. It doesn't add to it. If you have files in both places, the ones in the original folder will basically vanish from your UI until you move them to the new spot.


If you’re running multiple interfaces—maybe you use ComfyUI for complex workflows and Automatic1111 for quick sketching—you don't want two copies of every LoRA. That’s just a waste of space. This is where symbolic links (Symlinks) come in.

A symlink is like a shortcut, but the computer is tricked into thinking the folder is actually there. It’s low-level. It’s powerful.

  1. Close your Stable Diffusion.
  2. Move your Lora folder to the new drive.
  3. Open Command Prompt as Administrator. This is non-negotiable.
  4. Use the mklink command.

The syntax looks like this: mklink /D "C:\stable-diffusion\models\Lora" "D:\MassiveStorage\LoRAs".

What just happened? You created a "ghost" folder. Windows tells the software the files are on the C: drive, but when the software asks for data, Windows silently pulls it from the D: drive. It’s seamless. Honestly, this is how I manage my entire 2TB model library. It keeps the main install folder lightweight and portable.

💡 You might also like: Larry Ellison Pieces of Code Smarter Than You: The Real Story Behind Oracle's Autonomous Engineering

ComfyUI and the YAML Factor

ComfyUI handles things differently. It doesn't really care about command-line arguments in the same way. Instead, it uses a file called extra_model_paths.yaml.

You’ll usually find a file named extra_model_paths.yaml.example in the root directory. Rename it to remove the .example part. Open it with Notepad or VS Code. It’s pretty self-explanatory, but you have to be careful with the indentation. YAML is picky. If you miss a space, the whole thing fails to load.

You can point the loras: line to any path you want. The cool thing about Comfy is that you can list multiple paths. If you have some "active" LoRAs on your NVMe drive for speed and "archived" ones on a slower HDD, you can technically map things out to accommodate both, though it requires a bit more tinkering with the config.

Practical Tips for Large Collections

Once you change lora folder location, you’re probably going to go on a downloading spree. Don't just dump 5,000 files into one folder. Even with a fast drive, the WebUI will struggle to generate those little preview thumbnails if it has to scan a flat directory of thousands of items.

  • Subfolders work: Both A1111 and ComfyUI recognize subfolders. Group them by category (Characters, Clothing, Style, Pose).
  • Filename matters: Keep names descriptive but short.
  • The Metadata trick: If you move folders, sometimes your .json or .png preview files get disconnected. Use an extension like "Model Keyword" or "Civitai Helper" to re-scan and fetch the metadata. It saves a ton of time.

Troubleshooting Common Path Issues

If you've followed the steps to change lora folder location and your LoRAs aren't showing up, check your slashes. Windows uses backslashes \, but some config files prefer forward slashes /. If D:\Models doesn't work, try D:/Models.

Also, permissions are a silent killer. If you moved your models to a drive that was previously used on another Windows installation, your current user might not have "Ownership." Right-click the folder, go to Security, and make sure "Everyone" or your specific username has "Full Control." It sounds like overkill, but it fixes about 50% of "Model not found" errors.


Actionable Next Steps

Don't just read this and leave your C: drive at 2% capacity. Take these steps right now:

  1. Identify your target: Pick the drive with the most overhead. SSD is preferred, but HDD works for LoRAs since they are small (usually 144MB).
  2. The "Big Move": Close all AI software. Move the actual files first. Cut and paste.
  3. Choose your Method: If you only use one UI, use the webui-user.bat argument. It’s the easiest to undo. If you use multiple UIs, set up a Symbolic Link.
  4. Verify: Launch your UI and check the "Lora" tab. If it’s empty, check your COMMANDLINE_ARGS for typos or missing quotes.
  5. Backup your Config: Once it works, make a copy of your .bat or .yaml file. Updates sometimes overwrite these, and you don’t want to have to remember the paths all over again.

By moving your weights off the OS drive, you're setting yourself up for a much smoother experience as the local AI scene grows. It makes upgrading your hardware or switching between different UI versions significantly less stressful.