[Model] Standardize pooling heads (#32148)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2026-01-12 17:01:49 +00:00
committed by GitHub
parent 3f72639d36
commit 8863c2b25c
9 changed files with 182 additions and 149 deletions
+1 -4
View File
@@ -466,10 +466,7 @@ class BertWithRope(nn.Module, SupportsQuant):
)
if add_pooling_layer:
pooler_config = vllm_config.model_config.pooler_config
assert pooler_config is not None
self.pooler = BertPooler(self.config, pooler_config)
self.pooler = BertPooler(vllm_config.model_config)
else:
self.pooler = None