[Bugfix] Honor STEP token pooling in DispatchPooler.for_seq_cls (#55307)

Signed-off-by: weihan <130119942+krsish@users.noreply.github.com>
This commit is contained in:
weihan
2026-09-08 04:13:09 +00:00
committed by GitHub
parent 7fa2c63796
commit 9ea8f3ffc3
3 changed files with 73 additions and 47 deletions
+1 -2
View File
@@ -19,7 +19,7 @@ from .seqwise import (
pooler_for_classify,
pooler_for_embed,
)
from .tokwise import AllPool, pooler_for_token_classify, pooler_for_token_embed
from .tokwise import pooler_for_token_classify, pooler_for_token_embed
class DispatchPooler(Pooler):
@@ -46,7 +46,6 @@ class DispatchPooler(Pooler):
{
"token_classify": pooler_for_token_classify(
pooler_config,
pooling=AllPool(),
classifier=classifier,
),
"classify": pooler_for_classify(