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 crash when using --distributed #114

Merged
merged 1 commit into from
Jan 9, 2024
Merged

Conversation

bryant1410
Copy link
Contributor

The distributed mode (evaluation in parallel) uses a world size greater than 1, by definition. However, WebDataset default nodesplitter supposes that the dataset will be sharded throughout multiple nodes if using the distributed mode, which is not the case here (each node gets a different dataset). WebDataset default nodesplitter uses a sanity check for this, and the program crashes. This change substitutes the default nodesplitter function with an identity function (the same functionality as before) but without this assertion.

@mehdidc
Copy link
Collaborator

mehdidc commented Jan 9, 2024

Thanks a lot @bryant1410 for the PR ! didn't realize it was default.
merging.

@mehdidc mehdidc merged commit 3f1d126 into LAION-AI:main Jan 9, 2024
1 check passed
@bryant1410 bryant1410 deleted the patch-1 branch January 9, 2024 13:24
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