Repository navigation
[precompile] Name the real reason a capture recorded no backends - #194428
Closed
bobrenjc93 wants to merge 2 commits into
Closed
bobrenjc93 wants to merge 2 commits into
bobrenjc93 wants to merge 2 commits into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/194428
Note: Links to docs will display an error until the docs builds have been completed. ❌ 14 New Failures, 2 Unrelated FailuresAs of commit 9745bef with merge base 1b4e490 ( NEW FAILURES - The following jobs have failed:
FLAKY - The following job failed but was likely due to flakiness present on trunk:
BROKEN TRUNK - The following job failed but was present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This was referenced Aug 22, 2026
Closed
Closed
This was referenced Aug 22, 2026
Closed
This was referenced Aug 28, 2026
Contributor
Author
|
@bobrenjc93 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
1 similar comment
Contributor
Author
|
@bobrenjc93 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Contributor
Author
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.
Stack from ghstack (oldest at bottom):
"Precompilation captured graphs but their compiled backends were never
recorded" blamed a forward-only capture and told the reader to pass
training=True. A user hit it withtraining=Truealready set, and lost a35-minute run working out that the message was wrong.
There are two causes, not one. The message described the second and asserted it.
The first -- AOTAutogradCache declining the graph, which records nothing whether
or not the backward compiles -- is the more likely one on a large model, and the
counter that distinguishes them is already being kept. Report it, and point at
the log that names the offending graph.
Two smaller things found alongside, both comments:
_capture_configsetsallow_empty_graphsso an empty graph still reachesthe artifact with its guards. It also extends the lifetime of whatever that
frame holds -- with the flag on, a weakref callback on a value the frame
captured does not fire when the caller drops its reference, which
test/dynamo/test_repros.py ReproTests.test_weakref_callbackdemonstrates.Worth knowing before capturing something large; noted where the flag is set.
And a reference to "Note [precompile dynamo training grad accumulation]", which
was never written. The sentence pointing at it already says what it needed to,
so the dangling pointer goes rather than the note arriving.
Test Plan:
No new test: the changed text is an error message whose two arms are a
counter read and prose, and the existing coverage of the error itself
(test_precompile.py's forward-only-capture cases) still passes.
Authored with an AI assistant.
Differential Revision: D117030055