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

load_checkpoint defaults to strict weight match #3219

Merged
merged 3 commits into from
Apr 30, 2024

Conversation

mvpatel2000
Copy link
Contributor

What does this PR do?

Trainer has an argument load_strict_model_weights which defaults to True. However, the same argument in load_checkpoint defaults to False, whereas it should be consistent with the Trainer argument.

@b-chu
Copy link
Contributor

b-chu commented Apr 29, 2024

I'm worried this breaks BC

@mvpatel2000
Copy link
Contributor Author

I'm worried this breaks BC

It is an API behavior change, but I view it as a fix which I think is sufficient. See linked github issue for motivation

Copy link
Contributor

@eracah eracah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dakinggg dakinggg merged commit d341aa0 into mosaicml:dev Apr 30, 2024
15 checks passed
j316chuck pushed a commit that referenced this pull request May 16, 2024
Co-authored-by: Daniel King <43149077+dakinggg@users.noreply.github.com>
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.

4 participants