Keep Tinker inference client imports independent of training dependencies - #937
Merged
Merged
Conversation
bradhilton
force-pushed
the
thanos/tinker-inference-lazy-20260922
branch
from
September 22, 2026 20:57
a00ceac to
51d071b
Compare
(cherry picked from commit 51d071b)
bradhilton
force-pushed
the
thanos/tinker-inference-lazy-20260922
branch
from
September 22, 2026 23:45
51d071b to
aaf7410
Compare
bradhilton
marked this pull request as ready for review
September 23, 2026 13:56
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.
Importing the genuine Tinker inference client currently executes the package initializer and imports training dependencies such as
mp_actors. Resolve the three existing public exports on demand so inference imports remain usable without training extras. Requested exports still return the original objects and preserve their original import errors.This change is based on current ART main
b66b3d67, preserving its Dynamo rollout metadata, append-only argument rendering, and planner fixes. Only the Tinker initializer and four focused import-boundary regressions change.Validation: Python 3.12 AST and exact source-parity checks passed on
aaf74102. The four focused regressions are unchanged from their previously qualified versions; CI is pending on this new head. No native or provider execution was used for this rebase.