Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

Commit 7cbb134

Browse files
authored
Fix backwards compatibility check (#130)
1 parent 16b8050 commit 7cbb134

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xgboost_ray/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
from xgboost_ray.util import Event, Queue, MultiActorTask, \
3434
force_on_current_node
3535

36-
if LooseVersion(ray.__version__) > LooseVersion("1.4.0"):
36+
if LooseVersion(ray.__version__) >= LooseVersion("1.5.0"):
3737
# https://github.com/ray-project/ray/pull/16437
3838
DEFAULT_PG = "default"
3939
else:
@@ -664,7 +664,7 @@ def _create_actor(
664664
checkpoint_frequency: int = 5,
665665
distributed_callbacks: Optional[Sequence[DistributedCallback]] = None
666666
) -> ActorHandle:
667-
# Send DEFAULT_PG here, which changed in Ray > 1.4.0
667+
# Send DEFAULT_PG here, which changed in Ray >= 1.5.0
668668
# If we send `None`, this will ignore the parent placement group and
669669
# lead to errors e.g. when used within Ray Tune
670670
return _RemoteRayXGBoostActor.options(

0 commit comments

Comments
 (0)