Compare commits

...
Author SHA1 Message Date
halleriteandGitHub 3dd3b30e75 chore(client): remove dead InferencePool.get_metrics() (#2875)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
2026-06-25 08:12:15 +02:00
2 changed files with 0 additions and 14 deletions
-7
View File
@@ -73,10 +73,6 @@ class InferencePool(Protocol):
"""Update weights on all inference servers."""
...
def get_metrics(self) -> dict[str, float]:
"""Get pool metrics."""
...
async def stop(self) -> None:
"""Stop the inference pool."""
...
@@ -141,9 +137,6 @@ class StaticInferencePool:
async def update_weights(self, weight_dir: Path | None, lora_name: str | None = None, step: int = 0) -> None:
await update_weights(self._admin_clients, weight_dir, lora_name=lora_name, step=step)
def get_metrics(self) -> dict[str, float]:
return {}
async def stop(self) -> None:
pass
-7
View File
@@ -499,10 +499,3 @@ class ElasticInferencePool:
if lora_name is None:
raise ValueError("Elastic inference pool requires LoRA training (lora_name must be set)")
await self.sync_weights(weight_dir, lora_name, step)
def get_metrics(self) -> dict[str, float]:
return {
"elastic/num_servers": self.num_servers,
"elastic/num_ready_servers": self.num_ready_servers,
"elastic/desired_step": self._desired.step,
}