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 multi gpu training via Dataparallel #234

Merged
merged 1 commit into from Jul 15, 2020
Merged

Conversation

tholor
Copy link
Member

@tholor tholor commented Jul 15, 2020

When calling FARMReader.train() with multiple GPUs using DataParallel, we were running into an error because we apply DataParallel twice(!). Once when initializing the FARMReader (so that we can use Dataparallel for inference), and then again in train() when we call initialize_optimizer().

This is a quick fix, but we should fix it upstream in FARM (e.g. by adding a check in optimize_model() and avoid applying DataParallel there if it was already done before).

Fixing #224

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

2 participants