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

Dataparallel Training #257

Merged
merged 14 commits into from
Apr 8, 2024
Merged

Dataparallel Training #257

merged 14 commits into from
Apr 8, 2024

Conversation

M-R-Schaefer
Copy link
Contributor

I have added automatic dataparallel training. It can be disabled with a config option, but otherwise training will now use all available devices. The implementation is based on Jax's sharding API.
Parallel ensemble training is not supported yet, but this can be added in the future.

@M-R-Schaefer M-R-Schaefer added the enhancement New feature or request label Apr 4, 2024
@M-R-Schaefer
Copy link
Contributor Author

I have verified that this yields speedups by using multiple CPU devices.

Comment on lines 98 to 100

# print(jax.tree_map(lambda x: x.devices(), batch))

Copy link
Contributor

Choose a reason for hiding this comment

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

comment

@M-R-Schaefer M-R-Schaefer merged commit 0b59ae2 into dev Apr 8, 2024
3 checks passed
@M-R-Schaefer M-R-Schaefer deleted the sharding branch April 8, 2024 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants