Skip to content

Commit

Permalink
Update vllm/model_executor/layers/pooler.py default
Browse files Browse the repository at this point in the history
Co-authored-by: Cyrus Leung <[email protected]>
  • Loading branch information
flaviabeo and DarkLight1337 authored Oct 23, 2024
1 parent 349b3f2 commit f7765ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/model_executor/layers/pooler.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def get_pooling_type(self, pooling_type_name: str) -> PoolingType:
pooling_types = PoolingType.__dict__.items()
return PoolingType(
next((value for key, value in pooling_types
if key.lower() in pooling_type_name), 2))
if key.lower() in pooling_type_name), PoolingType.CLS))


class Pooler(nn.Module):
Expand Down

0 comments on commit f7765ed

Please sign in to comment.