fix(pooling): validate BGE-M3 combined task ownership (#51823)

Signed-off-by: Zhe Li <2843409461@qq.com>
Co-authored-by: OpenAI Codex <noreply@openai.com>
This commit is contained in:
Ola
2026-08-17 10:30:35 +00:00
committed by GitHub
co-authored by OpenAI Codex
parent cc7cf71fc8
commit 95901ce70a
4 changed files with 193 additions and 18 deletions
@@ -24,6 +24,18 @@ from .protocol import IOProcessorRequest, IOProcessorResponse
logger = init_logger(__name__)
class UnsupportedCombinedTaskIOProcessor(PoolingIOProcessor):
name = "embed&token_classify"
def create_pooling_params(self, request):
raise ValueError(
"The 'embed&token_classify' pooling task is only available "
"through an IO processor plugin. Send a plugin request with "
"a 'data' field, "
"or select a concrete task with --pooler-config.task."
)
class PluginWithoutIOProcessorPlugins(PoolingIOProcessor):
# Some models, such as Terratorch (tests/models/test_terratorch.py),
# use plugin tasks in the pooler but do not use IO Processor plugins.