def find_free_port(self): """Finds a free port on the current node.""" from ray.util.sgd import utils return utils.find_free_port()
def setup_address(): ip = ray.services.get_node_ip_address() port = find_free_port() return f"{ip}:{port}"
def find_free_port(self): """Finds a free port on the current node.""" return utils.find_free_port()
def setup_address(): ip = ray.util.get_node_ip_address() port = find_free_port() return f"tcp://{ip}:{port}"
def get_free_port(self): """Returns free TCP port in the current ray node""" return ray_utils.find_free_port()
def _rank0_nccl_port_init(self): ip = ray.services.get_node_ip_address() port = find_free_port() nccl_addr = "tcp://{ip}:{port}".format(ip=ip, port=port) return nccl_addr, ip, port
def setup_address(): ip = ray._private.services.get_node_ip_address() port = find_free_port() return f"tcp://{ip}:{port}"
def setup_address(): ip = ray.services.get_node_ip_address() port = find_free_port() return "tcp://{ip}:{port}".format(ip=ip, port=port)