基础包只装 CPU 版 PyTorch,NVIDIA 用户必须选 cuda 或 cuda13 附加项;AMD 需用 rocm 附加项并加 rocm7.1 索引源,Apple 需用 apple 附加项;不同模型有各自快速开始文档,训练前需按对应模型准备权重与配置。
SimpleTuner
bghiraAGPL-3.0活跃维护面向图像、视频、音频扩散模型的通用微调工具箱,支持 Stable Diffusion、Flux 等模型,帮你在自有数据上快速训练出定制生成模型。
A general fine-tuning kit geared toward image/video/audio diffusion models.
pip install simpletuner
pip install 'simpletuner[cuda]'NVIDIA 建议 RTX 3080 及以上(测试至 H200);AMD 验证 7900 XTX 24GB 与 MI300X(显存占用高于 NVIDIA);Apple 需 M3 Max 及以上、24GB+ 统一内存做 LoRA。12B+ 大模型全参需 A100-80G,LoRA 需 24G+;2B-8B 模型 LoRA 需 16G+,全参需 40G+;小于 2B 模型 12G+ 基本够用。
面向图像、视频、音频扩散模型的通用微调工具箱,默认配置友好,代码易读
面向图像、视频、音频扩散模型的通用微调工具箱,支持 Stable Diffusion、Flux 等模型,帮你在自有数据上快速训练出定制生成模型。
核心能力
- 统一流水线支持图像、视频、音频扩散模型训练
- 内置 Web UI 管理整个训练生命周期
- 支持多 GPU 分布式训练与 DeepSpeed、FSDP2 分片
- 将图像、视频、音频与文本嵌入缓存到磁盘加速训练
- 支持宽高比分桶与概念滑块 LoRA 定向控制
容易踩的坑
- v4.11.0v4.11.0 - CuTe attention by default, FP32 EMA accumulation, bugfixes最新正式版2026-10-28 · 2026-10-28 16:38 UTC
Breaking changes
- The
examplesare now sorted by model family, flavour, and VRAM levels, since the directory listing was getting to be quite long - EMA accumulation now occurs in FP32 to avoid losing small deltas that led to EMA being stuck in place or degrading
- KohakuFA-CuTe dependencies now included in
cudaandcuda13extras so thatkohakufa-cutecan be used as defaultattention_mechanism - cuDNN attention is now forcibly disabled due to ongoing correctness issues in each cudnn-frontend release
- batch sizes, repeats, and other dataset config options will override the previous checkpoints' cached values during restart
Features
- Initial Ampere (3090) performance-tuned support for CuTe attention now included
- Ada (4090, L40S) performance-tuned CuTe attention improves over previous release's speed
- VAE tiling is automatically enabled upon OOM instead of requiring the user to enable it manually and restart the trainer
- LoRA/LyCORIS adapters can now be trained using fp32 weights with option
--adapter_model_precision=no_change|fp32- This is helpful for some models like MOSS Image where bf16 LoRA/LyCORIS weights take longer to converge due to the loss of small update deltas
Bugfixes
- AnyFlow improvements for correctness and reliability (especially for MOSS Image)
- MOSS Image regional compile will no longer reach the torch dynamo cache limit by default
- REPA multiGPU training now serialises the model download + load procedure to avoid multiple processes racing to finish it first
- LyCORIS dependency is updated to fix LoKr kernel dispatch issue
What's Changed
- Organize training examples by model family, flavour, and VRAM by @bghira in https://github.com/bghira/SimpleTuner/pull/3282
- Port KohakuFA key centering and precision diagnostics by @bghira in https://github.com/bghira/SimpleTuner/pull/3283
- Keep EMA accumulation in FP32 during mixed-precision training by @bghira in https://github.com/bghira/SimpleTuner/pull/3287
- Serialize DINOv2 cache loading across REPA workers by @bghira in https://github.com/bghira/SimpleTuner/pull/3288
- Target repeated MOSS transformer blocks for regional compilation by @bghira in https://github.com/bghira/SimpleTuner/pull/3289
- Require LyCORIS 4.1.3 to fix LoKR kernel dispatch by @bghira in https://github.com/bghira/SimpleTuner/pull/3290
- Refresh Webshart caption and image metadata caches on worker reload by @bghira in https://github.com/bghira/SimpleTuner/pull/3291
- Sync CuTe attention with KohakuFA-CuTe 9280c20 by @bghira in https://github.com/bghira/SimpleTuner/pull/3293
- Optimize SM120 CuTe attention with full-width D512 tiles by @bghira in https://github.com/bghira/SimpleTuner/pull/3294
- Add SM86 Ampere support and improve Ada CuTe attention by @bghira in https://github.com/bghira/SimpleTuner/pull/3295
- Disable cuDNN SDPA to prevent nonfinite attention gradients by @bghira in https://github.com/bghira/SimpleTuner/pull/3296
- Enable VAE tiling automatically after CUDA OOM by @bghira in https://github.com/bghira/SimpleTuner/pull/3297
- Respect caption dropout in AnyFlow derivative guidance by @bghira in https://github.com/bghira/SimpleTuner/pull/3301
- Compute AnyFlow latent interpolation in FP32 by @bghira in https://github.com/bghira/SimpleTuner/pull/3300
- Add optional FP32 storage for trainable adapter parameters by @bghira in https://github.com/bghira/SimpleTuner/pull/3299
- Preserve runtime dataset settings when reloading metadata caches by @bghira in https://github.com/bghira/SimpleTuner/pull/3298
- Sync KohakuFA-CuTe forward tuning and launch-grid fixes by @bghira in https://github.com/bghira/SimpleTuner/pull/3303
- Include KohakuFA-CuTe dependencies in CUDA extras by @bghira in https://github.com/bghira/SimpleTuner/pull/3302
- merge by @bghira in https://github.com/bghira/SimpleTuner/pull/3304
Full Changelog: https://github.com/bghira/SimpleTuner/compare/v4.10.1...v4.11.0
- The
- v4.10.1v4.10.1 - KohakuFA speedup, MOSS Image flow schedule shift fix2026-10-18 · 2026-10-18 18:31 UTC
查看更新说明
Features
- MOSS Image can now train using edit / reference datasets like Krea2 or Flux can
- MOSS Image flow schedule shift now allows better training at 1024px or higher
Bugfixes
- MOSS Image batched training no longer loops over each sequence, instead running a single forward pass through the transformer
- KohakuFA CuTe attention now correctly reuses kernels across different text input (caption) lengths
What's Changed
- Add MOSS-Image edit and reference LoRA training by @bghira in https://github.com/bghira/SimpleTuner/pull/3277
- Correct MOSS-Image noise sampling and flow timestep grids by @bghira in https://github.com/bghira/SimpleTuner/pull/3278
- Batch MOSS-Image text and reference attention by @bghira in https://github.com/bghira/SimpleTuner/pull/3279
- Reuse Kohaku attention kernels across sequence lengths by @bghira in https://github.com/bghira/SimpleTuner/pull/3280
- merge by @bghira in https://github.com/bghira/SimpleTuner/pull/3281
Full Changelog: https://github.com/bghira/SimpleTuner/compare/v4.10.0...v4.10.1
- v4.10.0v4.10.0 - high-quality MOSS-Image & Flux 3 Klein training2026-10-17 · 2026-10-17 15:53 UTC
查看更新说明
Features
- MOSS-Image with VRAM-optimised configuration examples
- Flux 3 Klein Image with a distillation training adapter (assistant LoRA)
- KohakuFA attention is now set by default when
attention-cuteextra is installed
Bugfixes
- MultiGPU (FSDP2 and DDP) training correctness fixes
- WebUI metrics display and collection fixes
- VAE caching should be a little faster now with large datasets
What's Changed
- Fix Qwen-Image 2.1 FSDP metadata after model selection by @hjinnkim in https://github.com/bghira/SimpleTuner/pull/3258
- Fix rank-dependent VAE bucket geometry by @hjinnkim in https://github.com/bghira/SimpleTuner/pull/3254
- Fix redundant image resizing during VAE caching by @hjinnkim in https://github.com/bghira/SimpleTuner/pull/3255
- Document the LyCORIS 4 LoKR kernel-size workaround by @bghira in https://github.com/bghira/SimpleTuner/pull/3259
- Fix training reports with large metric and timestep histories by @bghira in https://github.com/bghira/SimpleTuner/pull/3260
- Keep Qwen Image VAE attention independent of denoiser kernel selection by @bghira in https://github.com/bghira/SimpleTuner/pull/3263
- Normalize text-file captions before training cache lookups by @bghira in https://github.com/bghira/SimpleTuner/pull/3262
- Preserve sparse evaluation metrics when downsampling training records by @bghira in https://github.com/bghira/SimpleTuner/pull/3261
- Add ComfyUI export for fused Krea2 full-matrix LoKR and DoRA by @bghira in https://github.com/bghira/SimpleTuner/pull/3264
- Support value gradient clipping under FSDP2 by @hjinnkim in https://github.com/bghira/SimpleTuner/pull/3265
- Fix LoRA and LyCORIS training under DDP and FSDP2 by @hjinnkim in https://github.com/bghira/SimpleTuner/pull/3266
- Fix LR scheduler position being overwritten on resume by @hjinnkim in https://github.com/bghira/SimpleTuner/pull/3267
- Require CaptionFlow 0.5.7 and PyTorch 2.13 by @bghira in https://github.com/bghira/SimpleTuner/pull/3269
- Keep container device-list paths out of CUDA_VISIBLE_DEVICES by @bghira in https://github.com/bghira/SimpleTuner/pull/3270
- Make automatic Kohaku attention the training default by @bghira in https://github.com/bghira/SimpleTuner/pull/3256
- Add FLUX.3 Image Klein training and image editing support by @bghira in https://github.com/bghira/SimpleTuner/pull/3271
- Preserve model-card base identity for local checkpoints by @bghira in https://github.com/bghira/SimpleTuner/pull/3272
- Fix Flux.3 Image Klein segmented checkpointing and add GPU measurements by @bghira in https://github.com/bghira/SimpleTuner/pull/3274
- Use the released FLUX.3 Klein training assistant by default by @bghira in https://github.com/bghira/SimpleTuner/pull/3275
- Add MOSS-Image Base and SFT training support by @bghira in https://github.com/bghira/SimpleTuner/pull/3273
- merge by @bghira in https://github.com/bghira/SimpleTuner/pull/3276
Full Changelog: https://github.com/bghira/SimpleTuner/compare/v4.9.3...v4.10.0
- v4.9.3v4.9.3 - high quality qwen image 2.1 training2026-10-01 · 2026-10-01 22:05 UTC
查看更新说明
Features
- Qwen Image 2.1 with high quality training assistant LoRA & quality-tuned config examples
- See this experiment log: https://huggingface.co/SimpleTuner/Qwen-Image-2.1-LoRA-experiments
- Caption-driven online assistant LoRA training method
- Shard-first aspect bucketing for webshart datasets
- Native JSON captions for webshart datasets
What's Changed
- Fix stochastic optimizer update scaling by @bghira in https://github.com/bghira/SimpleTuner/pull/3225
- Fix resolution labels for saved validation images by @bghira in https://github.com/bghira/SimpleTuner/pull/3226
- Use cached metadata-only reads for Webshart JSON captions by @bghira in https://github.com/bghira/SimpleTuner/pull/3227
- webshart native JSON caption handling by @bghira in https://github.com/bghira/SimpleTuner/pull/3224
- Add Qwen Image 2.1 support and measured VRAM presets by @bghira in https://github.com/bghira/SimpleTuner/pull/3228
- Preserve AnyFlow checkpoint RNG state and scope compilation variants by @bghira in https://github.com/bghira/SimpleTuner/pull/3229
- Add caption-driven assistant LoRA training and image generation by @bghira in https://github.com/bghira/SimpleTuner/pull/3230
- Cache Webshart VAE latents in shard-first aspect groups by @bghira in https://github.com/bghira/SimpleTuner/pull/3233
- Keep assistant frozen after bare-base regularisation targets by @bghira in https://github.com/bghira/SimpleTuner/pull/3234
- Use Ollin texture-fixed VAE for Qwen Image 2.1 by @bghira in https://github.com/bghira/SimpleTuner/pull/3235
- Fix Qwen Image 2.1 RGBA input to auxiliary feature encoders by @bghira in https://github.com/bghira/SimpleTuner/pull/3236
- Default Qwen Image 2.1 LoRA training to assistant v2 by @bghira in https://github.com/bghira/SimpleTuner/pull/3237
- Fix DINO patch features and Qwen 2.1 automatic flow shift by @bghira in https://github.com/bghira/SimpleTuner/pull/3238
- Preserve Qwen assistant opt-outs and update default coverage by @bghira in https://github.com/bghira/SimpleTuner/pull/3239
- Update Qwen Image 2.1 examples to assisted regularised REPA training by @bghira in https://github.com/bghira/SimpleTuner/pull/3240
- Fix per-rank RNG and sampler checkpoint saving under DDP by @bghira in https://github.com/bghira/SimpleTuner/pull/3241
- assistant v2 docs for qwen image 2.1 by @bghira in https://github.com/bghira/SimpleTuner/pull/3242
- perf(data): avoid repeated full-bucket scans in the sampler by @hjinnkim in https://github.com/bghira/SimpleTuner/pull/3243
- docs: add a dedicated Qwen Image 2.1 quickstart by @bghira in https://github.com/bghira/SimpleTuner/pull/3245
- merge by @bghira in https://github.com/bghira/SimpleTuner/pull/3246
- Strip filename-strategy captions to match text embed precache by @bls9707-claude in https://github.com/bghira/SimpleTuner/pull/3244
- merge by @bghira in https://github.com/bghira/SimpleTuner/pull/3247
- Use assistant v3 by default for Qwen Image 2.1 by @bghira in https://github.com/bghira/SimpleTuner/pull/3248
- merge by @bghira in https://github.com/bghira/SimpleTuner/pull/3249
New Contributors
- @bls9707-claude made their first contribution in https://github.com/bghira/SimpleTuner/pull/3244
Full Changelog: https://github.com/bghira/SimpleTuner/compare/v4.9.2...v4.9.3
- Qwen Image 2.1 with high quality training assistant LoRA & quality-tuned config examples
- v4.9.2v4.9.2 - minor bugfixes and QoL2026-09-07 · 2026-09-07 03:06 UTC
查看更新说明
What's Changed
- Round training metrics display precision by @bghira in https://github.com/bghira/SimpleTuner/pull/3194
- Allow mixed ConvRot groups in MiniMax H3 checkpoints by @bghira in https://github.com/bghira/SimpleTuner/pull/3202
- Fix conditioning masks in nested dataset directories by @bghira in https://github.com/bghira/SimpleTuner/pull/3210
- webshart: custom caption key(s) for multicaption support by @bghira in https://github.com/bghira/SimpleTuner/pull/3208
- Fix WebUI validation adapter config file paths by @bghira in https://github.com/bghira/SimpleTuner/pull/3211
- Fix validation image labels in Hugging Face model cards by @bghira in https://github.com/bghira/SimpleTuner/pull/3212
- Fix mixed bucket key types during metadata cache refresh by @bghira in https://github.com/bghira/SimpleTuner/pull/3213
- Refresh training reports before post-upload scripts by @bghira in https://github.com/bghira/SimpleTuner/pull/3214
- Require Webshart 0.5.4 for custom index caption fields by @bghira in https://github.com/bghira/SimpleTuner/pull/3215
- Honor native attention backend selection in direct SDPA calls by @bghira in https://github.com/bghira/SimpleTuner/pull/3217
- Fix checkpoint navigation in static training reports by @bghira in https://github.com/bghira/SimpleTuner/pull/3216
- Add Continue for failed local jobs and show project/run names by @bghira in https://github.com/bghira/SimpleTuner/pull/3219
- Honor low-disk policy before TorchInductor compilation by @bghira in https://github.com/bghira/SimpleTuner/pull/3220
- Run post-upload hook after local validation completes by @bghira in https://github.com/bghira/SimpleTuner/pull/3218
- merge by @bghira in https://github.com/bghira/SimpleTuner/pull/3221
Full Changelog: https://github.com/bghira/SimpleTuner/compare/v4.9.1...v4.9.2
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
SimpleTuner 💹
ℹ️ No data is sent to any third parties except through opt-in flag
report_to,push_to_hub, or webhooks which must be manually configured.
SimpleTuner is geared towards simplicity, with a focus on making the code easily understood. This codebase serves as a shared academic exercise, and contributions are welcome.
If you'd like to join our community, we can be found on Discord via Terminus Research Group. If you have any questions, please feel free to reach out to us there.
Table of Contents
Design Philosophy
- Simplicity: Aiming to have good default settings for most use cases, so less tinkering is required.
- Versatility: Designed to handle a wide range of image quantities - from small datasets to extensive collections.
- Cutting-Edge Features: Only incorporates features that have proven efficacy, avoiding the addition of untested options.
Tutorial
Please fully explore this README before embarking on the new web UI tutorial or the class command-line tutorial, as this document contains vital information that you might need to know first.
For a manually configured quick start without reading the full documentation or using any web interfaces, you can use the Quick Start guide.
For memory-constrained systems, see the DeepSpeed document which explains how to use 🤗Accelerate to configure Microsoft's DeepSpeed for optimiser state offload. For DTensor-based sharding and context parallelism, read the FSDP2 guide which covers the new FullyShardedDataParallel v2 workflow inside SimpleTuner.
For multi-node distributed training, this guide will help tweak the configurations from the INSTALL and Quickstart guides to be suitable for multi-node training, and optimising for image datasets numbering in the billions of samples.
Features
SimpleTuner provides comprehensive training support across multiple diffusion model architectures with consistent feature availability:
Core Training Features
- User-friendly web UI - Manage your entire training lifecycle through a sleek dashboard
- Multi-modal training - Unified pipeline for Image, Video, and Audio generative models
- Multi-GPU training - Distributed training across multiple GPUs with automatic optimization
- Advanced caching - Image, video, audio, and caption embeddings cached to disk for faster training
- CaptionFlow integration - Generate dataset captions from local GPUs through the Web UI job queue using bghira/CaptionFlow; see the CaptionFlow integration guide
- Aspect bucketing - Support for varied image/video sizes and aspect ratios
- Concept sliders - Slider-friendly targeting for LoRA/LyCORIS/full (via LyCORIS
full) with positive/negative/neutral sampling and per-prompt strength; see Slider LoRA guide - Memory optimization - Most models trainable on 24G GPU, many on 16G with optimizations
- DeepSpeed & FSDP2 integration - Train large models on smaller GPUs with optim/grad/parameter sharding, context parallel attention, gradient checkpointing, and optimizer state offload
- S3 training - Train directly from cloud storage (Cloudflare R2, Wasabi S3)
- EMA support - Exponential moving average weights for improved stability and quality
- Custom experiment trackers - Drop an
accelerate.GeneralTrackerintosimpletuner/custom-trackersand use--report_to=custom-tracker --custom_tracker=<name>
Multi-User & Enterprise Features
SimpleTuner includes a complete multi-user training platform with enterprise-grade features—free and open source, forever.
- Worker Orchestration - Register distributed GPU workers that auto-connect to a central panel and receive job dispatch via SSE; supports ephemeral (cloud-launched) and persistent (always-on) workers; see Worker Orchestration Guide
- SSO Integration - Authenticate with LDAP/Active Directory or OIDC providers (Okta, Azure AD, Keycloak, Google); see External Auth Guide
- Role-Based Access Control - Four default roles (Viewer, Researcher, Lead, Admin) with 17+ granular permissions; define resource rules with glob patterns to restrict configs, hardware, or providers per team
- Organizations & Teams - Hierarchical multi-tenant structure with ceiling-based quotas; org limits enforce absolute maximums, team limits operate within org bounds
- Quotas & Spending Limits - Enforce cost ceilings (daily/monthly), job concurrency limits, and submission rate limits at org, team, or user scope; actions include block, warn, or require approval
- Job Queue with Priorities - Five priority levels (Low → Critical) with fair-share scheduling across teams, starvation prevention for long-waiting jobs, and admin priority overrides
- Approval Workflows - Configurable rules trigger approval for jobs exceeding cost thresholds, first-time users, or specific hardware requests; approve via UI, API, or email reply
- Email Notifications - SMTP/IMAP integration for job status, approval requests, quota warnings, and completion alerts
- API Keys & Scoped Permissions - Generate API keys with expiration and limited scope for CI/CD pipelines
- Audit Logging - Track all user actions with chain verification for compliance; see Audit Guide
For deployment details, see the Enterprise Guide.
Model Architecture Support
SimpleTuner supports the following model families. Detailed training feature support lives in the Quickstart Guide.
| Model | Parameters | License | Commercial use |
|---|---|---|---|
| ACE-Step | 3.5B | Apache-2.0 | Yes |
| Anima | Not specified | CircleStone Labs Non-Commercial License v1.2 | No (model); outputs allowed |
| Auraflow | 6B | Apache-2.0 | Yes |
| Boogu-Image | Not specified | Apache-2.0 | Yes |
| Chroma 1 | 8.9B | Apache-2.0 | Yes |
| Cosmos2 | 2B-14B | NVIDIA Open Model License | Yes |
| Cosmos3 | 16B-65B | OpenMDW-1.1 | Yes |
| DeepFloyd IF | 0.4B-4.3B stages | DeepFloyd IF License | Abandonware |
| ERNIE-Image | Not specified | Apache-2.0 | Yes |
| Flux.1 | 8B-12B | Apache-2.0 (schnell); FLUX.1 [dev] Non-Commercial License (dev/Kontext) | Mixed by checkpoint |
| Flux.2 | 4B-32B | Apache-2.0 (klein 4B); FLUX Non-Commercial License (dev/klein 9B) | Mixed by checkpoint |
| HeartMuLa | 3B | Not specified in SimpleTuner | See upstream terms |
| HiDream | 17B (8.5B MoE) | MIT | Yes |
| Hunyuan Video | 8.3B | AGPL-3.0 | Yes (copyleft) |
| Ideogram 4 | 9B | Ideogram 4 Non-Commercial | No |
| Kandinsky 5.0 Image | 6B (lite) | MIT | Yes |
| Kandinsky 5.0 Video | 2B lite, 19B pro | MIT | Yes |
| Kwai Kolors | 2.7B | Apache-2.0 | Abandonware |
| Krea2 | Not specified | Krea 2 Community License | Yes (under $1M revenue; safeguards required) |
| LongCat Image | 6B | Apache-2.0 | Yes |
| LongCat Video | 13.6B | MIT | Yes |
| LTX Video | ~2.5B | Apache-2.0 | Yes |
| LTX Video 2 | 19B | Apache-2.0 | Yes |
| Lumina2 | 2B | Apache-2.0 | Yes |
| Mage-Flow | 4B | MIT | Yes |
| MiniMax H3 | 33B | MiniMax H3 Community License | Conditions apply (territory exclusions; authorization required in US/EU/UK/KR) |
| OmniGen | 3.8B | MIT | Yes |
| PixArt Sigma | 0.6B-0.9B | OpenRAIL++ | Yes (restricted) |
| Qwen Image | 20B | Apache-2.0 | Yes |
| Sana | 0.6B-4.8B | Apache-2.0 | Yes |
| Sana Video | 2B | Apache-2.0 | Yes |
| SD 1.x/2.x (Legacy) | 0.9B | OpenRAIL++ | Yes (restricted) |
| Stable Diffusion 3 | 2B-8B | Stability AI Community License | Yes (under $1M revenue) |
| Stable Diffusion XL | 3.5B | CreativeML OpenRAIL-M | Yes (restricted) |
| Stable Cascade (Stage C) | 1B, 3.6B prior | Not specified in SimpleTuner | Abandonware |
| Wan Video | 1.3B-14B | Apache-2.0 | Yes |
| Wan S2V | 14B | Apache-2.0 | Yes |
| Z-Image | 6B | Apache-2.0 | Yes |
| Z-Image Omni | 6B | Apache-2.0 | Yes |
| ZLab I1 | 3B | MIT | Yes |
License values are taken from SimpleTuner model helpers when available and upstream model cards/licenses for entries that were previously unspecified. Not specified in SimpleTuner means the helper does not name a license and no upstream term is summarized here; check the upstream model card before use.
Advanced Training Techniques
- TREAD - Token-wise dropout for transformer models, including Kontext training
- Masked loss training - Superior convergence with segmentation/depth guidance
- Prior regularization - Enhanced training stability for character consistency
- Gradient checkpointing - Configurable intervals for memory/speed optimization
- Loss functions - L2, Huber, Smooth L1 with scheduling support
- SNR weighting - Min-SNR gamma weighting for improved training dynamics
- Validation adapter sweeps - Temporarily attach LoRA adapters (single or JSON presets) during validation to measure adapter-only or comparison renders without touching the training loop
- External validation hooks - Swap the built-in validation pipeline or post-upload steps for your own scripts, so you can run checks on another GPU or forward artifacts to any cloud provider of your choice (details)
- AnyFlow distillation - FlowMap interval conditioning for flow-matching models with online teacher targets (guide)
- CREPA regularization - Cross-frame representation alignment for video DiTs (guide)
- LoRA I/O formats - Load/save PEFT LoRAs in standard Diffusers layout or ComfyUI-style
diffusion_model.*keys (Flux/Flux2/Lumina2/Z-Image auto-detect ComfyUI inputs)
Model-Specific Features
- Flux Kontext - Edit conditioning and image-to-image training for Flux models
- Reference-input training - Existing paired reference/edit/I2V paths for Flux Kontext, Flux.2, LTX Video 2, Qwen Edit, LongCat edit/I2V, Boogu edit, Hunyuan I2V, and Kandinsky I2I/I2V
- PixArt two-stage - eDiff training pipeline support for PixArt Sigma
- Flow matching models - Advanced scheduling with beta/uniform distributions
- HiDream MoE - Mixture of Experts gate loss augmentation
- T5 masked training - Enhanced fine details for Flux and compatible models
- QKV fusion - Memory and speed optimizations (Flux, Lumina2)
- TREAD integration - Selective token routing for most models
- Wan 2.x I2V - High/low stage presets plus a 2.1 time-embedding fallback (see Wan quickstart)
- Classifier-free guidance - Optional CFG reintroduction for distilled models
Quickstart Guides
Detailed quickstart guides are available for all supported models:
- TwinFlow Few-Step (RCGM) Guide - Enable RCGM auxiliary loss for few-step/one-step generation (flow models or diffusion via diff2flow)
- Flux.1 Guide - Includes Kontext editing support and QKV fusion
- Flux.2 Guide - NEW! Latest enormous Flux model with Mistral-3 text encoder
- Z-Image Guide - Base/Turbo LoRA with assistant adapter + TREAD acceleration
- Ideogram 4 Guide - NEW! FP8-first LoRA training with structured JSON captions
- ACE-Step Guide - NEW! Audio generation model training (text-to-music)
- HeartMuLa Guide - NEW! Autoregressive audio generation model training (text-to-audio)
- Chroma Guide - Lodestone's flow-matching transformer with Chroma-specific schedules
- Stable Diffusion 3 Guide - Full and LoRA training with ControlNet
- Stable Diffusion XL Guide - Complete SDXL training pipeline
- Auraflow Guide - Flow-matching model training
- PixArt Sigma Guide - DiT model with two-stage support
- Sana Guide - Lightweight flow-matching model
- Lumina2 Guide - 2B parameter flow-matching model
- Kwai Kolors Guide - SDXL-based with ChatGLM encoder
- LongCat-Video Guide - Flow-matching text-to-video and image-to-video with Qwen-2.5-VL
- LongCat-Video Edit Guide - Conditioning-first flavour (image-to-video)
- LongCat-Image Guide - 6B bilingual flow-matching model with Qwen-2.5-VL encoder
- LongCat-Image Edit Guide - Image editing flavour requiring reference latents
- LTX Video Guide - Video diffusion training
- Hunyuan Video 1.5 Guide - 8.3B flow-matching T2V/I2V with SR stages
- Wan Video Guide - Video flow-matching with TREAD support
- HiDream Guide - MoE model with advanced features
- Cosmos2 Guide - Multi-modal image generation
- OmniGen Guide - Unified image generation model
- Qwen Image Guide - 20B parameter large-scale training
- Stable Cascade Stage C Guide - Prior LoRAs with combined prior+decoder validation
- Kandinsky 5.0 Image Guide - Image generation with Qwen2.5-VL + Flux VAE
- Kandinsky 5.0 Video Guide - Video generation with HunyuanVideo VAE
Hardware Requirements
General Requirements
- NVIDIA: RTX 3080+ recommended (tested up to H200)
- AMD: 7900 XTX 24GB and MI300X verified (higher memory usage vs NVIDIA)
- Apple: M3 Max+ with 24GB+ unified memory for LoRA training
Memory Guidelines by Model Size
- Large models (12B+): A100-80G for full-rank, 24G+ for LoRA/Lycoris
- Medium models (2B-8B): 16G+ for LoRA, 40G+ for full-rank training
- Small models (<2B): 12G+ sufficient for most training types
Note: Quantization (int8/fp8/nf4) significantly reduces memory requirements. See individual quickstart guides for model-specific requirements.
Setup
SimpleTuner can be installed via pip for most users:
# Base installation (CPU-only PyTorch)
pip install simpletuner
# CUDA users (NVIDIA GPUs)
pip install 'simpletuner[cuda]'
# CUDA 13 / Blackwell users (NVIDIA B-series GPUs)
pip install 'simpletuner[cuda13]' --extra-index-url https://download.pytorch.org/whl/cu130
# CUDA 13 with TransformerEngine FP8 support
pip install 'simpletuner[cuda13-transformerengine]' --extra-index-url https://download.pytorch.org/whl/cu130
# ROCm users (AMD GPUs)
pip install 'simpletuner[rocm]' --extra-index-url https://download.pytorch.org/whl/rocm7.1
# Apple Silicon users (M1/M2/M3/M4 Macs)
pip install 'simpletuner[apple]'
For manual installation or development setup, see the installation documentation.
Troubleshooting
Enable debug logs for a more detailed insight by adding export SIMPLETUNER_LOG_LEVEL=DEBUG to your environment (config/config.env) file.
For performance analysis of the training loop, setting SIMPLETUNER_TRAINING_LOOP_LOG_LEVEL=DEBUG will have timestamps that highlight any issues in your configuration.
For a comprehensive list of options available, consult this documentation.