vllm.pooling_params
¶
Classes:
-
LateChunkingParams–Fixed-length mean pooling before the token embedding head.
-
LateInteractionParams–Metadata for worker-side late-interaction scoring.
-
PoolingParams–API parameters for pooling models.
LateChunkingParams
¶
Bases: Struct
Fixed-length mean pooling before the token embedding head.
Requests recompute all prompt tokens, bypassing prefix cache reads. Special tokens count toward chunk boundaries and are included in chunk means, including the BOS token normally filtered from BGE-M3 token embeddings.
Attributes:
-
chunk_size(int) –Tokens per chunk, as an integer in [1, 2**63 - 1].
LateInteractionParams
¶
Bases: Struct
Metadata for worker-side late-interaction scoring.
Attributes:
-
mode(str) –- "cache_query": cache query token embeddings
- "score_doc": score a document against a cached query.
-
query_key(str) –stable key used for both DP routing and worker cache lookup.
-
query_uses(int | None) –expected number of document requests
PoolingParams
¶
Bases: Struct
API parameters for pooling models.
Attributes:
-
use_activation(bool | None) –Whether to apply activation function to the pooler outputs.
Noneuses the pooler's default, which isTruein most cases. -
dimensions(int | None) –Reduce the dimensions of embeddings if model support matryoshka representation.
-
late_chunking_params(LateChunkingParams | None) –Mean-pool contextual token states into fixed-size chunks for the token embedding task.
Methods:
-
clone–Returns a deep copy of the PoolingParams instance.