What problem does it solve?
Adding support for a new diffusion transformer (DiT) model in cache-dit requires coordinated changes across caching adapters, context parallelism, tensor parallelism, text encoder and VAE parallelism, CLI registration, and correctness testing. This Skill provides a gated, phase-by-phase workflow that prevents silent output corruption and wasted implementation effort.
Core Features & Use Cases
- Cache Integration: Guides BlockAdapter creation, ForwardPattern selection (Pattern_0 through Pattern_5), and PatchFunctor implementation for structural mismatches.
- Parallelism Planning: Provides decision charts and templates for Context Parallelism (hook-based and hybrid), Tensor Parallelism (ColwiseParallel/RowwiseParallel, GQA handling), Text Encoder Parallelism, and VAE Parallelism.
- Verification Workflow: Enforces PSNR and SSIM correctness checks against single-GPU baselines at every phase, with documented pitfalls like attention mask reordering and shard_div_attr bugs.
- Use Case: When adding support for a new model like Krea-2-Turbo, follow the TODO checklist to implement the BlockAdapter, register the generate CLI entry, add CP and TP planners, and validate each stage with PSNR > 35 dB and SSIM > 0.90 before proceeding.
Quick Start
Ask the assistant to integrate a new DiT model into cache-dit, providing the local model path and the pipeline and transformer class names with their source file paths.