Skip to content

[graph_trainer][aot_fx_trace][graph_pp] Add multiplexed graph coverage and DualPipeV validation - #3090

Merged
sanketpurandare merged 1 commit into
mainfrom
sanketpurandare/stack/9
Jul 2, 2026
Merged

sanketpurandare merged 1 commit into
mainfrom
sanketpurandare/stack/9

Conversation

@sanketpurandare

@sanketpurandare sanketpurandare commented Apr 24, 2026 •

Copy link
Copy Markdown
Contributor

Stacked PRs:


[graph_trainer][aot_fx_trace][graph_pp] Add multiplexed graph coverage and DualPipeV validation

Add GraphPP forward/backward multiplex graph construction and wire it into OVERLAP_F_B runtime execution. The multiplexed graph preserves the flat GraphPP calling convention, prebuilds and compiles before schedule execution, keeps FakeTensor shape metadata on the destination ShapeEnv, and validates copied backward get_attr targets instead of silently skipping missing remaps.

Harden multiplex metadata transfer by preserving raw symbolic metadata relationships, rejecting unsupported symbolic metadata, and documenting the upstream ShapeEnv transfer gap. Add multiplex unit coverage for metadata transfer, output ordering, prebuild/compile behavior, full-Inductor overlap construction, unsupported BACKWARD_INPUT overlap sub-actions, unsupported symbolic metadata, and missing get_attr remaps.

Extend DeepSeek V3 GraphPP numerics and integration coverage for DualPipeV and document the GraphPP execution contract with links to the GraphPP and CUDAGraphable GraphPP RFC issues. The numerics comparison uses eager Interleaved1F1B as the baseline because torch.compile is incompatible with the eager ZBV and DualPipeV schedules required by FlexAttention. It disables local-rank gradient clipping so schedule-dependent clip coefficients do not mask graph execution equivalence, and compares rank-local TensorBoard losses from the ranks that actually own loss so core metrics remains unchanged.

@sanketpurandare
sanketpurandare force-pushed the sanketpurandare/stack/9 branch from 81e2296 to 26db50e Compare April 24, 2026 19:53
@sanketpurandare
sanketpurandare force-pushed the sanketpurandare/stack/8 branch from 66cdfee to 7d4629c Compare April 24, 2026 19:53
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 24, 2026
@sanketpurandare
sanketpurandare changed the base branch from sanketpurandare/stack/8 to main April 30, 2026 18:15
@sanketpurandare
sanketpurandare force-pushed the sanketpurandare/stack/9 branch from 26db50e to 482d156 Compare April 30, 2026 18:15
@sanketpurandare
sanketpurandare changed the base branch from main to sanketpurandare/stack/8 April 30, 2026 18:16
@sanketpurandare
sanketpurandare changed the base branch from sanketpurandare/stack/8 to main April 30, 2026 18:41
@sanketpurandare
sanketpurandare force-pushed the sanketpurandare/stack/9 branch from 482d156 to 45e859d Compare April 30, 2026 18:41
@sanketpurandare
sanketpurandare changed the base branch from main to sanketpurandare/stack/8 April 30, 2026 18:41
@sanketpurandare
sanketpurandare changed the base branch from sanketpurandare/stack/8 to main May 4, 2026 03:05
sanketpurandare added a commit that referenced this pull request May 4, 2026
…ualPipeV

stack-info: PR: #3090, branch: sanketpurandare/stack/9
@sanketpurandare
sanketpurandare force-pushed the sanketpurandare/stack/9 branch from 45e859d to 46ad569 Compare May 4, 2026 03:05
@sanketpurandare sanketpurandare changed the title Fix autoparallel DeepSeekV3Model for Configurable build pattern [graph_trainer][aot_fx_trace][graph_pp] Multiplex Graphs and Enable DualPipeV May 4, 2026
@sanketpurandare
sanketpurandare changed the base branch from main to sanketpurandare/stack/8 May 4, 2026 03:06
@sanketpurandare
sanketpurandare changed the base branch from sanketpurandare/stack/8 to main May 4, 2026 04:38
sanketpurandare added a commit that referenced this pull request May 4, 2026
…ualPipeV

