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

Fix HF local module copy contention with a meta init on local rank 0 #710

Merged
merged 7 commits into from
Nov 2, 2023

Conversation

dakinggg
Copy link
Collaborator

@dakinggg dakinggg commented Nov 2, 2023

Tested on the workload that failed, and it successfully made it through checkpoint loading and into eval 7/7 times.

@dakinggg dakinggg changed the title Dummy init Fix HF local module copy contention with a meta init on local rank 0 Nov 2, 2023
@dakinggg dakinggg marked this pull request as ready for review November 2, 2023 15:44
Copy link
Contributor

@irenedea irenedea left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for this fix!

llmfoundry/models/hf/hf_causal_lm.py Show resolved Hide resolved
@mosaicml mosaicml deleted a comment from j316chuck Nov 2, 2023
Copy link
Contributor

@j316chuck j316chuck left a comment

Choose a reason for hiding this comment

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

Thank you!

@dakinggg dakinggg merged commit 6c41241 into mosaicml:main Nov 2, 2023
12 checks passed
@dakinggg dakinggg deleted the dummy-init branch December 11, 2023 23:44
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.

3 participants