---
title: "TGI Multi-LoRA: Deploy Once, Serve 30 Models"
description: "Text Generation Inference (TGI) v2.1.1 adds multi-LoRA serving: one base model such as Mistral-7B is deployed once, and many small LoRA adapters are loaded alongside it, with each request picking its adapter via an adapter_id."
url: "https://swe.quest/articles/tgi-multi-lora-deploy-once-serve-30-models-a0e1ef82f00c7a41"
canonical: "https://huggingface.co/blog/multi-lora-serving"
source: "Hugging Face"
published: "2024-07-18"
difficulty: "medium"
kind: "How-to"
reading_minutes: 12
tags: ["inference","llms","cost-optimization"]
---

# TGI Multi-LoRA: Deploy Once, Serve 30 Models

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2024-07-18, 12 min read, How-to. Original: [https://huggingface.co/blog/multi-lora-serving](https://huggingface.co/blog/multi-lora-serving)

## Summary

Text Generation Inference (TGI) v2.1.1 adds multi-LoRA serving: one base model such as Mistral-7B is deployed once, and many small LoRA adapters are loaded alongside it, with each request picking its adapter via an adapter\_id. Adapters are tiny (13.6MB versus 14.48GB for the base), so loading 30 of them adds only about 3% VRAM. The post shows deployment via Docker with the LORA\_ADAPTERS setting, Inference Endpoints through the GUI and in Python, and how to query a specific adapter. It argues that per-token cost stays flat as models are added and that consolidating bursty per-model traffic onto one deployment smooths GPU utilization.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)

## Prerequisites

- LoRA fine-tuning basics ([easy posts on Model training](https://swe.quest/tags/model-training.md?difficulty=easy))
- LLM serving ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

TGI, LoRA, Mistral-7B, Hugging Face Inference Endpoints, LoRAX, Predibase, Punica

## Related posts

- [Llama 2 is here - get it on Hugging Face](https://swe.quest/articles/llama-2-is-here-get-it-on-hugging-face-c56eec059476bd0f.md): Hugging Face · 2023-07-18 · Medium · 9 min read · LLMs, Inference & serving, Model training, Python
  Meta's Llama 2 family (7B, 13B, 70B base and RLHF-tuned chat models) is released under a commercially usable license, trained on 40% more tokens than Llama 1 with 4k context and grouped-query attention for the 70B model, and is integrated across the Hugging Face ecosystem.
- [Async GRPO with LoRA across HF Jobs: a bucket, a proxy, and no NCCL](https://swe.quest/articles/async-grpo-with-lora-across-hf-jobs-a-bucket-a-proxy-and-no-nccl-a625fff69adbae9a.md): Hugging Face · 2026-09-10 · Hard · 29 min read · Model training, Inference & serving, Caching, Load balancing, LLMs
  TRL v1.14's AsyncGRPOTrainer can train a LoRA adapter and sync only that adapter to vLLM, which lets the trainer and inference replicas run as separate Hugging Face Jobs on separate machines without NCCL.
- [Goodbye cold boot - how we made LoRA Inference 300% faster](https://swe.quest/articles/goodbye-cold-boot-how-we-made-lora-inference-300-faster-d8d4cf4c16c22df2.md): Hugging Face · 2023-12-05 · Medium · 9 min read · Inference & serving, ML platforms, Computer vision, Python
  Hugging Face's Inference API now keeps Stable Diffusion base models warm and swaps LoRA adapters per request, so hundreds of distinct LoRAs share a few GPUs instead of each getting a dedicated deployment.
- [LoRA Explained: Faster, More Efficient Fine-Tuning with Docker](https://swe.quest/articles/lora-explained-faster-more-efficient-fine-tuning-with-docker-c2d6a36ff181eafe.md): Docker · 2025-10-09 · Medium · 8 min read · Model training, LLMs, Privacy
  Gemma 3 270M can be specialized into a compact PII-masking assistant using LoRA, which freezes the base weights and trains only small low-rank adapters, cutting compute and memory needs while avoiding catastrophic forgetting.
- [Hugging Face on AMD Instinct MI300 GPU](https://swe.quest/articles/hugging-face-on-amd-instinct-mi300-gpu-f116bf43c7c06916.md): Hugging Face · 2024-05-21 · Easy · 7 min read · Inference & serving, Hardware, LLMs, Performance engineering, Model training
  Hugging Face's transformers and text-generation-inference (TGI) now run on AMD Instinct MI300X GPUs with no code changes, backed by a Kubernetes-scheduled CI pipeline that runs tens of thousands of unit tests on MI250 and MI300 hardware.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
