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 11.4k repo stars
Picture from the README

File contents

huggingface/diffusers commit b98aa18b61

Frequently asked questions

npx get-skill add huggingface/custom-blocks