Kohya Training
Train LoRA and DreamBooth for Stable Diffusion with Kohya on Clore.ai
Train LoRA, Dreambooth, and full fine-tunes for Stable Diffusion using Kohya's trainer.
All examples can be run on GPU servers rented through CLORE.AI Marketplace.
Renting on CLORE.AI
Visit CLORE.AI Marketplace
Filter by GPU type, VRAM, and price
Choose On-Demand (fixed rate) or Spot (bid price)
Configure your order:
Select Docker image
Set ports (TCP for SSH, HTTP for web UIs)
Add environment variables if needed
Enter startup command
Select payment: CLORE, BTC, or USDT/USDC
Create order and wait for deployment
Access Your Server
Find connection details in My Orders
Web interfaces: Use the HTTP port URL
SSH:
ssh -p <port> root@<proxy-address>
What is Kohya?
Kohya_ss is a training toolkit for:
LoRA - Lightweight adapters (most popular)
Dreambooth - Subject/style training
Full fine-tune - Complete model training
LyCORIS - Advanced LoRA variants
Requirements
LoRA SD 1.5
6GB
RTX 3060
LoRA SDXL
12GB
RTX 3090
Dreambooth SD 1.5
12GB
RTX 3090
Dreambooth SDXL
24GB
RTX 4090
Quick Deploy
Docker Image:
Ports:
Command:
Accessing Your Service
After deployment, find your http_pub URL in My Orders:
Go to My Orders page
Click on your order
Find the
http_pubURL (e.g.,abc123.clorecloud.net)
Use https://YOUR_HTTP_PUB_URL instead of localhost in examples below.
Using the Web UI
Access at
http://<proxy>:<port>Select training type (LoRA, Dreambooth, etc.)
Configure settings
Start training
Dataset Preparation
Folder Structure
Image Requirements
Resolution: 512x512 (SD 1.5) or 1024x1024 (SDXL)
Format: PNG or JPG
Quantity: 10-50 images for LoRA
Quality: Clear, well-lit, varied angles
Caption Files
Create .txt file with same name as image:
myimage.txt:
Auto-Captioning
Use BLIP for automatic captions:
LoRA Training (SD 1.5)
Configuration
In Kohya UI:
Model
runwayml/stable-diffusion-v1-5
Network Rank
32-128
Network Alpha
16-64
Learning Rate
1e-4
Batch Size
1-4
Epochs
10-20
Optimizer
AdamW8bit
Command Line Training
LoRA Training (SDXL)
Dreambooth Training
Subject Training
Style Training
Training Tips
Optimal Settings
Network Rank
64-128
32-64
32
Network Alpha
32-64
16-32
16
Learning Rate
1e-4
5e-5
1e-4
Epochs
15-25
10-15
10-15
Avoiding Overfitting
Use regularization images
Lower learning rate
Fewer epochs
Increase network alpha
Avoiding Underfitting
More training images
Higher learning rate
More epochs
Lower network alpha
Monitoring Training
TensorBoard
Key Metrics
loss - Should decrease then stabilize
lr - Learning rate schedule
epoch - Training progress
Testing Your LoRA
With Automatic1111
Copy LoRA to:
Use in prompt:
With ComfyUI
Load LoRA node and connect to model.
With Diffusers
Advanced Training
LyCORIS (LoHa, LoKR)
Textual Inversion
Saving & Exporting
Download Trained Model
Convert Formats
Cost Estimate
Typical CLORE.AI marketplace rates (as of 2024):
RTX 3060
~$0.03
~$0.70
~$0.12
RTX 3090
~$0.06
~$1.50
~$0.25
RTX 4090
~$0.10
~$2.30
~$0.40
A100 40GB
~$0.17
~$4.00
~$0.70
A100 80GB
~$0.25
~$6.00
~$1.00
Prices vary by provider and demand. Check CLORE.AI Marketplace for current rates.
Save money:
Use the Spot market for interruptible work — about a third of servers price spot below on-demand (median ~13% off), the rest match it
Pay with CLORE tokens
Compare prices across different providers
FLUX LoRA Training
Train LoRA adapters for FLUX.1-dev and FLUX.1-schnell — the latest generation of diffusion transformer models with superior quality.
VRAM Requirements
FLUX.1-schnell
16GB
RTX 4080 / 3090
FLUX.1-dev
24GB
RTX 4090
FLUX.1-dev (bf16)
40GB+
A100 40GB
Note: FLUX uses DiT (Diffusion Transformer) architecture — training dynamics differ significantly from SD 1.5 / SDXL.
Installation for FLUX
Install PyTorch with CUDA 12.8 support:
FLUX LoRA Configuration (flux_lora.toml)
FLUX LoRA Training Command
FLUX vs SDXL: Key Differences
Learning Rate
1e-3 to 1e-4
1e-4 to 5e-5
Precision
fp16 or bf16
bf16 REQUIRED
Network Module
networks.lora
networks.lora_flux
Network Dim
32–128
8–64 (smaller)
Optimizer
AdamW8bit
Adafactor
Min VRAM
12GB
16–24GB
Architecture
U-Net
DiT (Transformer)
Learning Rate Guide for FLUX
Tip: FLUX is more sensitive to learning rate than SDXL. Start at
1e-4and reduce to5e-5if you see quality issues. For SDXL,1e-3is common — avoid this for FLUX.
Testing FLUX LoRA
Troubleshooting
OOM Error
Reduce batch size to 1
Enable gradient checkpointing
Use 8bit optimizer
Lower resolution
Poor Results
More/better training images
Adjust learning rate
Check captions match images
Try different network rank
Training Crashes
Check CUDA version
Update xformers
Reduce batch size
Check disk space
FLUX-Specific Issues
"bf16 not supported" — Use A-series (Ampere+) or RTX 30/40 series GPUs
OOM on FLUX.1-dev — Switch to FLUX.1-schnell (needs 16GB) or enable
cache_text_encoder_outputsBlurry results — Increase
network_dimto 32–64, lower learning rate to5e-5NaN loss — Disable
full_bf16, check your dataset for corrupted images
Last updated
Was this helpful?