Skip to content

vllm.lora.layers.utils

_fully_sharded_can_replace(can_replace)

Decorator which adds the condition of fully sharded loras intended to wrap can_replace_layer()

_get_lora_device(base_layer)

Returns the device for where to place the LoRA tensors.

_not_fully_sharded_can_replace(can_replace)

Decorator which adds the condition of not using fully sharded loras intended to wrap can_replace_layer()