flux2-lora-training

Train LoRA adapters for FLUX.2 Klein and Qwen Image Edit 2511.

140|23|Updated Mar 28, 2026
One-click install
npx skills add https://github.com/AnastasiyaW/claude-code-config --skill flux2-lora-training
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flux2-lora-training
Source: https://github.com/AnastasiyaW/claude-code-config/tree/main/skills/ai-ml/flux2-lora-training
Command: npx skills add https://github.com/AnastasiyaW/claude-code-config --skill flux2-lora-training

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a consolidated, model-specific reference for training LoRA adapters and edit models on FLUX.2 Klein and Qwen Image Edit 2511 so engineers avoid trial-and-error when preparing datasets, choosing target modules, and tuning hyperparameters for edits, inpainting, and high-resolution training.

Core Features & Use Cases

  • Model-specific guidance: Exact LoRA target modules, VAE/latent notes, and architecture differences between FLUX.2 Klein and Qwen Image Edit 2511.
  • Edit workflows: Best practices for before/after (head swap, face swap) LoRAs, multi-reference training, trigger words placement, and zero_cond_t usage.
  • Training recipes: Recommended hyperparameters for ai-toolkit, SimpleTuner, and DiffSynth-Studio plus curriculum strategies for large resolutions and tiling approaches for seamless outputs.
  • Operational guidance: Dataset layout, known toolkit bugs and fixes, troubleshooting identity drift, and VRAM optimization tips for large-scale runs.

Quick Start

Train a LoRA to perform a head-swap edit on FLUX.2 Klein 9B using an ai-toolkit-formatted dataset with zero_cond_t enabled and the recommended lora_rank and step schedule.

Frequently Asked Questions about flux2-lora-training

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I train a LoRA for face swap edits on FLUX.2 Klein?

Train a head-swap edit LoRA on FLUX.2 Klein by preparing a VAE-aware dataset, enabling zero_cond_t, and applying recommended lora_rank and step schedules using ai-toolkit or SimpleTuner.

What is the best way to prepare datasets for Qwen Image Edit 2511 LoRA training?

Dataset preparation for Qwen Image Edit 2511 requires VAE-aware formatting and specific dataset layouts for multi-reference training, utilizing 2–3 control images to achieve stable inpainting and multi-reference edits.

Can I use DiffSynth-Studio for high-resolution FLUX.2 LoRA training?

Yes, DiffSynth-Studio supports FLUX.2 LoRA training with tiled high-resolution pipelines and curriculum strategies, allowing you to produce large-resolution outputs while optimizing VRAM for large-scale runs.

Why does identity drift occur during FLUX.2 Klein LoRA training and how do I fix it?

Identity drift during FLUX.2 Klein LoRA training often stems from incorrect trigger word placement or improper hyperparameters; troubleshooting involves adjusting target modules and following the recommended step schedules.

Does Qwen Image Edit 2511 support multi-reference training for inpainting?

Yes, Qwen Image Edit 2511 supports multi-reference training using 2–3 control images, enabling precise inpainting and multi-reference edits when configured with the correct target modules and VAE latent notes.