From 1e8b313afb2d6e09039f3221bf98785e9c9aa6d9 Mon Sep 17 00:00:00 2001 From: Pr0Wh1teGivee Date: Wed, 3 Dec 2025 16:22:51 +0800 Subject: [PATCH] linting Signed-off-by: Pr0Wh1teGivee Signed-off-by: weichen --- vllm/v1/core/sched/policy/normalized_scorer.py | 7 ++++++- vllm/v1/core/sched/policy/weighted_score_softer.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/vllm/v1/core/sched/policy/normalized_scorer.py b/vllm/v1/core/sched/policy/normalized_scorer.py index 6929c611d9475..d44738068ee56 100644 --- a/vllm/v1/core/sched/policy/normalized_scorer.py +++ b/vllm/v1/core/sched/policy/normalized_scorer.py @@ -70,7 +70,12 @@ class NormalizedScorer: score = self._sigmoid_normalize( dim_value, dim_info.median, dim_info.norm_scale ) - logger.debug(f"{dim_info.name}({dim_info.reverse}) : {score:.10f}") + logger.debug( + "%s(%s) : %.10f", + dim_info.name, + dim_info.reverse, + score + ) # Weighted summation. final_score += score * dim_info.weight diff --git a/vllm/v1/core/sched/policy/weighted_score_softer.py b/vllm/v1/core/sched/policy/weighted_score_softer.py index 3280a15c7a32b..4828559d27695 100644 --- a/vllm/v1/core/sched/policy/weighted_score_softer.py +++ b/vllm/v1/core/sched/policy/weighted_score_softer.py @@ -8,7 +8,7 @@ from vllm.v1.core.sched.policy.normalized_scorer import TimeAndLengthScorer TimeAndLengthScorer_Instance = None -if TimeAndLengthScorer_Instance == None: +if TimeAndLengthScorer_Instance is None: TimeAndLengthScorer_Instance = TimeAndLengthScorer( time_median=5, time_weight=0.5,