A team fine-tuned five separate small models for five separate tasks and then discovered they couldn't afford to host five GPU instances. The fix: one base model, five LoRA adapters, swapped per request.
How it works
Because a LoRA adapter is a small set of additional weights layered onto a frozen base model, several adapters can be loaded in the same process and swapped — or even batched together — per incoming request, instead of loading five entire fine-tuned models into memory.
- Serving frameworks built for this (adapter-aware inference servers) batch requests across different adapters efficiently.
- Swap latency for a single adapter is typically low enough for interactive use, but benchmark it on your own hardware before committing.
- This only works if all five tasks share the same base model — you can't mix adapters trained on different base models.
See merging LoRA adapters and serving for the alternative — merging one adapter permanently — and when that's the better choice instead.
— Pranjul Rathour, GenAI Engineer from Kanpur, India. Open to GenAI roles, hackathon judging, mentorship sessions and guest talks at any campus: pranjulrathour41@gmail.com.
