Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimizer now load the state dict and clone it's state automatically #1041

Merged
merged 1 commit into from
May 15, 2023

Conversation

dfalbel
Copy link
Member

@dfalbel dfalbel commented May 12, 2023

Fix #1028

@sebffischer In this PR we are making opt$load_state_dict() automatically avoid keeping references to the state_dict it's loading on.

@dfalbel dfalbel merged commit 8a3b5b3 into main May 15, 2023
@dfalbel dfalbel deleted the load-state-dict2 branch May 15, 2023 09:08
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.

Clone method for optimizer
1 participant