Skip to content

[graph_trainer] Add core graph PP infrastructure - #2704

Closed
xmfan wants to merge 1 commit into
xmfan/stack/24from
xmfan/stack/25
Closed

xmfan wants to merge 1 commit into
xmfan/stack/24from
xmfan/stack/25

Conversation

@xmfan

@xmfan xmfan commented Mar 24, 2026 •

Copy link
Copy Markdown
Contributor

Stacked PRs:


[graph_trainer] Add core graph PP infrastructure

Add pp_joint_graph_builder and CompiledPPModule, the core building
blocks for graph-based pipeline parallelism.

pp_joint_graph_builder exports a joint fwd/bwd graph, partitions it,
and applies graph PP passes (split_fsdp_collectives, split_dI_dW) to
produce subgraphs for execution via GraphPPRunner.

CompiledPPModule wraps a model for graph-based PP execution, lazily
building the PP subgraphs on first forward call and delegating to
GraphPPRunner for schedule-driven execution.

Also adds graph_pp_passes config field to GraphTrainerCompileConfig.

Add pp_joint_graph_builder and CompiledPPModule, the core building
blocks for graph-based pipeline parallelism.

pp_joint_graph_builder exports a joint fwd/bwd graph, partitions it,
and applies graph PP passes (split_fsdp_collectives, split_dI_dW) to
produce subgraphs for execution via GraphPPRunner.

CompiledPPModule wraps a model for graph-based PP execution, lazily
building the PP subgraphs on first forward call and delegating to
GraphPPRunner for schedule-driven execution.

Also adds graph_pp_passes config field to GraphTrainerCompileConfig.

stack-info: PR: #2704, branch: xmfan/stack/25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/8gpu CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant