{"id":"800a51d4-6420-4404-b5de-d02df8f1f1e4","shortId":"KSWvZG","kind":"skill","title":"Stable Diffusion LoRA Training Pipeline","tagline":"Orchestrates LoRA fine-tuning for Stable Diffusion XL using the diffusers library and Kohya ss-scripts. Manages dataset preparation with BLIP-2 auto-captioning, configures AdaFactor optimizer parameters, and exports safetensors checkpoints with A1111 metadata embedding.","description":"# Stable Diffusion LoRA Training Pipeline\n\nOrchestrates LoRA fine-tuning for Stable Diffusion XL using the diffusers library and Kohya ss-scripts. Manages dataset preparation with BLIP-2 auto-captioning, configures AdaFactor optimizer parameters, and exports safetensors checkpoints with A1111 metadata embedding.\n\n## Installation\n\nUse the upstream install or setup path that matches your environment:\n- git clone https://github.com/kohya-ss/sd-scripts.git\n- pip install torch==2.6.0 torchvision==0.21.0 --index-url https://download.pytorch.org/whl/cu124\n- pip install --upgrade -r requirements.txt\n- This installation is for CUDA 12.4. If you use a different version of CUDA, please install the appropriate version of PyTorch. For example, if you use CUDA 12.1, please install pip install torch==2.6.0 torchvision==0....\n\nRequirements and caveats from upstream:\n- Python 3.10.x and Git:\n- Python 3.10.x: Download Windows installer (64-bit) from https://www.python.org/downloads/windows/\n- Python 3.11.x, and 3.12.x will work but not tested.\n\nBasic usage or getting-started notes:\n- Open a regular Powershell terminal and type the following inside:\n- powershell\n- cd sd-scripts\n\n- Source: https://github.com/kohya-ss/sd-scripts\n- Extracted from upstream docs: https://raw.githubusercontent.com/kohya-ss/sd-scripts/HEAD/README.md\n\n## Source\n\n- [Agent Skill Exchange](https://agentskillexchange.com/skills/stable-diffusion-lora-training-pipeline/)","tags":["stable","diffusion","lora","training","pipeline","skills","agentskillexchange","agent-skills","ai-agents","ai-tools","awesome-list","claude-code"],"capabilities":["skill","source-agentskillexchange","skill-stable-diffusion-lora-training-pipeline","topic-agent-skills","topic-ai-agents","topic-ai-tools","topic-awesome-list","topic-claude-code","topic-codex","topic-cursor","topic-llm","topic-mcp","topic-npx-skills","topic-openclaw","topic-skills-catalog"],"categories":["skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/agentskillexchange/skills/stable-diffusion-lora-training-pipeline","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add agentskillexchange/skills","source_repo":"https://github.com/agentskillexchange/skills","install_from":"skills.sh"}},"qualityScore":"0.454","qualityRationale":"deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (1,445 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T19:12:37.043Z","embedding":null,"createdAt":"2026-05-18T13:19:37.152Z","updatedAt":"2026-05-18T19:12:37.043Z","lastSeenAt":"2026-05-18T19:12:37.043Z","tsv":"'-2':29,73 '/downloads/windows/':180 '/kohya-ss/sd-scripts':217 '/kohya-ss/sd-scripts.git':105 '/kohya-ss/sd-scripts/head/readme.md':224 '/skills/stable-diffusion-lora-training-pipeline/)':231 '/whl/cu124':117 '0':158 '0.21.0':111 '12.1':150 '12.4':128 '2.6.0':109,156 '3.10':165,170 '3.11':182 '3.12':185 '64':175 'a1111':42,86 'adafactor':34,78 'agent':226 'agentskillexchange.com':230 'agentskillexchange.com/skills/stable-diffusion-lora-training-pipeline/)':229 'appropri':140 'auto':31,75 'auto-capt':30,74 'basic':192 'bit':176 'blip':28,72 'caption':32,76 'caveat':161 'cd':210 'checkpoint':40,84 'clone':102 'configur':33,77 'cuda':127,136,149 'dataset':25,69 'differ':133 'diffus':2,13,17,46,57,61 'doc':221 'download':172 'download.pytorch.org':116 'download.pytorch.org/whl/cu124':115 'embed':44,88 'environ':100 'exampl':145 'exchang':228 'export':38,82 'extract':218 'fine':9,53 'fine-tun':8,52 'follow':207 'get':196 'getting-start':195 'git':101,168 'github.com':104,216 'github.com/kohya-ss/sd-scripts':215 'github.com/kohya-ss/sd-scripts.git':103 'index':113 'index-url':112 'insid':208 'instal':89,93,107,119,124,138,152,154,174 'kohya':20,64 'librari':18,62 'lora':3,7,47,51 'manag':24,68 'match':98 'metadata':43,87 'note':198 'open':199 'optim':35,79 'orchestr':6,50 'paramet':36,80 'path':96 'pip':106,118,153 'pipelin':5,49 'pleas':137,151 'powershel':202,209 'prepar':26,70 'python':164,169,181 'pytorch':143 'r':121 'raw.githubusercontent.com':223 'raw.githubusercontent.com/kohya-ss/sd-scripts/head/readme.md':222 'regular':201 'requir':159 'requirements.txt':122 'safetensor':39,83 'script':23,67,213 'sd':212 'sd-script':211 'setup':95 'skill':227 'skill-stable-diffusion-lora-training-pipeline' 'sourc':214,225 'source-agentskillexchange' 'ss':22,66 'ss-script':21,65 'stabl':1,12,45,56 'start':197 'termin':203 'test':191 'topic-agent-skills' 'topic-ai-agents' 'topic-ai-tools' 'topic-awesome-list' 'topic-claude-code' 'topic-codex' 'topic-cursor' 'topic-llm' 'topic-mcp' 'topic-npx-skills' 'topic-openclaw' 'topic-skills-catalog' 'torch':108,155 'torchvis':110,157 'train':4,48 'tune':10,54 'type':205 'upgrad':120 'upstream':92,163,220 'url':114 'usag':193 'use':15,59,90,131,148 'version':134,141 'window':173 'work':188 'www.python.org':179 'www.python.org/downloads/windows/':178 'x':166,171,183,186 'xl':14,58","prices":[{"id":"3c931c7a-d745-4f54-b5d5-e3adb591f141","listingId":"800a51d4-6420-4404-b5de-d02df8f1f1e4","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"agentskillexchange","category":"skills","install_from":"skills.sh"},"createdAt":"2026-05-18T13:19:37.152Z"}],"sources":[{"listingId":"800a51d4-6420-4404-b5de-d02df8f1f1e4","source":"github","sourceId":"agentskillexchange/skills/stable-diffusion-lora-training-pipeline","sourceUrl":"https://github.com/agentskillexchange/skills/tree/main/skills/stable-diffusion-lora-training-pipeline","isPrimary":false,"firstSeenAt":"2026-05-18T13:19:37.152Z","lastSeenAt":"2026-05-18T19:12:37.043Z"}],"details":{"listingId":"800a51d4-6420-4404-b5de-d02df8f1f1e4","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"agentskillexchange","slug":"stable-diffusion-lora-training-pipeline","github":{"repo":"agentskillexchange/skills","stars":8,"topics":["agent-skills","ai-agents","ai-tools","awesome-list","claude-code","codex","cursor","llm","mcp","npx-skills","openclaw","skills-catalog"],"license":"mit","html_url":"https://github.com/agentskillexchange/skills","pushed_at":"2026-05-18T19:02:17Z","description":"The open catalog of AI agent skills — 2,000+ security-scanned skills for Claude Code, Cursor, Codex, and more.","skill_md_sha":"708240636668aeeed7ccc54e8f66d9601715a333","skill_md_path":"skills/stable-diffusion-lora-training-pipeline/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/agentskillexchange/skills/tree/main/skills/stable-diffusion-lora-training-pipeline"},"layout":"multi","source":"github","category":"skills","frontmatter":{"name":"Stable Diffusion LoRA Training Pipeline","description":"Orchestrates LoRA fine-tuning for Stable Diffusion XL using the diffusers library and Kohya ss-scripts. Manages dataset preparation with BLIP-2 auto-captioning, configures AdaFactor optimizer parameters, and exports safetensors checkpoints with A1111 metadata embedding."},"skills_sh_url":"https://skills.sh/agentskillexchange/skills/stable-diffusion-lora-training-pipeline"},"updatedAt":"2026-05-18T19:12:37.043Z"}}