Skip to content

vllm.lora.layers.logits_processor

Classes:

LogitsProcessorWithLoRA

Bases: BaseLayerWithLoRA

LoRA wrapper for LogitsProcessor, with extra logic to handle the application of the LoRA adapter.

Parameters:

  • base_layer

    (LogitsProcessor) –

    LogitsProcessor layer

  • hidden_size

    (int) –

    hidden size of the model

  • dtype

    (dtype) –

    data type of the model

  • device

    (device) –

    device of the model

  • sharded_to_full_mapping

    (list[int] | None) –

    index mapping from sharded vocab to full vocab received from base_layer.get_sharded_to_full_mapping(). If None, no reindexing will be done.