[Misc] Aligning tokwise pooler heads for consistency (#43041)

Signed-off-by: Taneem Ibrahim <taneem.ibrahim@gmail.com>
This commit is contained in:
Taneem Ibrahim
2026-05-19 06:16:42 +00:00
committed by GitHub
parent f1e3f0e6d6
commit 4a4fdabe28
4 changed files with 9 additions and 4 deletions
@@ -118,7 +118,7 @@ def pooler_for_token_classify(
pooling: TokenPoolingMethod | TokenPoolingFn | None = None,
classifier: ClassifierFn | None = None,
act_fn: PoolerActivation | None = None,
):
) -> TokenPooler:
if pooling is None:
pooling = get_tok_pooling_method(pooler_config.get_tok_pooling_type())