Signed-off-by: Pr0Wh1teGivee <calvin_zhu0210@outlook.com>
Signed-off-by: weichen <calvin_zhu0210@outlook.com>
This commit is contained in:
Pr0Wh1teGivee 2025-12-03 16:22:51 +08:00 committed by weichen
parent db3e0a576e
commit 1e8b313afb
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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,