Skip to content

Check if models are detached#494

Merged
CompRhys merged 5 commits intomainfrom
check-detached
Mar 5, 2026
Merged

Check if models are detached#494
CompRhys merged 5 commits intomainfrom
check-detached

Conversation

@CompRhys
Copy link
Member

@CompRhys CompRhys commented Mar 5, 2026

Move to external posture undermined by memory issues of several local interfaces potentially not detaching tensors.

default is set here to not break CI for others using the testing utils we provide at this point.

@CompRhys CompRhys requested a review from orionarcher March 5, 2026 00:12
@CompRhys CompRhys enabled auto-merge (squash) March 5, 2026 00:49
@CompRhys CompRhys merged commit 2d6799d into main Mar 5, 2026
67 checks passed
@CompRhys CompRhys deleted the check-detached branch March 5, 2026 00:56
CompRhys added a commit that referenced this pull request Mar 5, 2026
@orionarcher
Copy link
Collaborator

Is the intent here to add retain_graph as a formal part of the ModelInterface?

@CompRhys
Copy link
Member Author

CompRhys commented Mar 5, 2026

Is the intent here to add retain_graph as a formal part of the ModelInterface?

Not really, I added it in #488 to the pairwise to allow the diff-sim tutorial to work. It's a sort of reasonable kwarg name to use for that but more a "secret menu" thing. This PR was mostly in response to #491. It does seem reasonable to set the default behavior that results should be detached and then there should be some way for people to hack around that if they really want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants