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

Avoid HF race condition #1338

Merged
merged 3 commits into from
Jul 4, 2024
Merged

Avoid HF race condition #1338

merged 3 commits into from
Jul 4, 2024

Conversation

dakinggg
Copy link
Collaborator

@dakinggg dakinggg commented Jul 3, 2024

With the latest transformers version, it seems that there is a new race condition in the hf model code, so we apply the same fix as before, of running local rank 0 first to initialize the cache.

Before the transformers bump 6/6 runs succeeded. After the transformers bump 2/5 runs succeeded (6th failed for an unrelated reason). After this PR, 6/6 succeeded.

Transformers issue here: huggingface/transformers#27421

@dakinggg dakinggg requested a review from a team as a code owner July 3, 2024 23:55
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.

thank you!

@dakinggg dakinggg merged commit 59231d3 into mosaicml:main Jul 4, 2024
10 checks passed
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.

None yet

3 participants