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

Weight loading after lazy loading fix #238

Merged
merged 3 commits into from
Sep 21, 2023
Merged

Weight loading after lazy loading fix #238

merged 3 commits into from
Sep 21, 2023

Conversation

michaelbenayoun
Copy link
Member

Fixes an important bug: parameters that did not play a part in parallelization for TP were not initialized from checkpoint weights.

Fixes: #232

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Copy link
Collaborator

@JingyaHuang JingyaHuang left a comment

Choose a reason for hiding this comment

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

LGTM

@michaelbenayoun michaelbenayoun merged commit f07a5c0 into main Sep 21, 2023
10 of 15 checks passed
@michaelbenayoun michaelbenayoun deleted the lazy_load_fix branch September 21, 2023 15:55
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.

All 1. weights in layer_norm in lazy loaded T5 model
4 participants