Custom Blocks

Use when the user has written (or wants to write) a `ModularPipelineBlocks` subclass in a local Python file and needs to package it into a Hub-uploadable directory. Covers the workflow from a single `block.py` file to a published custom-block repo that consumers can load via `ModularPipeline.from_pretrained(<repo>, trust_remote_code=True)`.

Hugging Face Updated 10.8k repo stars

File contents

huggingface/diffusers/tree/main/.ai/skills/custom-blocks commit b98aa18b61

Frequently asked questions

npx skillmds@latest add huggingface/custom-blocks