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

Add back xgboost.rabit for backwards compatibility #8408

Merged
merged 4 commits into from Nov 2, 2022

Conversation

rongou
Copy link
Contributor

@rongou rongou commented Nov 1, 2022

Closes #8406 by making xgboost.rabit available in 1.7. Also add a warning to direct users to use xgboost.collective instead.

@rongou
Copy link
Contributor Author

rongou commented Nov 1, 2022

@hcho3

return collective.get_rank()


def get_world_size() -> int:
Copy link
Member

Choose a reason for hiding this comment

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

get_world_size = collective.get_world_size

Copy link
Member

Choose a reason for hiding this comment

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

And similarly for others. Not a request for change, just suggestions.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's keep it as it is; the alternative seems less clear to me

@hcho3 hcho3 merged commit 99fa8da into dmlc:master Nov 2, 2022
hcho3 added a commit to hcho3/xgboost that referenced this pull request Nov 2, 2022
* Add back xgboost.rabit for backwards compatibility

* fix my errors

* Fix lint

* Use FutureWarning

Co-authored-by: Hyunsu Philip Cho <chohyu01@cs.washington.edu>
@hcho3
Copy link
Collaborator

hcho3 commented Nov 2, 2022

Thanks everyone!

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.

BUG: xgboost 1.7 no longer has attribute rabit
3 participants