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.
- 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.
- 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.
- Embeddings (Textual Inversion): Tiny files (usually a few kilobytes to megabytes) that bundle specific prompt tokens into a single keyword.
- 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:
- Pruned vs. Full: Always choose Pruned. "Full" includes optimizer states and training metadata that are completely useless for standard inference. They inflate download time and waste local SSD storage without improving rendering quality.
- FP16 / BF16 vs. FP32: Choose FP16 (or BF16 for modern architectures like Flux and SDXL). FP32 doubles file size and VRAM consumption while producing visual outputs virtually indistinguishable from half-precision floats during inference.
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):
- Checkpoints: Place
.safetensorsfiles in:stable-diffusion-webui/models/Stable-diffusion/ - LoRAs: Place
.safetensorsfiles in:stable-diffusion-webui/models/Lora/ - VAEs: Place
.safetensorsfiles in:stable-diffusion-webui/models/VAE/ - Textual Inversion: Place
.ptor.safetensorsembeddings in:stable-diffusion-webui/embeddings/
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/:
- Checkpoints: Place files in:
ComfyUI/models/checkpoints/ - LoRAs: Place files in:
ComfyUI/models/loras/ - VAEs: Place files in:
ComfyUI/models/vae/
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:
- Double-click the canvas and search for Load LoRA.
- Connect the
MODELoutput ofLoad Checkpointto themodelinput ofLoad LoRA. - Connect the
CLIPoutput ofLoad Checkpointto theclipinput ofLoad LoRA. - Route the modified
MODELandCLIPoutputs ofLoad LoRAonward to your KSampler and positive/negative prompt CLIP Text Encode nodes. - Set
strength_modelandstrength_clipto 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.