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

Parallel model #3

Open
dungdx34 opened this issue Jan 25, 2021 · 2 comments
Open

Parallel model #3

dungdx34 opened this issue Jan 25, 2021 · 2 comments

Comments

@dungdx34
Copy link

I have a question: how to parallel your model using BERT?

@Hazoom
Copy link
Owner

Hazoom commented Jan 26, 2021

Hi @dungdx34
I'm not sure I fully understand your question.
What exactly do you mean by parellel the model using BERT? The architecture of the model is using BERT for each sentence in a sperate way, such that each document is processed in one pass in the feed forward, if that's what you are asking.

@dungdx34
Copy link
Author

dungdx34 commented Jan 26, 2021

Thank you for your reply!
My problem is that I want to train your model on multi-GPU, but your project does not support multi-GPU. In PyTorch, if I want a parallel model, I use torch.nn.DataParallel, example: self.model = nn.DataParallel(self.model)
Please help me!

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

No branches or pull requests

2 participants