ai-toolkit-trainer
Installation
SKILL.md
AI-Toolkit LoRA Trainer (WAN 2.2 & Z-Image)
Overview
AI-Toolkit by ostris is an MIT-licensed trainer for finetuning diffusion models. It is a standalone trainer with its own web UI, not a ComfyUI custom node. It runs a Node.js UI front end over a Python (run.py) training backend and trains LoRAs for many model families. This skill covers the WAN 2.2 / 2.1 video models and Z-Image (Turbo & Base).
- Repo:
https://github.com/ostris/ai-toolkit(cloned by the installers). - Backend:
python run.py config/<job>.yml. UI: a Node.js app underui/that schedules and monitors jobs. You do not have to keep the UI open while a job runs. - Output: a standard
.safetensorsLoRA you drop into ComfyUImodels/loras/and load withLoraLoaderModelOnly.
Best for:
- WAN LoRAs. A person or character, an art style, or a specific camera or video motion, trained from image or video clip datasets. For using WAN see wan-t2v-video / wan-flf-video.
- Z-Image LoRAs. Fast, very low-VRAM image LoRAs (faces, characters, outfits, styles) on the 6B Z-Image base/turbo. For using Z-Image see z-image-base / z-image-turbo, and the z-image-xy-plot pack to compare trained LoRAs.
For low-VRAM anime image LoRAs on a different stack (kohya sd-scripts), see the sibling anima-lora-trainer.
Two LoRA kinds for WAN. A WAN image LoRA trains on still images; it is cheaper (~24GB-class) and suits identity or style. A WAN video LoRA trains on short clips; it is heavier, best run on cloud, and suits motion. Z-Image is image-only.