DaSiWa TrainFlow
Portable Go wrapper around the sd-scripts and Musubi Python training stacks — train LoRAs and Textual Inversions for Anima, SDXL/Pony/Illustrious, LTX 2.3/Wan 2.2 video, and Krea 2 image models from a single embedded UI on Linux and Windows.
Install / Use
npx skills add darksidewalker/DaSiWa-TrainFlowInstalls into whichever agent you are using.
README
DaSiWa TrainFlow
Portable Go wrapper around the
sd-scriptsand Musubi Python training stacks — train LoRAs and Textual Inversions for Anima, SDXL/Pony/Illustrious, LTX 2.3/Wan 2.2 video, and Krea 2 image models from a single embedded UI on Linux and Windows.

Quick Start
Linux (with Git)
git clone --depth 1 https://github.com/darksidewalker/DaSiWa-TrainFlow.git && cd DaSiWa-TrainFlow
chmod +x TrainFlow TrainFlow_Runtime_Tool && ./TrainFlow_Runtime_Tool
Linux (without Git)
curl -L -o TrainFlow.zip https://github.com/darksidewalker/DaSiWa-TrainFlow/archive/refs/heads/main.zip
unzip TrainFlow.zip && cd DaSiWa-TrainFlow-main
chmod +x TrainFlow TrainFlow_Runtime_Tool && ./TrainFlow_Runtime_Tool
Windows PowerShell (with Git)
git clone --depth 1 https://github.com/darksidewalker/DaSiWa-TrainFlow.git; cd DaSiWa-TrainFlow
.\TrainFlow_Runtime_Tool.exe
Windows PowerShell (without Git)
Invoke-WebRequest -Uri https://github.com/darksidewalker/DaSiWa-TrainFlow/archive/refs/heads/main.zip -OutFile TrainFlow.zip
Expand-Archive TrainFlow.zip -Force; cd DaSiWa-TrainFlow-main
.\TrainFlow_Runtime_Tool.exe
The runtime tool opens at http://127.0.0.1:7870. Click Verify Runtime, then Install Requirements. Once ready, launch the trainer (./TrainFlow or .\TrainFlow.exe) — the UI opens at http://127.0.0.1:7860.
How To Use
- Set up the runtime — run the Runtime Tool, verify it, install requirements
- Pick a profile — choose your model family in the main UI
- Point to your data — select model files and dataset folders using the Browse buttons
- Configure training — set trigger word, rank, optimizer, steps — or click Auto Calc for smart defaults based on your dataset size and GPU VRAM
- Start training — watch the live log, monitor hardware, browse preview samples
- Finish — click Quit when done; your outputs are in the project folder
Support Matrix
| | Linux | Windows | |------------------------|:-----:|:-------:| | CUDA (NVIDIA GPU) | ✅ | ✅ | | ROCm (AMD GPU, Linux) | ✅ | 🟥 | | AMD GPU monitoring | ✅ | ✅ | | Portable Python runtime| ✅ | ✅ | | uv / pip installs | ✅ | ✅ | | Hardware overlay | ✅ | ✅ |
| Hardware Monitor | NVIDIA (CUDA) | AMD (Linux sysfs) | AMD (Windows WMI) | |-------------------------|:-------------:|:-----------------:|:-----------------:| | GPU utilization | ✅ | ✅ | 🟥 | | VRAM used / total | ✅ | ✅ | ✅ | | Temperature | ✅ | ✅ | 🟥 | | Power draw / limit | ✅ | ✅ | 🟥 | | CPU usage | ✅ | ✅ | ✅ | | CPU temperature | ✅ | ✅ | ✅ | | RAM usage | ✅ | ✅ | ✅ |
Feature Matrix
| Feature | Anima | SDXL / Pony / Illustrious | LTX 2.3 Video | Wan 2.2 Video | Krea 2 Image | |----------------------------------|:-----:|:-------------------------:|:-------------:|:-------------:|:------------:| | LoRA training | ✅ | ✅ | ✅ | ✅ | ✅ | | Textual Inversion | ✅ | ✅ | 🟥 | 🟥 | 🟥 | | Auto Calc (profile-aware) | ✅ | ✅ | ✅ | ✅ | ✅ | | Training previews (enabled by default) | ✅ | ✅ | ✅ | ✅ | ✅ | | Dynamic multi-prompt sampling | ✅ | ✅ | ✅ | ✅ | ✅ | | Resume from state | ✅ | ✅ | ✅ | ✅ | ✅ | | Prodigy optimizer | ✅ | ✅ | ✅ | ✅ | ✅ | | AdamW / AdamW8bit | ✅ | ✅ | ✅ | ✅ | ✅ | | Flash Attention | ✅ | 🟥 | 🟥 | 🟥 | 🟥 | | torch.compile | ✅ | 🟥 | 🟥 | 🟥 | 🟥 | | FP8 base / scaled | 🟥 | 🟥 | ✅ | ✅ | ✅ | | Native FP8 checkpoint detection | 🟥 | 🟥 | ✅ | ✅ | ✅ | | Block swap + pinned memory | 🟥 | 🟥 | ✅ | ✅ | ✅ | | H2D-only LoRA block swap | 🟥 | 🟥 | ✅ | ✅ | ✅ | | VRAM-based batch sizing | ✅ | ✅ | ✅ | ✅ | ✅ | | Metadata (author + tags) | ✅ | ✅ | ✅ | ✅ | ✅ | | Text/latent caching | 🟥 | 🟥 | ✅ | ✅ | ✅ | | Video normalization | 🟥 | 🟥 | ✅ | ✅ | 🟥 | | Managed model download | ✅ | 🟥 | 🟥 | 🟥 | ✅ |
✅ Supported — 🟥 Not applicable or not supported
Training Profiles
| Profile | Model Files | Network Module | Bucket Step | Pipeline |
|---------|-------------|----------------|-------------|----------|
| Anima | DiT + Qwen3 + VAE | networks.lora_anima | 64px | sd-scripts |
| SDXL / Pony / Illustrious | checkpoint (+ optional VAE) | networks.lora | 32px | sd-scripts |
| LTX 2.3 | checkpoint + Gemma encoder | networks.lora_ltx2 | 16px | Musubi video |
| Wan 2.2 | DiT + T5 + VAE | networks.lora_wan | 16px | Musubi video |
| Krea 2 | RAW DiT + Qwen3-VL + Qwen-Image VAE | networks.lora_krea2 | 32px | Musubi image |
Auto Calc reads your profile and dataset count, then picks rank, learning rates, batch size, gradient accumulation, steps, and save/sample intervals — all tuned to your available VRAM. It preserves your chosen optimizer (Prodigy stays at lr=1.0 constant; AdamW/AdamW8bit stay at 1e-4 cosine).
Features At A Glance
Embedded Training GUI
Single portable binary, no separate web build step. Everything runs from one download:
- Colored profile switcher for all five model families
- Local file browser for datasets, models, and resume paths
- Settings autosaved to
training/settings.json - Optimizer-aware defaults (Prodigy, AdamW8bit, AdamW)
- Full training controls: rank, alpha, learning rates, batch, grad accum, steps, intervals
- SDXL-specific UNet/text-encoder LR fields and UNet-only toggle
- Optional Flash Attention and torch.compile (Anima)
- Multi-prompt sample generation with color-coded prompts
- Training preview toggle (on by default, configurable per session)
- Resume panel with automatic latest-state discovery
- Live training log streamed in real time
- Preview gallery with image overlay
- Output button to open the project output folder
Dataset Preparation
- WD EVA02 ONNX tagging/captioning
- Combined Tag + Resize workflow with configurable thresholds
- Resize-copy helper (
training/prepared/<project>) - Video normalization pipeline: resolution, FPS, duration, codec, quality, parallel workers, speed control, skip frames
- Automatic Musubi dataset TOML generation with text/latent cache rebuild triggers
Runtime & Model Management
- Companion Runtime Tool at
http://127.0.0.1:7870 - Verify, update, and install Python runtime dependencies (uv-first with pip fallback)
- Download Anima base models and Krea 2 runtime models directly from the UI
- Download prep assets (WD tagger, U2Net)
- PyTorch backend selector: CUDA 12.4 default, experimental ROCm 6.4, or existing user-managed install
- GPU auto-detection with vendor badge in the header
- Vendor-colored backend panel (green NVIDIA/CUDA, orange AMD/ROCm) with mismatch warnings
- Platform-specific portable Python (no system Python required)
Hardware Monitoring Overlay
Compact real-time display inside the sampler panel:
- CPU usage, RAM usage, CPU tem
Related Skills
qqbot-channel
385.5kQQ channel management skill. Use qqbot_channel_api for explicit QQ channel-management requests; confirm write, delete, and bulk actions before calling authenticated QQ Open Platform endpoints.
docs-writer
106.4kAlways use this skill when the task involves writing, reviewing, or editing files in the `/docs` directory or any `.md` files in the repository.
cpp
40.5kGuide Cursor to write modern C++ and CMake code with clear structure, RAII, const-correctness, and safe error handling.
gamemaker-gml
40.5kGameMaker Language (GML) rules for scripts, objects, events, rooms, data structures, and performance-minded game code
