vllm.model_executor.layers.pooler ¶
Modules:
| Name | Description |
|---|---|
abstract | |
common | |
seqwise | Poolers that produce an output aggregating all tokens in the sequence. |
special | |
tokwise | Poolers that produce an output for each token in the sequence. |
BOSEOSFilter ¶
Bases: Pooler
Filters the BOS and EOS token results from outputs.
Source code in vllm/model_executor/layers/pooler/special.py
DispatchPooler ¶
Bases: Pooler
Dispatches calls to a sub-pooler based on the pooling task.
Source code in vllm/model_executor/layers/pooler/special.py
Pooler ¶
The interface required for all poolers used in pooling models in vLLM.
Source code in vllm/model_executor/layers/pooler/abstract.py
get_pooling_updates ¶
get_pooling_updates(
task: PoolingTask,
) -> PoolingParamsUpdate
Construct the updated pooling parameters to use for a supported task.