Repository navigation
Releases
v1.0.0 — diffusion-pipe LoRA Trainer
diffusion-pipe LoRA Trainer v1.0.0
Runpod Serverless / Hub worker that trains LoRAs with tdrussell/diffusion-pipe (Deepspeed, pipeline-parallel). Default model is SDXL (no token). Wan 2.1 1.3B/14B and Flux.1-dev are also supported (Flux needs a Hugging Face token in the worker env; never put tokens in the job input).
Image
ghcr.io/prilojject/runpod-diffusion-pipe-trainer:v1.0.0
Digest: sha256:19eff48a52066e61053e0ea200f6a19c3e3d7463bf5dae3db2248b9fbd0f6484
Upstream diffusion-pipe is pinned to SHA c114c67eef87ef3a16eb82e4bb24c8ef700c26e4.
The GHCR package must be set to Public in the GitHub Packages UI before Hub or unauthenticated pulls will work.
Smoke test
Official SDXL path on 1× RTX 4090 (ADA_24): 20 steps, 512 px, 3-image set, no samples.
- Status: completed
- Final loss: 0.1417
- LoRA:
zxowl_sdxl_lora.safetensors, 55.36 MB, Kohya format - Train loop: 34.7 s; training process: 62.2 s; job wall: 78 s
Notes
- License: GPL-3.0 (same as upstream, because of the ComfyUI submodule).
- Weights are not baked into the image. Attach a network volume to cache them under
/runpod-volume/diffusion-pipe/models/. - Single-GPU jobs launch
train.pydirectly with torch-distributed env (avoids a Deepspeed-launcher hang on Serverless). Always setsNCCL_SHM_DISABLE=1. On RTX 40-series also setsNCCL_P2P_DISABLE=1andNCCL_IB_DISABLE=1. - The image is based on
pytorch/pytorch:2.9.0-cuda12.8-cudnn9-runtime(Python 3.11.14, not 3.12).flash-attnis not included (the runtime image has no nvcc).hunyuan-videois a v1 stub. - Image build patches: skip the unused final Deepspeed checkpoint; Python 3.11-compatible
sqlite3.connectin diffusion-pipe's cache.
Docs: https://github.com/prilojject/runpod-diffusion-pipe-trainer
Pages: https://prilojject.github.io/runpod-diffusion-pipe-trainer/