Skip to content

DO NOT MERGE Default pre_grad_pass_timing to "late" in fbcode - #177690

Closed
frgossen wants to merge 8 commits into
gh/frgossen/14/basefrom
gh/frgossen/14/head
Closed

frgossen wants to merge 8 commits into
gh/frgossen/14/basefrom
gh/frgossen/14/head

Conversation

@frgossen

@frgossen frgossen commented Mar 17, 2026 •

Copy link
Copy Markdown
Contributor

@pytorch-bot

pytorch-bot Bot commented Mar 17, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/177690

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 10 New Failures, 5 Unrelated Failures, 2 Unclassified Failures

As of commit 7aaf342 with merge base 3e22c4a (image):

NEW FAILURES - The following jobs have failed:

UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

UNSTABLE - The following jobs are marked as unstable, possibly due to flakiness on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

frgossen added a commit that referenced this pull request Mar 17, 2026
This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

ghstack-source-id: 811004c
Pull Request resolved: #177690
@frgossen
frgossen requested review from aorenste and zou3519 March 17, 2026 21:06
@frgossen frgossen added the module: aotdispatch umbrella label for AOTAutograd issues label Mar 17, 2026
@frgossen frgossen added the topic: not user facing topic category label Mar 18, 2026

@aorenste aorenste 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.

You should either do this from the fbcode side or import into fbcode so we can make sure no internal tests fail before landing.

Comment thread torch/_inductor/config.py
Comment on lines +665 to +667
pre_grad_pass_timing: Literal["early", "late", "default"] = (
"late" if is_fbcode() else "default"
)

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.

pretty sure I saw this in another PR too :P

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sorry about the confusion. Factored this out of the other PR again so that I can test it separately before merging.

frgossen added a commit that referenced this pull request Mar 19, 2026
This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

ghstack-source-id: 8ebd7cc
Pull Request resolved: #177690
frgossen added a commit that referenced this pull request Mar 20, 2026
This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

ghstack-source-id: 7d4a731
Pull Request resolved: #177690
frgossen added a commit that referenced this pull request Mar 21, 2026
This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

ghstack-source-id: 554b228
Pull Request resolved: #177690

@zou3519 zou3519 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.

LGTM, but you're going to want to import this into fbcode first to see if anything breaks (rather than wait for this to merge and find out about it a day or two later)

frgossen added a commit that referenced this pull request Mar 24, 2026
This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

ghstack-source-id: c08cc9c
Pull Request resolved: #177690
frgossen added a commit that referenced this pull request Apr 7, 2026
This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

ghstack-source-id: 4f03148
Pull Request resolved: #177690
@frgossen frgossen added the ciflow/trunk Trigger trunk jobs on your pull request label Apr 13, 2026
@frgossen

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

frgossen added a commit that referenced this pull request May 4, 2026
This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

ghstack-source-id: 655db7d
Pull Request resolved: #177690
This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

[ghstack-poisoned]
frgossen added a commit that referenced this pull request May 4, 2026
This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

ghstack-source-id: aa8fc29
Pull Request resolved: #177690
This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

[ghstack-poisoned]
This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

[ghstack-poisoned]
frgossen added a commit that referenced this pull request May 6, 2026
This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

ghstack-source-id: c4baeb2
Pull Request resolved: #177690
This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

[ghstack-poisoned]
frgossen added a commit that referenced this pull request May 6, 2026
This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

ghstack-source-id: 832b4dd
Pull Request resolved: #177690
@frgossen
frgossen marked this pull request as draft May 6, 2026 19:12
This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

[ghstack-poisoned]
frgossen added a commit that referenced this pull request May 6, 2026
This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

ghstack-source-id: 753f50e
Pull Request resolved: #177690
…ode"

This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

[ghstack-poisoned]
@frgossen frgossen changed the title Default pre_grad_pass_timing to "late" in fbcode DO NOT MERGE Default pre_grad_pass_timing to "late" in fbcode May 13, 2026
frgossen added a commit that referenced this pull request May 13, 2026
This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

ghstack-source-id: 431b37c
Pull Request resolved: #177690
Alokksinha00 pushed a commit to Alokksinha00/pytorch that referenced this pull request May 15, 2026
This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

Pull Request resolved: pytorch#177690
Approved by: https://github.com/zou3519
Alokksinha00 pushed a commit to Alokksinha00/pytorch that referenced this pull request May 15, 2026
aperson30 pushed a commit to aperson30/pytorch that referenced this pull request Jun 20, 2026
This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

Pull Request resolved: pytorch#177690
Approved by: https://github.com/zou3519
aperson30 pushed a commit to aperson30/pytorch that referenced this pull request Jun 20, 2026
)"

This reverts commit 4f0b36e.

Reverted pytorch#177690 on behalf of https://github.com/ZainRizvi due to Sorry but this is breaking internally. See diff D102353853 for details. To validate your fixes internally, you can follow the instructions here: https://fburl.com/fixing-ghfirst-reverts ([comment](pytorch#177690 (comment)))
aperson30 pushed a commit to aperson30/pytorch that referenced this pull request Jun 20, 2026
This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

Pull Request resolved: pytorch#177690
Approved by: https://github.com/zou3519
aperson30 pushed a commit to aperson30/pytorch that referenced this pull request Jun 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions github-actions Bot added the Stale label Jul 12, 2026
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

Pull Request resolved: pytorch#177690
Approved by: https://github.com/zou3519
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

Pull Request resolved: pytorch#177690
Approved by: https://github.com/zou3519
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
)"

This reverts commit 4f0b36e.

Reverted pytorch#177690 on behalf of https://github.com/ZainRizvi due to Sorry but this is breaking internally. See diff D102353853 for details. To validate your fixes internally, you can follow the instructions here: https://fburl.com/fixing-ghfirst-reverts ([comment](pytorch#177690 (comment)))
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
This ensures pre-grad passes run after cache lookups in Meta-internal
builds, avoiding unnecessary pass execution on cache hits.

Authored with Claude.

Pull Request resolved: pytorch#177690
Approved by: https://github.com/zou3519
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autorevert: disable Disable autorevert for a specific PR ci-no-td Do not run TD on this PR ciflow/inductor ciflow/torchtitan Run TorchTitan integration tests ciflow/trunk Trigger trunk jobs on your pull request Merged module: aotdispatch umbrella label for AOTAutograd issues module: inductor Reverted Stale topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants