S-LoRA: thousands of adapters on one base
S-LoRA enables serving thousands of LoRA adapters simultaneously on the same base model. Two innovations:
- Unified paging: manages adapter weights in a paged memory system, like vLLM's PagedAttention but for adapters.
- Heterogeneous batching: batches requests using different adapters in the same forward pass.
Can handle 2,000+ simultaneous adapters with minimal overhead. The right pick when you have one fine-tuned variant per customer/tenant.
Edge deployment
| Platform | Format | Best for |
|---|---|---|
| Apple (macOS / iOS) | MLX / Core ML | Mac apps, iPhone inference |
| Android | GGUF via llama.cpp | On-device inference |
| Browser | ONNX / WebGPU | Web-based inference, no server |
| Embedded | GGUF (heavily quantized) | IoT, robotics |
When to retrain
- Quality degradation — monitoring shows declining output quality.
- Domain shift — user inputs have changed since training.
- New data available — you've collected enough new production data to matter.
- New base model — a better foundation model is released.
For incremental updates, train from the previous checkpoint. For major updates or new base models, start fresh.