From adapter to deployment: merging LoRA weights and serving with vLLM or a Space

Presenting to a room
Presenting to a room

Originally published at https://pranjulrathour.scult.in/blog/merging-lora-adapters-and-serving. That copy is the canonical version and gets updates first.

A fine-tuned adapter sitting in a folder is not a product. FineTune Studio offers three inference paths — local, a vLLM server, or a Hugging Face Space — because the right one depends on who will call the model and how often. Here is how I choose, and the checks I run before calling it deployed.

Pranjul Rathour
Pranjul Rathour

Keep the adapter or merge it?

Keeping the adapter separate lets you hot-swap behaviours on one base model and keeps files small. Merging bakes the adapter into the base weights, producing a single model that any serving stack can load without adapter support. Merge when you have one behaviour and want simplicity; keep adapters when you serve several tasks from one base.

Three serving paths

  • Local inference — the training machine loads the model and answers requests. Right for demos, evaluation and internal tools; wrong for anything with real traffic.
  • vLLM server — batched, fast, OpenAI-compatible API. Right for production on a GPU you control. Supports LoRA adapters directly, so merging is optional.
  • Hosted Space — a public or gated endpoint for sharing a demo. Right for portfolios and hackathon judges; be mindful of cold starts and free-tier limits.

Checks before you call it shipped

  1. The served model reproduces your evaluation outputs. Precision differences and a missing chat template produce a subtly different model.
  2. The chat template used at serving time is the one used in training.
  3. Stop tokens are configured; otherwise the model talks until the token limit.
  4. Throughput and memory are measured with realistic concurrency, not one request at a time.

Operating it

Put the endpoint behind the same reliability layer as any LLM API: timeouts, retries, structured logs with the model version in every record. A fine-tuned model is a dependency you now maintain; version the adapter, the dataset and the evaluation results together so you can answer "what changed?" six months later.

Presenting KrishGyan, farming advice in your voice and language
Presenting KrishGyan, farming advice in your voice and language

Training is the exciting half. Serving is the half that makes it real, and it is where students separate themselves from tutorial followers.

From my carousels
5 Production AI Apps, All Open Source
5 Production AI Apps, All Open Source, slide 15 Production AI Apps, All Open Source, slide 2
5 Production AI Apps, All Open Source, slide 35 Production AI Apps, All Open Source, slide 4
Full carousel on Instagram and LinkedIn.
Pranjul Rathour
Pranjul Rathour
GenAI engineer, Kanpur · 3x first-prize hackathon winner · campus mentor
I ship production RAG pipelines, fine-tune LLMs and build agentic AI products end to end. I lead engineering at SCULT INDIA for a 14-member team and have mentored 200+ students through TechVerse Enclave.
Open to: GenAI roles, hackathon judging, mentorship sessions and guest talks at colleges.
On stage, at hackathons and on campus
At an Integral Startup Foundation hackathon
At an Integral Startup Foundation hackathon
Pranjul Rathour
Pranjul Rathour
Pranjul Rathour, GenAI engineer, Kanpur
Pranjul Rathour, GenAI engineer, Kanpur

Comments

Popular posts from this blog

Forming a hackathon team: roles, skills and the mistake most teams make

I built 15 free tools, 1,211 prompts and a 50,000-skill library — here's what's inside tools.scult.in

Building in public as a student: a 30-day plan