Skip to content

Support workflows on conditional pipeline blocks#14238

Draft
yiyixuxu wants to merge 1 commit into
mainfrom
modular-subblock-workflows
Draft

Support workflows on conditional pipeline blocks#14238
yiyixuxu wants to merge 1 commit into
mainfrom
modular-subblock-workflows

Conversation

@yiyixuxu

Copy link
Copy Markdown
Collaborator

this PR:

  • Move available_workflows/get_workflow from SequentialPipelineBlocks to the ModularPipelineBlocks base.
  • sub-blocks (e.g. encoders/core-denoise/decode) can now opt in with a _workflow_map using the same workflow names as the final blockset
  • refactored flux2's vae encoder and core denoise steps as example
  • adds a new tester mixin check test_sub_block_workflow_map that asserts each opted-in sub-block resolves every workflow to the same blocks as the top-level expected_workflow_blocks entries under its path.

Move available_workflows/get_workflow from SequentialPipelineBlocks to
the ModularPipelineBlocks base — they only need _workflow_map and
get_execution_blocks, which ConditionalPipelineBlocks also has. Auto
sub-blocks (encoders/core-denoise/decode) can now opt in with a
_workflow_map using the same workflow names as the final blockset;
flux2's vae encoder and core denoise steps demonstrate. A new tester
mixin check (test_sub_block_workflow_map) asserts each opted-in
sub-block resolves every workflow to the same blocks as the top-level
expected_workflow_blocks entries under its path.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions github-actions Bot added size/M PR with diff < 200 LOC tests modular-pipelines labels Jul 19, 2026
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@yiyixuxu
yiyixuxu marked this pull request as draft July 19, 2026 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants