Adding support for load_state_dict with assign=True for priors of Transformed distributions#2691
Merged
Merged
Conversation
Contributor
Author
Contributor
Author
Balandat
reviewed
Dec 19, 2025
hvarfner
force-pushed
the
state_dict_assign
branch
from
December 28, 2025 13:51
6ce060b to
5c174a1
Compare
Balandat
reviewed
Jan 20, 2026
Balandat
approved these changes
Feb 10, 2026
hvarfner
force-pushed
the
state_dict_assign
branch
2 times, most recently
from
February 12, 2026 21:23
2ff825a to
e35b828
Compare
…nsformedDistributions
hvarfner
force-pushed
the
state_dict_assign
branch
from
February 18, 2026 15:59
fe04199 to
335b47b
Compare
Balandat
approved these changes
Feb 19, 2026
Balandat
enabled auto-merge
February 19, 2026 00:31
hvarfner
pushed a commit
to hvarfner/botorch
that referenced
this pull request
Feb 19, 2026
Summary:
One-line change to state_dict reating in notebook,
from `"_transformed_loc"` to f"{`BUFFERED_PREFIX}loc`"
in the tutorial to accomodate upstream gpytorch change: cornellius-gp/gpytorch#2691
Reviewed By: Balandat
Differential Revision: D93032203
hvarfner
pushed a commit
to hvarfner/botorch
that referenced
this pull request
Feb 19, 2026
Summary:
One-line change to state_dict reating in notebook,
from `"_transformed_loc"` to f"{`BUFFERED_PREFIX}loc`"
in the tutorial to accomodate upstream gpytorch change: cornellius-gp/gpytorch#2691
Reviewed By: Balandat
Differential Revision: D93032203
hvarfner
pushed a commit
to hvarfner/botorch
that referenced
this pull request
Feb 19, 2026
Summary:
One-line change to state_dict reating in notebook,
from `"_transformed_loc"` to f"{`BUFFERED_PREFIX}loc`"
in the tutorial to accomodate upstream gpytorch change: cornellius-gp/gpytorch#2691
Reviewed By: Balandat
Differential Revision: D93032203
hvarfner
pushed a commit
to hvarfner/botorch
that referenced
this pull request
Feb 19, 2026
Summary:
One-line change to state_dict reating in notebook,
from `"_transformed_loc"` to f"{`BUFFERED_PREFIX}loc`"
in the tutorial to accomodate upstream gpytorch change: cornellius-gp/gpytorch#2691
Reviewed By: Balandat
Differential Revision: D93032203
hvarfner
pushed a commit
to hvarfner/botorch
that referenced
this pull request
Feb 19, 2026
Summary:
One-line change to state_dict reating in notebook,
from `"_transformed_loc"` to f"{`BUFFERED_PREFIX}loc`"
in the tutorial to accomodate upstream gpytorch change: cornellius-gp/gpytorch#2691
Reviewed By: Balandat
Differential Revision: D93032203
hvarfner
pushed a commit
to hvarfner/botorch
that referenced
this pull request
Feb 19, 2026
Summary:
One-line change to state_dict reating in notebook,
from `"_transformed_loc"` to f"{`BUFFERED_PREFIX}loc`"
in the tutorial to accomodate upstream gpytorch change: cornellius-gp/gpytorch#2691
Reviewed By: Balandat
Differential Revision: D93032203
meta-codesync Bot
pushed a commit
to meta-pytorch/botorch
that referenced
this pull request
Feb 20, 2026
Summary: Pull Request resolved: #3188 One-line change to state_dict reating in notebook, from `"_transformed_loc"` to f"{`BUFFERED_PREFIX}loc`" in the tutorial to accomodate upstream gpytorch change: cornellius-gp/gpytorch#2691 Reviewed By: Balandat Differential Revision: D93032203 fbshipit-source-id: 5577c5200aea32e82355361fb3de08fe7ef6eced
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.
Required changes in GPytorch to unblock meta-pytorch/botorch#3080. When
load_state_dictis called withassign=True,setattris called on_transformedattributes of the prior at the pytorch level.This was not the intended use of the
_transformedattribute, but it seems like we have to enable its modification directly.