Skip to content

vllm.lora.worker_manager

Classes:

LRUCacheWorkerLoRAManager

Bases: WorkerLoRAManager

WorkerLoRAManager that manages LoRA models on the worker side.

Uses an LRU Cache. Every request, the requested LoRAs will be loaded (unless they are already loaded) and least recently used LoRAs will be unloaded if the cache is above capacity.

WorkerLoRAManager

WorkerLoRAManager that manages LoRA models on the worker side.

Every request, the requested LoRAs will be loaded (unless they are already loaded), and every other LoRA will be unloaded.

Methods:

dummy_lora_cache()

Use this context manager to reuse the dummy lora model to avoid creating it repeatedly.