Skip to content

[precompile] Read the TORCH_VERSION a standalone artifact already carries - #194390

Closed
bobrenjc93 wants to merge 3 commits into
gh/bobrenjc93/1027/basefrom
gh/bobrenjc93/1027/head
Closed

bobrenjc93 wants to merge 3 commits into
gh/bobrenjc93/1027/basefrom
gh/bobrenjc93/1027/head

Conversation

@bobrenjc93

@bobrenjc93 bobrenjc93 commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

TORCH_VERSION has been emitted into every artifact since the format
existed, and grep finds no reader. A dynamo artifact carries Dynamo
internals in its opaque blobs, so it is locked to the build that produced it --
the docs say so and promise "a clean PrecompileError" -- but with nothing
comparing the field, a mismatch surfaced as whatever import or attribute error
happened to come first.

Compare it in the driver, beside the Python-version gate that is already there.
Deliberately not the whole of _DynamoCacheEntry.check_versions: that also
compares platform.python_version() in full, so a 3.10.14 to 3.10.15 bump
would start refusing artifacts that load today.

Test Plan:

python test/test_precompile.py
python test/dynamo/test_package.py
python test/dynamo/test_guard_serialization.py

Authored with an AI assistant.

Differential Revision: D116962603

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 200 New Failures, 3 Unrelated Failures, 1 Unclassified Failure

As of commit 8cfffbe with merge base 1b4e490 (image):

NEW FAILURES - The following jobs have failed:

UNCLASSIFIED FAILURE - DrCI could not classify the following job because the workflow did not run on the merge base. The failure 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:

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

This was referenced Aug 21, 2026
This was referenced Aug 22, 2026
[ghstack-poisoned]
[ghstack-poisoned]
@bobrenjc93

Copy link
Copy Markdown
Contributor Author

@bobrenjc93 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

1 similar comment
@bobrenjc93

Copy link
Copy Markdown
Contributor Author

@bobrenjc93 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@bobrenjc93

Copy link
Copy Markdown
Contributor Author

Superseded by the canonical precompile stack #195353-#195362; this change lives in #195362 (with the guard-drop policy half in #195360). Closing to consolidate review there. The branch is kept on GitHub.

@bobrenjc93 bobrenjc93 closed this Sep 3, 2026
@github-actions
github-actions Bot deleted the gh/bobrenjc93/1027/head branch November 12, 2026 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant