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

hello, i found a problem about the execution time #4

Open
Suetsumu opened this issue Oct 8, 2022 · 6 comments
Open

hello, i found a problem about the execution time #4

Suetsumu opened this issue Oct 8, 2022 · 6 comments

Comments

@Suetsumu
Copy link

Suetsumu commented Oct 8, 2022

I used the single-layer algorithm(By use __merge function to merge every layer) to run this program,then I found that the non-overlapped time is bigger than MG-WFBP algorithm.This is very right. But the time used in every iteration and epoch is less than MG-WFBP.

@shyhuai
Copy link
Collaborator

shyhuai commented Oct 8, 2022

Hi, May I know if you have reset the alpha and beta values (https://github.com/HKBU-HPML/MG-WFBP/blob/master/distributed_optimizer.py#L166) that should be evaluated from your own cluster? MG-WFBP requires this information (can use nccl-tests to estimate) to generate a merging solution that fits the cluster.

@Suetsumu
Copy link
Author

Suetsumu commented Oct 9, 2022

thanks for your reply. I will try your suggestion

@Suetsumu
Copy link
Author

I use the benchmark function (

def _benchmark_communication(self):
) to get the alpha and beta value and I found that the alpha value is almost 0.002s. The value is so big that the all layer have merge to one signer layer. I don't know why the startup speed is so slow. And I found that NCCL info show that my lab's GPUs don't support P2P.
Is it for this reason?

@shyhuai
Copy link
Collaborator

shyhuai commented Oct 10, 2022

Hi, the startup time (i.e., alpha) is quite large, so MG-WFBP tends to merge all layers into a single one. You may need to check your hardware configuration. There may be different reasons (e.g., p2p support or not, # of CPU PCIe lanes, PCIe version, etc.) causing a large latency.

@Suetsumu
Copy link
Author

this is the nccl_tests result that I used 5 NVIDIA GeForce RTX 3090.
捕获1

@Suetsumu
Copy link
Author

OK,I will check my hardware configuration. Thanks for your suggestion

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