ray-embedding 0.13.3__py3-none-any.whl → 0.13.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ray-embedding might be problematic. Click here for more details.

@@ -25,6 +25,7 @@ class NodeHealthTracker:
25
25
  self.bad_gpu_node_ips: Set[str] = set()
26
26
  self.lock = threading.RLock()
27
27
  replica_context = serve.get_replica_context()
28
+ self.app_name = replica_context.app_name
28
29
  self.deployment_name = replica_context.deployment
29
30
  self.replica_actor_name = replica_context.replica_id.to_full_id_str()
30
31
  self.node_ip = get_node_ip_address()
@@ -47,8 +48,9 @@ class NodeHealthTracker:
47
48
 
48
49
  async def is_bad_gpu_or_no_model_replica_on_node(self, node_ip: str):
49
50
  self.logger.info(f"Checking if node {node_ip} is marked bad or no model replica running on the node.")
50
- return (await self.is_bad_gpu_node(node_ip) or
51
- not await self.is_model_replica_running_on_node(node_ip))
51
+ is_bad_gpu_node = await self.is_bad_gpu_node(node_ip)
52
+ is_no_model_replica_running_on_node = not await self.is_model_replica_running_on_node(node_ip)
53
+ return is_bad_gpu_node or is_no_model_replica_running_on_node
52
54
 
53
55
  async def check_health(self):
54
56
  """Called periodically by Ray Serve. Used here to clean up stale node IDs."""
@@ -73,7 +75,7 @@ class NodeHealthTracker:
73
75
  f"running on node {node_ip}.")
74
76
  target_node_id = next(node["NodeID"] for node in ray.nodes() if node["Alive"] and node["NodeManagerAddress"] == node_ip)
75
77
  assert target_node_id, f"No node found with IP {node_ip}"
76
- prefixes = tuple(f"SERVE_REPLICA::{d}" for d in self.tracked_model_deployments)
78
+ prefixes = tuple(f"SERVE_REPLICA::{self.app_name}#{d}" for d in self.tracked_model_deployments)
77
79
 
78
80
  for actor in list_actors(detail=False):
79
81
  if (actor.state in ["DEPENDENCIES_UNREADY", 'PENDING_CREATION', 'ALIVE', 'RESTARTING'] and
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ray-embedding
3
- Version: 0.13.3
3
+ Version: 0.13.5
4
4
  Summary: Deploy SentenceTransformers embedding models to a ray cluster
5
5
  Author: Crispin Almodovar
6
6
  Author-email:
@@ -3,8 +3,8 @@ ray_embedding/deploy.py,sha256=2R7bQ7aPc9G8H9KVoemxum6-9YxmlXQogWbhFhuslko,3762
3
3
  ray_embedding/dto.py,sha256=lk_LuVQPq3MLIMTMddqHviYXILY6V5dvbzDJuD_D_qc,1573
4
4
  ray_embedding/embedding_model.py,sha256=P2xyXCznxXmdQBK6zodOJEMvxGVRMA8Ra3O5Qi7RCh0,6013
5
5
  ray_embedding/model_router.py,sha256=fmaeXzaAJeCemzL9nUoXfdCrU-ZaCe_29fx5ayDCTC0,6845
6
- ray_embedding/node_health.py,sha256=GH_cXYxKJ77mwFrfZgyYfyNetv-_ydAqtxuM42eOI90,4867
7
- ray_embedding-0.13.3.dist-info/METADATA,sha256=UNj1fh8x9iHFqmQLPcyeGHZxXxdAO9JvHEyPGjGlru0,1074
8
- ray_embedding-0.13.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
- ray_embedding-0.13.3.dist-info/top_level.txt,sha256=ziCblpJq1YsrryshFqxTRuRMgNuO1_tgvAAkGShATNA,14
10
- ray_embedding-0.13.3.dist-info/RECORD,,
6
+ ray_embedding/node_health.py,sha256=KV7GdSL7nWdywpQHw39Fq6S-YKHivYaJwYOyXtpZthE,5038
7
+ ray_embedding-0.13.5.dist-info/METADATA,sha256=5lXKzlCTIC1WZ7JGbsHqvychWyvlpBCg6orp_kFjwqc,1074
8
+ ray_embedding-0.13.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
+ ray_embedding-0.13.5.dist-info/top_level.txt,sha256=ziCblpJq1YsrryshFqxTRuRMgNuO1_tgvAAkGShATNA,14
10
+ ray_embedding-0.13.5.dist-info/RECORD,,