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

Dose your evaluation code support data parallelism? #11

Open
selmiss opened this issue Mar 7, 2024 · 3 comments
Open

Dose your evaluation code support data parallelism? #11

selmiss opened this issue Mar 7, 2024 · 3 comments

Comments

@selmiss
Copy link

selmiss commented Mar 7, 2024

Dose your evaluation code support data parallelism? I couldn't find any module to mteb evaluation that use DP or DDP

@selmiss selmiss changed the title Evaluation Problem Dose your evaluation code support data parallelism? Mar 7, 2024
@Muennighoff
Copy link
Collaborator

Yes it automatically uses DP via this line of code

self.model = torch.nn.DataParallel(self.model)

@selmiss
Copy link
Author

selmiss commented Mar 8, 2024

Thank you. And by the code we can only use DP or PP, can't mix using these two?

@Muennighoff
Copy link
Collaborator

Thank you. And by the code we can only use DP or PP, can't mix using these two?

Yeah only one or the other for mteb evaluation; I'm not sure if transformers supports mixing them

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