Skip to content

Commit

Permalink
Make normalize variable return bool value
Browse files Browse the repository at this point in the history
Signed-off-by: Flavia Beo <[email protected]>
  • Loading branch information
flaviabeo committed Oct 21, 2024
1 parent 0d6123a commit 0546a0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vllm/transformers_utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,10 @@ def get_pooling_config(model, revision='main'):
pooling = next((item for item in modules_dict if
item["type"] == "sentence_transformers.models.Pooling"),
None)
normalize = next((item for item in modules_dict if
normalize = bool(next((item for item in modules_dict if
item["type"] ==
"sentence_transformers.models.Normalize"),
False)
False))

if pooling:

Expand Down

0 comments on commit 0546a0c

Please sign in to comment.