Skip to content

Commit

Permalink
pass addition kwargs to ray init
Browse files Browse the repository at this point in the history
  • Loading branch information
akoumjian committed Dec 16, 2023
1 parent ed08b8d commit e6173ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion adam_core/ray_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


def initialize_use_ray(
num_cpus: Optional[int] = None, object_store_bytes: Optional[int] = None
num_cpus: Optional[int] = None, object_store_bytes: Optional[int] = None, **kwargs
) -> bool:
"""
Ensures we use existing local cluster, or starts new one with desired resources
Expand All @@ -34,6 +34,7 @@ def initialize_use_ray(
dashboard_host="0.0.0.0",
num_cpus=num_cpus,
object_store_memory=object_store_bytes,
**kwargs,
)

logger.info(f"Ray Resources: {ray.cluster_resources()}")
Expand Down

0 comments on commit e6173ed

Please sign in to comment.