You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`classify`| Classification model |`encode`, `classify`, `score`|
21
+
|`reward`| Reward model|`encode`|
22
22
23
-
\*The default pooler is always defined by the model.
23
+
## Pooling Tasks
24
24
25
-
!!! note
26
-
If the model's implementation in vLLM defines its own pooler, the default pooler is set to that instead of the one specified in this table.
25
+
In vLLM, we define the following pooling tasks and corresponding APIs:
26
+
27
+
| Task | APIs |
28
+
|------------|--------------------|
29
+
|`encode`|`encode`|
30
+
|`embed`|`embed`, `score`\*|
31
+
|`classify`|`classify`|
32
+
|`score`|`score`|
33
+
34
+
\*The `score` API falls back to `embed` task if the model does not support `score` task.
35
+
36
+
Each pooling model in vLLM supports one or more of these tasks according to [Pooler.get_supported_tasks][vllm.model_executor.layers.Pooler.get_supported_tasks].
37
+
38
+
By default, the pooler assigned to each task has the following attributes:
0 commit comments