Repository navigation
[release/0.4] Backport required PyTorch 2.15 pipelining fixes - #5570
Merged
Merged
Conversation
Apply process-local backports for pytorch/pytorch#199884, #200238, and #200199 when importing TorchTitan on the validated 2.15 RC. Preserve installed torch files and reject unsupported function sources before publishing replacements.
acisseJZhong
marked this pull request as ready for review
October 22, 2026 21:41
acisseJZhong
requested review from
fegin,
tianyu-l,
wconstab and
wwwjn
as code owners
October 22, 2026 21:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TorchTitan
release/0.4uses pipelining behavior missing from the inspected PyTorch 2.15 RC: core PP rejectsloss_kwarg_mbs, Dist-MoE PP cannot register metadata cleanup, and ZeroBubble with release-pinned remat fails when split backward detaches a view in place. This adds an automatically applied compatibility shim for those three upstream fixes.PyTorch PRs backported
loss_kwarg_mbs, already passed by core Titan PP training.The corresponding upstream commits are
f722f226bbcebd522c6fec3bc463b21df273cb7e,9a2d9d7b6434e9aa4e048aa8d1b76939e5fe9962, andb7442f6915a1d95412d7fab784e554053746b08d.Behavior and compatibility boundary
import torchtitan, before training constructs pipeline schedules. Users do not need to call a patch function manually.stage.py. Installed PyTorch files are not modified.torch==2.15.0+cu130, source commitdd1fefe31baf1bc8efbab6dc5291eebfb948b7bf. The version gate accepts the public version2.15.0; other public versions are left untouched.TORCHTITAN_DISABLE_TORCH_COMPAT=1before import in a fresh process to disable the shim for diagnosis.Validation
loss_kwarg_mbsfailure. With only the two API backports, ZeroBubble + Full remat reproducesCan't detach views in-place.0.4.0rc1wheel with--no-depsinto a separate directory, then imported it outside the checkout. Automatic activation, idempotence, class identity, backward alias binding, and unchanged on-disk Torch hashes passed.pre-commit run --all-files: formatting/style checks passed; global Pyrefly remains failing in files outside this diff (61 diagnostics with the shared development environment; 38 when pointed at the RC overlay). Unrelated automatic edits were restored. Static type checking does not observe the runtime-added PyTorch API.This remains a draft pending release-wheel revalidation and the full release CI matrix, including B200/Dist-MoE. No additional compiler or performance backports are included.