What it does
Guide the end-to-end work of adding a model or pipeline to diffusers. This includes planning the file structure, implementing model components, converting pretrained weights, adding tests, and preparing documentation. It also covers comparing results with the original implementation using the same inputs and weights to check whether the calculations match.
When it helps
Use it when adding a new model, moving an existing pipeline to modular format, or converting weights for a new version of an already supported model. If a model has several workflows, the skill helps agree on an implementation order and handle them one at a time. Modular format is the default option to consider for a new pipeline.
Example requests
- “Integrate this model into diffusers and compare its results with the original implementation.”
- “Convert this existing pipeline to modular format.”
Notes
Before implementation, gather the reference repository, a runnable inference script, and any setup details such as dependencies or checkpoints, then confirm the plan. Numerical comparison uses CPU and float32, with a maximum difference below 1e-3 as the target. The comparison script imports the reference implementation and is for internal verification; do not include it in the pull request. Prepare separate model or pipeline tests for submission.
This overview was written by AI (OpenAI Codex) from the public SKILL.md. Check the original below for the exact behavior.