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

[coll] Avoid all-to-all connection. #10840

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

trivialfis
Copy link
Member

@trivialfis trivialfis commented Sep 23, 2024

  • Use a fixed tree topo for broadcast by always sending the data to the 0th node.

XGBoost always broadcast with 0th node as root anyway.

  • Reduce the amount of connections.
  • Provide n_workers as a hint to the listen call.
  • The 0th node is still connected to all the other nodes. Couldn't remove this due to bcast.
    todo:
  • check the impact on allgatherV using bcast. Switch to using ring if needed.

- Use a fixed tree topo for broadcast by always sending the data to the 0th node.

XGBoost always broadcast with 0th node as root anyway.

- Reduce the amount of connections.
@@ -155,6 +157,7 @@ Result RabitTracker::Bootstrap(std::vector<WorkerProxy>* p_workers) {
for (auto const& w : workers) {
worker_error_handles_.emplace_back(w.Host(), w.ErrorPort());
}
LOG(CONSOLE) << "[tracker]: Bootstrap " << workers.size() << " workers.";
Copy link
Member Author

Choose a reason for hiding this comment

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

Will turn this into a debug log controlled by the verbosity parameter once we have all tests done.

@trivialfis trivialfis marked this pull request as draft September 23, 2024 22:41
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.

1 participant