AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

How to Safely Download and Install LoRA Models and Checkpoints from Civitai

Corrie Koh · 365Finds Editorial
Indexed 88,650 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

Civitai is a gold mine and an operational minefield. Anyone who has spent more than twenty minutes generating images locally knows the drill: you find an incredible visual style on Civitai, hit download on a multi-gigabyte blob, drop it into a folder, and hope your local environment does not catch fire. Sometimes the output looks like mangled plastic. Worse, sometimes users pull arbitrary code execution right into their workstations.

At 365Finds, we take a blunt stance on local model acquisition: open weights require strict digital hygiene. You do not need to be a cybersecurity researcher to keep your machine clean, but you do need three ironclad habits: strictly filtering file formats, matching model architectures before downloading, and dropping files into the exact subdirectories expected by Automatic1111 or ComfyUI.

Rule Zero: The .safetensors Mandate

If a file ends in .ckpt or .pt, do not download it. Period.

Early Stable Diffusion distributions relied heavily on PyTorch serialization checkpoints formatted with Python's native pickle module. The problem is structural: Python pickle is not a passive data container. It is a bytecode stream that can instantiate arbitrary Python objects and execute shell commands the moment your local web UI unpacks the weights into memory. An attacker can hide a reverse shell, an infostealer, or a crypto miner directly inside a 2 GB .ckpt file.

Civitai runs automated PickleScan checks and ClamAV scans on every upload, flagging models with a green badge when clean. That badge is helpful. It is also not an absolute defense against zero-day evasion techniques.

The format you want is .safetensors, developed by Hugging Face. A .safetensors file is dumb. It contains an initial JSON header outlining tensor metadata followed by raw binary numerical arrays. It cannot run an executable script. It cannot make outbound network calls. It cannot run system commands. At 365Finds, our internal testing policy rejects any checkpoint or LoRA that does not ship in .safetensors. If a creator only offers legacy .ckpt, find an alternative creator or convert it inside a sandboxed virtual environment.

Decoding Civitai File Types and Precision

Civitai hosts different architectural tiers. You cannot drop a LoRA into a checkpoint folder and expect your web UI to boot it.

  1. Checkpoints (Base Models): These are self-contained models that hold the entire diffusion network, text encoder, and VAE. File sizes range from 2 GB for pruned SD 1.5 checkpoints to over 6 GB for SDXL or 12 GB+ for Flux.1. They serve as the foundation of your generation pipeline.
  2. LoRAs (Low-Rank Adaptations): These are compact modifier patches—ranging between 10 MB and 300 MB—that fine-tune specific visual concepts, characters, camera angles, or art styles. A LoRA cannot generate an image on its own; it mathematical hooks into a running checkpoint.
  3. Embeddings (Textual Inversion): Tiny files (usually a few kilobytes to megabytes) that bundle specific prompt tokens into a single keyword.
  4. VAEs (Variational Autoencoders): Color and detail decoders that translate latent noise into human-visible pixels.

When you click into the "Files" dropdown on a Civitai model card, creators often upload three or four variants of the same release. Here is what 365Finds recommends choosing:

One critical check before clicking download: look at the Base Model badge on the top right of the Civitai page. An SD 1.5 LoRA will produce garbled noise or immediate tensor mismatch errors if you inject it into an SDXL 1.0 or Pony Diffusion checkpoint. Architectures must match.

Where Files Go: Automatic1111 vs. ComfyUI

Locating the proper folder hierarchy is where most beginners get stuck. Both major local user interfaces expect files in dedicated subdirectories.

1. Automatic1111 (and SD WebUI Forge)

Navigate to your main installation directory (e.g., stable-diffusion-webui):

Once copied, open your web interface. For checkpoints, hit the circular Refresh button next to the top-left checkpoint dropdown. For LoRAs, navigate to the Extra Networks tab (the small pink card icon below the Generate button), switch to the Lora sub-tab, and click Refresh.

2. ComfyUI

ComfyUI organizes everything under its modular models root. If you are using the Windows portable package, locate ComfyUI_windows_portable/ComfyUI/:

In ComfyUI, click Refresh on the floating control menu. If your workflow is currently loaded, the newly added models appear in the dropdown list inside the Load Checkpoint node or Load LoRA node.

Triggering LoRAs Without Ruining Your Image

Dropping a LoRA into your directory does not mean it automatically applies to your prompts. You must call it explicitly, and you must respect its trigger tags.

Trigger Words

Scroll down the Civitai model page to the Trained Words section. Many LoRAs are trained around specific keyword tokens (e.g., ink_wash_style, character_name). If you omit the trigger word from your positive prompt, the LoRA may only partially influence the output or fail entirely.

Weighting Syntax in Automatic1111

When you click a LoRA card under Extra Networks, Automatic1111 injects a prompt tag formatted like this: <lora:model_name:1.0>

A weight of 1.0 is frequently too aggressive. In our experience at 365Finds, running community LoRAs at full strength often "burns" the image—saturating skin tones, distorting eyes, or obliterating background detail. We recommend starting at 0.7 or 0.8: <lora:model_name:0.75>

Routing in ComfyUI

In ComfyUI, LoRAs are inserted directly into the pipeline graph between your checkpoint loader and your sampler:

  1. Double-click the canvas and search for Load LoRA.
  2. Connect the MODEL output of Load Checkpoint to the model input of Load LoRA.
  3. Connect the CLIP output of Load Checkpoint to the clip input of Load LoRA.
  4. Route the modified MODEL and CLIP outputs of Load LoRA onward to your KSampler and positive/negative prompt CLIP Text Encode nodes.
  5. Set strength_model and strength_clip to your desired weight (e.g., 0.75).

Downloading via Terminal with a Civitai API Key

If you host your WebUI or ComfyUI instance on a headless Linux workstation, a cloud virtual machine, or a NAS, browser downloads are cumbersome. Civitai requires an API token for direct automated endpoints.

Generate an API token by navigating to your Civitai profile icon, clicking Account Settings, scrolling to API Keys, and clicking Add API Key.

To download a checkpoint or LoRA directly to your target directory using curl while handling redirects, pass your token in the authorization header:

curl -L -H "Authorization: Bearer YOUR_CIVITAI_API_KEY" \
     -o "models/Stable-diffusion/model_name.safetensors" \
     "https://civitai.com/api/download/models/MODEL_VERSION_ID"

For high-speed multi-connection transfers via aria2c:

aria2c --header="Authorization: Bearer YOUR_CIVITAI_API_KEY" \
       -x 16 -s 16 -k 1M \
       -d "models/Lora" \
       -o "lora_name.safetensors" \
       "https://civitai.com/api/download/models/MODEL_VERSION_ID"

Civitai exposes the specific MODEL_VERSION_ID in the browser URL bar when you click a specific version tab on the model page.

References