mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-03-27 10:37:03 +08:00
linting
Signed-off-by: Pr0Wh1teGivee <calvin_zhu0210@outlook.com> Signed-off-by: weichen <calvin_zhu0210@outlook.com>
This commit is contained in:
parent
db3e0a576e
commit
1e8b313afb
@ -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
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user