What is multi-LoRA serving?

Multi-LoRA serving is a model serving method that keeps one base model in GPU memory once, loads many LoRA adapters on top of it at the same time and handles each request with its own adapter on the same server.

Its relation to Low-Rank Adaptation is that of training to serving: LoRA trains a small low-rank adapter for one task, while multi-LoRA serving runs many such adapters together on one base model. Memory needs are far below a full model copy per adapter.

Topic
Inference and performance
Also known as
Multi-adapter serving

How multi-LoRA serving works

  1. Base model weights are loaded into GPU memory once; adapters wait in GPU memory, CPU memory or on disk.
  2. Each request carries an ID naming its adapter; a missing adapter is loaded into memory.
  3. Requests for different adapters share one batch and the base model computation, with low-rank contributions added per request by special kernels.
  4. Rarely used adapters are unloaded when memory fills.

In more detail

The core computation and custom kernels (SGMV and MBGMM)

Each adapted linear layer outputs the shared base weights' result plus a scaled, request-specific low-rank term. The base matrix multiplication runs once across the whole mixed batch with shared GEMM kernels, while each request's low-rank term is added with custom segmented kernels such as Punica's SGMV or S-LoRA's MBGMM and MBGMV; this keeps base-model compute efficient even when requests in the same batch use different ranks.

Adapter thrashing, unified paging and routing affinity

When active adapters exceed GPU VRAM capacity, evicting and reloading adapters over PCIe introduces host-to-device transfer spikes that degrade tail latency (p99). Production servers mitigate this with unified memory paging (allocating KV cache and LoRA weights from a single paged pool as in S-LoRA), CPU-pinned memory caching and adapter-aware request routing (affinity scheduling) to keep hot adapters resident on specific replicas.

Many adapters on a quantised base model and engine support

Multi-LoRA serving often pairs a quantised base model (e.g., FP8, AWQ or GPTQ INT4) with higher-precision FP16/BF16 LoRA adapters, sometimes called Multi-QLoRA serving, to maximise VRAM headroom for KV cache and concurrent requests. Mainstream engines including vLLM, SGLang and TensorRT-LLM provide production-ready multi-LoRA batching out of the box.

Prefix caching and adapter isolation

While all requests share the same base model, automatic prefix caching (KV cache reuse) cannot blindly share KV states across different adapters after the first adapted layer, because adapter weights alter key and value projections. Prefix caches must therefore be keyed by both the prompt prefix and the adapter ID, though system-prompt pre-computation before divergence or adapter-free base layers remain shareable.

Commonly confused terms

TermHow it differs
LoRA weight mergingWeight merging (e.g., linear/SLERP/TIES merging) statically fuses adapters or checkpoints offline into one fixed model before deployment, whereas multi-LoRA serving keeps adapters separate and switches or batches them dynamically per incoming request at runtime.
Multi-tenant inferenceMulti-tenant inference is the broader architectural pattern of isolating workloads, quotas, caches and data across tenants on shared hardware; multi-LoRA serving is specifically a parameter-efficient model adaptation technique often used to implement model customisation within multi-tenant serving.
Prefix and prompt tuningPrefix tuning and soft prompting add learned continuous vectors to the input rather than modifying weight matrices, whereas multi-LoRA serving adds low-rank matrix updates to attention and MLP projections across layers.

Why multi-LoRA serving matters for on-premises AI

In in-house AI, different units may want different adaptations of one base model, such as separate adapters for legal, HR and technical support. Multi-LoRA serving gathers them on one GPU cluster with no separate model server per unit. The base model's security review is done once, with adapters tested and versioned individually. As adapters multiply, swapping can affect latency, so the setup is tested with the real usage mix.

ON-PREMISES EXAMPLE

A carmaker trains separate LoRA adapters for its sales, service and production units; all three are served from one base model on the same GPU server, each request answered with its unit's adapter.

Common questions

How does multi-LoRA serving differ from running a separate model per task?

Separate models each need full memory. With multi-LoRA serving the base model loads once, with each task adding only its small adapter.

Can requests for different adapters run at the same time?

Yes. Special kernels process requests for different adapters in one batch, sharing base model computation while adding adapter contributions per request.

Sources

In the glossary: Glossary, M to Q

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.