Skip to content

[graph_trainer] Support DualPipeV in graph PP pipeline - #2707

Closed
xmfan wants to merge 1 commit into
xmfan/stack/27from
xmfan/stack/28
Closed

xmfan wants to merge 1 commit into
xmfan/stack/27from
xmfan/stack/28

Conversation

@xmfan

@xmfan xmfan commented Mar 24, 2026 •

Copy link
Copy Markdown
Contributor

Stacked PRs:


[graph_trainer] Support DualPipeV in graph PP pipeline

Add DualPipeV and ZBV schedule support to the graph PP pipeline:

  • Auto-detect V-schedules (DualPipeV, ScheduleZBVZeroBubble) and set
    stages_per_rank=2 for virtual stage splitting
  • Auto-enable split_dI_dW pass for V-schedules to enable zero-bubble
    scheduling where dW is interleaved with the next F
  • Add BACKWARD_INPUT/BACKWARD_WEIGHT fallback handlers that delegate to
    stage_full_backward when split dI/dW graphs are not available
  • Add OVERLAP_F_B handler using multiplexed graphs that fuse F+B into a
    single graph with interleaved compute/comm for true overlap
  • Disable donated buffers to avoid "non-empty donated buffers" error
    during AOT compilation with DualPipeV backward

Add DualPipeV and ZBV schedule support to the graph PP pipeline:

- Auto-detect V-schedules (DualPipeV, ScheduleZBVZeroBubble) and set
  stages_per_rank=2 for virtual stage splitting
- Auto-enable split_dI_dW pass for V-schedules to enable zero-bubble
  scheduling where dW is interleaved with the next F
- Add BACKWARD_INPUT/BACKWARD_WEIGHT fallback handlers that delegate to
  stage_full_backward when split dI/dW graphs are not available
- Add OVERLAP_F_B handler using multiplexed graphs that fuse F+B into a
  single graph with interleaved compute/comm for true overlap
- Disable donated buffers to avoid "non-empty donated buffers" error
  during AOT compilation with DualPipeV backward

stack-info: PR: #2707, branch: xmfan/stack/28
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