Skip to content

Fix DeepCompile AOT kwargs patching for PyTorch >= v2.11#8024

Merged
tohtana merged 2 commits into
deepspeedai:masterfrom
tohtana:tohtana/fix/deepcompile-bw-compiler-torch211
May 25, 2026
Merged

Fix DeepCompile AOT kwargs patching for PyTorch >= v2.11#8024
tohtana merged 2 commits into
deepspeedai:masterfrom
tohtana:tohtana/fix/deepcompile-bw-compiler-torch211

Conversation

@tohtana
Copy link
Copy Markdown
Collaborator

@tohtana tohtana commented May 24, 2026

DeepCompiles breaks for PyTorch >= v2.11 because these versions can construct the AOT Autograd backend without a bw_compiler kwarg, while DeepSpeed's Inductor patch assumes that key is always present.

This PR fixes DeepCompile's AOT Autograd patch so unrelated AOT backend registrations can pass through unchanged. TestDeepCompile passes with this fix.

Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com>
@tohtana tohtana requested review from loadams and tjruwase as code owners May 24, 2026 16:32
Copy link
Copy Markdown
Collaborator

@PKUWZP PKUWZP left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for submitting the PR.

@tohtana tohtana enabled auto-merge (squash) May 25, 2026 15:56
@tohtana tohtana merged commit 510ebe5 into deepspeedai:master May 25, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants