Skip to content

Commit

Permalink
wip
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 1cb5036 commit ba2c001
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vllm/model_executor/layers/pooler.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def get_pooling_type(self, pooling_type_name: str) -> PoolingType:
return PoolingType(next((value for key,
value in pooling_types if key.lower()
in pooling_type_name),
None))
2))


class Pooler(nn.Module):
Expand Down
3 changes: 2 additions & 1 deletion vllm/model_executor/models/bert.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,8 @@ def __init__(
) -> None:
super().__init__()
self.model = BertModel(config, cache_config, quant_config)
print(pooling_config)
print(pooling_config.pooling_type)
print(pooling_config.normalize)
self._pooler = Pooler(pooling_config.pooling_type,
pooling_config.normalize)

Expand Down

0 comments on commit ba2c001

Please sign in to comment.