Train a concept LoRA on FLUX.2 Klein with AI Toolkit
This playbook shows how to fine-tune FLUX.2 Klein with multi-concept LoRA (Low-Rank Adaptation) using AI Toolkit for custom image generation on your hardware platform. Unified memory and GPU acceleration let you train and generate with the Diffusion Transformer, Qwen text encoder, and autoencoder.
Multi-concept LoRA teaches FLUX.2 Klein new concepts, characters, and styles. Trained LoRA weights drop into existing ComfyUI workflows for prototyping and experimentation. The same path supports high-resolution training and inference at 1024px and above.
You'll have a fine-tuned FLUX.2 Klein LoRA that generates images with your custom concepts and is ready for ComfyUI workflows on your hardware platform.
tjtoy toy and sparkgpu GPU) or your own datasetRequired:
Optional:
Use the matrix below to confirm your hardware platform, recommended default local settings, and whether multi-node applies.
| Hardware platform | OS | Memory | Recommended default local settings | Multi-node capable hardware |
|---|---|---|---|---|
| DGX Spark | DGX OS (Linux) | 64 GB Unified Memory | FLUX.2 Klein 4B, batch size 2 | — |
| DGX Spark | DGX OS (Linux) | 128 GB Unified Memory | FLUX.2 Klein 9B, batch size 2 | — |
Hardware requirements
Software requirements
docker --version and nvidia-smi inside a GPU containerHF_TOKEN) with access granted on the FLUX.2 Klein model card for your system8188 for ComfyUIAll required assets can be found in this playbook repository.
assets/download.sh — Downloads the FLUX.2 Klein model, Qwen text encoder, and VAE into models/assets/Dockerfile.train / assets/launch_train.sh — Build and run AI Toolkit LoRA trainingassets/config/flux2_klein_4b.yaml / assets/config/flux2_klein_9b.yaml — Define datasets and training parametersassets/Dockerfile.inference / assets/launch_comfyui.sh — Build and run ComfyUI inferenceassets/flux_data/ — Sample multi-concept datasetassets/workflows/base_flux2.json — ComfyUI workflow for base FLUX.2 Klein inferenceassets/workflows/finetuned_flux2.json — ComfyUI workflow for LoRA-conditioned inference