diffusion-engineering

Optimize diffusion-model architectures, training pipelines, and inference workflows for deployment.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Практическая инженерия диффузионных моделей: архитектуры, обучение, инференс, оптимизация памяти. Использовать при любых задачах с диффузионными моделями: проектирование или модификация архитектуры (UNet/DiT/Flow/Flux), выбор и настройка schedulers/samplers, дообучение (LoRA/DreamBooth/full fine-tune), оптимизация памяти (AMP/checkpointing/ZeRO/FSDP/quantization), замена или fusion текст-энкодеров (CLIP/Qwen), работа с Diffusers, отладка диффузионных пайплайнов, оценка качества (FID/CLIPScore/LPIPS), latent diffusion, VAE, guidance/CFG, rectified flow, Stable Diffusion, SDXL, Flux. Также применять при вопросах про GPU-память при обучении генеративных моделей, text-to-image пайплайны, ControlNet, multi-encoder fusion, WebDataset.

Core Features & Use Cases

  • Практические советы по архитектурам и пайплайнам для диффузионных моделей, включая настройку обучения и инференса.
  • Механизмы оптимизации памяти и производительности (AMP, checkpointing, ZeRO, FSDP, quantization) для крупных моделей.
  • Поддержка сложных сценариев с несколькими энкодерами и различными схемами условности (CLIP/Qwen, SDXL multi-encoder fusion), а также инструментов Diffusers и VAE.

Quick Start

Configure an end-to-end diffusion workflow by selecting architecture, scheduler, memory optimizations, and data pipelines for efficient training and inference.

Frequently Asked Questions about diffusion-engineering

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

FAQPage Schema
How do I optimize GPU memory when training diffusion models?

Optimize GPU memory for diffusion models using AMP, gradient checkpointing, ZeRO, FSDP, and quantization. These techniques reduce the memory footprint of large architectures during training and inference, enabling deployment on limited hardware.

What is the best way to configure a Stable Diffusion or Flux training pipeline?

Configure diffusion pipelines by selecting architectures like UNet, DiT, or Flow and applying LoRA, DreamBooth, or full fine-tuning. Use recommended schedulers, sampling strategies, and quality metrics like FID and CLIPScore for reliable results.

How does multi-encoder fusion work with CLIP and Qwen text encoders in SDXL?

Multi-encoder fusion in diffusion models combines conditioning from CLIP and Qwen text encoders to guide image generation. This approach integrates with Diffusers and VAE components to manage complex conditioning schemes across different architectures.

How do I evaluate the quality of generated images from a diffusion model?

Evaluate diffusion model image quality using standard metrics including FID, CLIPScore, and LPIPS. These evaluation-guided procedures provide repeatable assessments to ensure reliable results when modifying architectures or training pipelines.

Can I use rectified flow with latent diffusion architectures?

Rectified flow integrates with latent diffusion and VAE workflows to optimize sampling. The approach supports end-to-end pipeline configuration across UNet, DiT, and Flux architectures for efficient training and inference.

Why does my diffusion model inference pipeline produce poor results?

Poor diffusion inference results often stem from suboptimal scheduler selection, sampling strategies, or guidance/CFG settings. Debug pipelines by applying evaluation-guided procedures and adjusting text encoder or conditioning workflows.