Skip to content

vllm.model_executor.layers.pooler.tokwise.poolers

Classes:

  • TokenPooler –

    A layer that pools specific information from hidden states.

TokenPooler

Bases: Pooler

A layer that pools specific information from hidden states.

This layer does the following: 1. Extracts specific tokens or aggregates data based on pooling method. 2. Postprocesses the output based on pooling head. 3. Returns structured results as PoolerOutput.