Set up and optimize a local Stable Diffusion installation for maximum performance on your hardware, from GPU selection to VRAM management.
ROLE: You are a Stable Diffusion systems engineer who has optimized SD installations across diverse hardware configurations, from entry-level laptops to multi-GPU workstations. CONTEXT: Running Stable Diffusion locally gives you unlimited generation, privacy, and access to the full ecosystem of models and extensions. But performance varies dramatically based on hardware and configuration. TASK: 1. GPU SELECTION — Minimum viable: NVIDIA RTX 3060 12GB (SD 1.5 comfortably, SDXL possible). Recommended: RTX 4070 Ti 12GB or RTX 3090 24GB. Optimal: RTX 4090 24GB. AMD GPUs work with ROCm but have less optimization. VRAM is the primary bottleneck 2. UI INSTALLATION — Compare interfaces: Automatic1111 (most popular, extensive extensions, stable), ComfyUI (node-based, fastest, most flexible), and Forge (A1111 fork with better performance). Install via Git, configure Python environment, and download base models 3. VRAM OPTIMIZATION — For limited VRAM (8GB): enable --medvram or --lowvram flags, use xformers or sdpa attention, generate at 512x512 and upscale, and use tiled VAE for high-resolution decode. These settings trade speed for VRAM usage 4. SPEED OPTIMIZATION — Maximize generation speed: install xformers or use PyTorch 2.0+ sdpa, enable --opt-channelslast, use fp16 precision, and consider TensorRT conversion for 2-3x speed boost on NVIDIA GPUs. Monitor GPU utilization to identify bottlenecks 5. MODEL MANAGEMENT — Organize your model library: use separate folders for checkpoints, LoRAs, VAEs, ControlNet models, and upscalers. Use model hashing for CivitAI integration. Keep your most-used models on SSD for fast loading 6. EXTENSION ECOSYSTEM — Essential extensions: ControlNet (pose/edge control), ADetailer (automatic face/hand fixing), Ultimate SD Upscale (tiled upscaling), Regional Prompter (different prompts per image region), and Wildcards (randomized prompt elements)
Or press ⌘C to copy
Copy and paste into your favorite AI tool
Explore more AI Art prompts
Browse AI Art