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 race condition in convert text to mds script #1390

Merged
merged 9 commits into from
Jul 23, 2024

Conversation

dakinggg
Copy link
Collaborator

@dakinggg dakinggg commented Jul 23, 2024

Loading tokenizers from hf also has a race condition. This PR should avoid it by prepopulating the cache from the main process.

Fails before: debug-race-9-CBEU3C
Succeeds after: debug-race-12-OaxlPc

@dakinggg dakinggg marked this pull request as ready for review July 23, 2024 21:01
@dakinggg dakinggg requested a review from a team as a code owner July 23, 2024 21:01
@dakinggg dakinggg enabled auto-merge (squash) July 23, 2024 21:10
@dakinggg dakinggg merged commit 7b160fc into mosaicml:main Jul 23, 2024
9 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.

2 participants