Repository navigation
[precompile] End-to-end tests for the dynamo tracer's guard policy, installed mode and numerics - #195922
Closed
bobrenjc93 wants to merge 7 commits into
Closed
[precompile] End-to-end tests for the dynamo tracer's guard policy, installed mode and numerics#195922bobrenjc93 wants to merge 7 commits into
bobrenjc93 wants to merge 7 commits into
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/195922
Note: Links to docs will display an error until the docs builds have been completed. ❌ 32 New FailuresAs of commit 37f4438 with merge base 1ad121e ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This was referenced Sep 3, 2026
Closed
Closed
Closed
bobrenjc93
marked this pull request as draft
September 3, 2026 20:23
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
bobrenjc93
added a commit
that referenced
this pull request
Sep 4, 2026
…nstalled mode and numerics Tests only. The public ``tracer="dynamo"`` surface landed in the previous commit with the tests of its calling convention and its core round trips; the rest of the end-to-end coverage did not fit under the size limit there, so it lands here. These pin, through ``torch.compiler.precompile`` and ``load``: that a custom guard filter composes with the default and a drop it adds is refused as risky; that the guard-drop policy keeps every guard that discriminates -- value pins, branch flags, shapes, TYPE_MATCH, dict membership -- and drops only invariant identity guards, reported in the artifact header; that serialized guards carry no export bookkeeping or fake-tensor machinery; that a guarded non-module object prunes its unguarded attributes and an interned value never poisons the artifact; the installed serving mode's lifecycle (load installs nothing, racing first calls install once, a call racing unload cannot reinstall, unload releases the recorded backends, ``fn=`` refuses a foreign function, a missing captured module raises PrecompileError); automatic dynamic across graph breaks; eager-backend round trips through HOPs, autocast and checkpoint; kernels rendered as source with per-subgraph names; and device-generic numerics -- dynamo-tracer round trips, unbacked dynamic shapes and fx custom builtins, plus the make_fx artifact's capture-time autocast pinning -- instantiated only for CPU when no GPU is present. Three package-level tests on serving concurrency and shared inner frames are added to test_precompile_package.py for the same reason. Test Plan: ``` python test/test_precompile.py python test/dynamo/test_precompile_package.py ``` Authored with an AI assistant. ghstack-source-id: 228ef8a Pull-Request: #195922
[ghstack-poisoned]
[ghstack-poisoned]
bobrenjc93
added a commit
that referenced
this pull request
Sep 5, 2026
…nstalled mode and numerics Tests only. The public ``tracer="dynamo"`` surface landed in the previous commit with the tests of its calling convention and its core round trips; the rest of the end-to-end coverage did not fit under the size limit there, so it lands here. These pin, through ``torch.compiler.precompile`` and ``load``: that a custom guard filter composes with the default and a drop it adds is refused as risky; that the guard-drop policy keeps every guard that discriminates -- value pins, branch flags, shapes, TYPE_MATCH, dict membership -- and drops only invariant identity guards, reported in the artifact header; that serialized guards carry no export bookkeeping or fake-tensor machinery; that a guarded non-module object prunes its unguarded attributes and an interned value never poisons the artifact; the installed serving mode's lifecycle (load installs nothing, racing first calls install once, a call racing unload cannot reinstall, unload releases the recorded backends, ``fn=`` refuses a foreign function, a missing captured module raises PrecompileError); automatic dynamic across graph breaks; eager-backend round trips through HOPs, autocast and checkpoint; kernels rendered as source with per-subgraph names; and device-generic numerics -- dynamo-tracer round trips, unbacked dynamic shapes and fx custom builtins, plus the make_fx artifact's capture-time autocast pinning -- instantiated only for CPU when no GPU is present. Three package-level tests on serving concurrency and shared inner frames are added to test_precompile_package.py for the same reason. Test Plan: ``` python test/test_precompile.py python test/dynamo/test_precompile_package.py ``` Authored with an AI assistant. ghstack-source-id: c9a0eda Pull-Request: #195922
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):
Tests only. The public
tracer="dynamo"surface landed in the previouscommit with the tests of its calling convention and its core round trips;
the rest of the end-to-end coverage did not fit under the size limit there,
so it lands here. These pin, through
torch.compiler.precompileandload: that a custom guard filter composes with the default and a drop itadds is refused as risky; that the guard-drop policy keeps every guard that
discriminates -- value pins, branch flags, shapes, TYPE_MATCH, dict membership
-- and drops only invariant identity guards, reported in the artifact header;
that serialized guards carry no export bookkeeping or fake-tensor machinery;
that a guarded non-module object prunes its unguarded attributes and an
interned value never poisons the artifact; the installed serving mode's
lifecycle (load installs nothing, racing first calls install once, a call
racing unload cannot reinstall, unload releases the recorded backends,
fn=refuses a foreign function, a missing captured module raises
PrecompileError); automatic dynamic across graph breaks; eager-backend round
trips through HOPs, autocast and checkpoint; kernels rendered as source with
per-subgraph names; and device-generic numerics -- dynamo-tracer round trips, unbacked
dynamic shapes and fx custom builtins, plus the make_fx artifact's
capture-time autocast pinning -- instantiated only for CPU when no GPU is
present. Three package-level tests
on serving concurrency and shared inner frames are added to
test_precompile_package.py for the same reason.
Test Plan:
Authored with an AI assistant.