Repository navigation
[precompile] Diagnostics, and the save() checkpoint entry point - #195928
Closed
bobrenjc93 wants to merge 59 commits into
Closed
bobrenjc93 wants to merge 59 commits into
bobrenjc93 wants to merge 59 commits into
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/195928
Note: Links to docs will display an error until the docs builds have been completed. This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This was referenced Sep 3, 2026
Closed
Closed
Closed
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
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):
The report a caller gets when something cannot ship now names the actual
problem. The risky-drop warning is grouped by guard type and capped per type,
so the shape-bearing drops (SEQUENCE_LENGTH, CONSTANT_MATCH, TYPE_MATCH and
friends) lead the report instead of hiding behind hundreds of CLOSURE_MATCH
identity slots, and it says that a guard reached through a class or function
definition is a compile-time constant that cannot differ at serve time. A
missing compiled backend reports the recorded/total split rather than "never
recorded", and a backend that records nothing serializable (aot_eager) says so
instead of reading as a defect in the model. A serve-time recompile of an
installed artifact is counted (PrecompiledCallable.serve_time_compiles) and
said out loud once per graph, identified by compile id, backend id and the
first traced user line so continuations in a resume chain can be told apart;
the generated banner describes the serving mode it was emitted for. The
bypassed-entry diagnostic in _reject_uninstallable_entry fires from the
empty-frames state, which is what production actually produces, since
_multigraph_frames drops bypassed codes.
This commit also lands
cap.save(): callable inside the capture block tocheckpoint everything captured so far to the two on-disk files without ending
the session, so a training loop can rewrite the artifact partway rather than
only at block exit. save() re-renders over the same capture session the exit
path uses, so exit stays the single place the artifact is finalized; a gate
refusal (the DynamoTracer
require_*fields) or a write error raises butleaves the previous files intact and the capture open.
Test Plan:
Authored with an AI assistant.
[no ci]