stack-info: PR: #3090, branch: sanketpurandare/stack/9
@sanketpurandare
sanketpurandare force-pushed the sanketpurandare/stack/9 branch from 46ad569 to eb66214 Compare May 4, 2026 04:38
@sanketpurandare
sanketpurandare changed the base branch from main to sanketpurandare/stack/8 May 4, 2026 04:39
@sanketpurandare
sanketpurandare force-pushed the sanketpurandare/stack/8 branch from f94c774 to 87b7453 Compare May 4, 2026 20:03
sanketpurandare added a commit that referenced this pull request May 4, 2026
…ualPipeV

stack-info: PR: #3090, branch: sanketpurandare/stack/9
@sanketpurandare
sanketpurandare force-pushed the sanketpurandare/stack/9 branch from eb66214 to 2a17915 Compare May 4, 2026 20:03
…e and DualPipeV validation

Add GraphPP forward/backward multiplex graph construction and wire it into OVERLAP_F_B runtime execution. The multiplexed graph preserves the flat GraphPP calling convention, prebuilds and compiles before schedule execution, keeps FakeTensor shape metadata on the destination ShapeEnv, and validates copied backward get_attr targets instead of silently skipping missing remaps.

Harden multiplex metadata transfer by preserving raw symbolic metadata relationships, rejecting unsupported symbolic metadata, and documenting the upstream ShapeEnv transfer gap. Add multiplex unit coverage for metadata transfer, output ordering, prebuild/compile behavior, full-Inductor overlap construction, unsupported BACKWARD_INPUT overlap sub-actions, unsupported symbolic metadata, and missing get_attr remaps.

Extend DeepSeek V3 GraphPP numerics and integration coverage for DualPipeV and document the GraphPP execution contract with links to the GraphPP and CUDAGraphable GraphPP RFC issues. The numerics comparison uses eager Interleaved1F1B as the baseline because torch.compile is incompatible with the eager ZBV and DualPipeV schedules required by FlexAttention. It disables local-rank gradient clipping so schedule-dependent clip coefficients do not mask graph execution equivalence, and compares rank-local TensorBoard losses from the ranks that actually own loss so core metrics remains unchanged.

stack-info: PR: #3090, branch: sanketpurandare/stack/9
@sanketpurandare
sanketpurandare marked this pull request as draft June 25, 2026 20:05
@sanketpurandare
sanketpurandare changed the base branch from sanketpurandare/stack/8 to main June 25, 2026 20:05
@sanketpurandare
sanketpurandare force-pushed the sanketpurandare/stack/9 branch from 864caa7 to 4d28afc Compare June 25, 2026 20:05
@sanketpurandare sanketpurandare changed the title [graph_trainer][aot_fx_trace][graph_pp] Multiplex Graphs and Enable DualPipeV [graph_trainer][aot_fx_trace][graph_pp] Add multiplexed graph coverage and DualPipeV validation Jun 25, 2026
@sanketpurandare
sanketpurandare changed the base branch from main to sanketpurandare/stack/8 June 25, 2026 20:06
@sanketpurandare
sanketpurandare marked this pull request as ready for review June 25, 2026 20:06
submartingales pushed a commit to botcanlearn/torchtitan-upstream that referenced this pull request Jun 25, 2026
…e and DualPipeV validation

Add DeepSeek V3 eager-PP baseline configs and GraphPP distributed numerics coverage for Interleaved1F1B, ZBVZeroBubble, and DualPipeV. The tests compare GraphPP against eager PP with matching microbatching and backend choices, using SDPA for schedules whose eager torch.compile path is not supported.

Extend the GraphTrainer integration matrix to cover GraphPP under regional and full Inductor, document the GraphPP execution contract, and make metrics rank selection handle DualPipeV as a V-style schedule with loss visible on rank 0.

stack-info: PR: pytorch/torchtitan#3090, branch: sanketpurandare/stack/9
@sanketpurandare sanketpurandare linked an issue Jun 26, 2026 that may be closed by this pull request
@sanketpurandare
sanketpurandare marked this pull request as draft June 26, 2026 07:30
@sanketpurandare
sanketpurandare changed the base branch from sanketpurandare/stack/8 to main June 26, 2026 07:30
@sanketpurandare
sanketpurandare force-pushed the sanketpurandare/stack/9 branch from 4d28afc to 850ff4d Compare June 26, 2026 07:30

@aditvenk aditvenk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only one last blocking concern re: transfering backed symbols from src -> dst

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/h100.8 Trigger H100.8 CI 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.

[graph_trainer] Graph-PP RFC

2 participants