Drop dead hasattr guards (hisparse_coordinator, metrics_collector) (#25437)

This commit is contained in:
fzyzcjy
2026-05-16 09:19:56 +08:00
committed by GitHub
parent 0071033ff6
commit 40429248c8
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -781,7 +781,7 @@ class Scheduler(
f"{'available_cpu_mem' if self.device == 'cpu' else 'available_gpu_mem'}={avail_mem:.2f} GB"
)
if self.enable_metrics and hasattr(self, "metrics_collector"):
if self.enable_metrics:
self.metrics_collector.emit_constants(
max_total_num_tokens=self.max_total_num_tokens,
max_running_requests_under_SLO=getattr(
@@ -568,9 +568,6 @@ class ModelRunner(ModelRunnerKVCacheMixin):
self._model_update_group = {}
self._weights_send_group = {}
if not hasattr(self, "hisparse_coordinator"):
self.hisparse_coordinator = None
def _build_model_config(
self, server_args, model_path=None, model_revision=None, is_draft_model=False
):