Sarvaswa AI Labs
12 minute read, updated for foundation models in 2026

Fine-tuning LLMs: how a foundation model becomes one that knows your business.

Fine-tuning continues the training of a general-purpose language model on your own data, so the result knows your business, your terminology, and your customers, and outperforms an off-the-shelf model on the tasks you actually run.

8–14

weeks

From kickoff to a production model

100%

yours

Weights, training scripts, runbook

0

external APIs

No third-party inference dependency

4

model families

Llama, DBRX, Mistral, Gemma. Open weights.

What is it

What is LLM fine-tuning?

Foundation models such as Claude, Llama, Mistral, and GPT are trained on the entire internet. They are generalists. They can explain quantum physics, write poetry, and debug code. What they cannot do is reason through your loan approval criteria, navigate your compliance policies, or respond in the exact tone your brand requires.

What each model actually knows

General purpose

Foundation Model

Trained on the entire internet.

It knows

  • Quantum physics and poetry
  • How to debug code in twenty languages
  • Wikipedia, public papers, the open web

It cannot

Reason through your loan approval criteria, navigate your compliance policies, or speak in your brand voice.

Proprietary

Fine-tuned Model

Continued training on your data.

It knows

  • Your underwriting criteria, in your words
  • Your clinical protocols and edge cases
  • Your product catalogue and customer tone

It cannot

Replace common sense entirely. It still inherits general reasoning from the foundation model.

Fine-tuning bridges that gap. You take a foundation model and continue training it on your own data, including internal documents, support transcripts, product manuals, and domain-specific corpora. The model learns to reason and respond in your context. The output is a model that behaves like a domain expert for your business, not a generalist with access to a search engine.

A note on fine-tuning and RAG

Retrieval-Augmented Generation

RAG

Hands the model documents to read at query time.

Best when

You have a large, frequently updated document set and need answers cited to the source.

Weakness

The model still talks like the foundation. Style, voice, and reasoning patterns do not change.

Example

"What does our most recent SOC 2 evidence say about access reviews?" gets the live answer pulled from the actual document.

Continued model training

Fine-tuning

Bakes the knowledge and the reasoning style directly into the weights.

Best when

You need a consistent reasoning approach, brand voice, or domain behaviour across every interaction.

Weakness

Updating the model requires retraining. Not the right tool when documents change daily.

Example

The model reasons through credit decisions the way your senior underwriter does, even on questions you did not anticipate.

In production we usually combine them. Fine-tuning shapes how the model thinks and responds. RAG (Retrieval-Augmented Generation) gives it live access to the documents that change. The two cards below show where each one earns its place.

A model like that scales to thousands of simultaneous queries without a per-query API bill.

Methods

How is an LLM fine-tuned? Four methods.

Fine-tuning is a family of techniques, not one procedure. The right one depends on how much the model has to change, how much data you have, and what compute you are willing to spend. We pick per use case, and we say which one we picked and why.

Full fine-tuning

Every weight in the model is updated.

The most capable option and the most expensive. It suits deep domain shifts, such as clinical or legal language, where the model has to change how it reasons rather than just what it knows. It needs the most data and the most GPU memory.

We pick it when

Large, dense, high-quality corpus and a task the base model handles poorly.

LoRA and QLoRA

Small adapter layers are trained; the base model stays frozen.

Parameter-efficient fine-tuning trains a few million adapter weights instead of billions. QLoRA adds quantisation, so a 70B model can be tuned on a single GPU node. Adapters can be swapped per task and are cheap to retrain when the business changes.

We pick it when

Most enterprise use cases. Tight compute budget, several tasks on one base model, or a fast retraining cadence.

Instruction tuning

Trains on prompt and ideal-response pairs.

Teaches the model your task format: how a credit memo is structured, what a resolved support ticket looks like, which fields a contract summary must contain. Usually applied through LoRA. It is the fastest way to get consistent, on-format output.

We pick it when

You have, or can produce, thousands of good examples of the exact task.

Preference tuning

Trains on pairs of better and worse answers.

Direct Preference Optimisation (DPO) and related methods teach the model which of two answers your reviewers prefer, which shapes tone, caution, and judgement rather than facts. It is how a customer-facing model learns to sound like your best agent rather than a generic assistant.

We pick it when

Output quality is subjective, and you have reviewers who can rank answers.

Benefits

What are the benefits of fine-tuning an LLM?

Featured benefit

A model that reflects your expertise

Your team has spent years accumulating domain knowledge. Fine-tuning converts that knowledge into model weights. Institutional memory that scales to answer any volume of queries without adding headcount.

Consistent brand voice and terminology

Customer-facing models behave exactly the way you would want your best employee to: on-message, precise, and familiar with your products, policies, and preferred way of communicating.

Fewer hallucinations where it matters most

General models hallucinate because they lack context. A model trained on your clinical protocols, legal standards, or financial products is far less likely to fabricate answers in those domains, because it actually knows them.

No external dependency

A fine-tuned open-weight model removes the external dependency: no API rate limits, no third-party access to your training data, and no pricing changes you do not control.

A compounding competitive advantage

Every training run on new proprietary data improves the model further. It is a capability that grows as your business grows. An advantage competitors cannot replicate by buying an API subscription.

Trade-offs

What are the trade-offs of fine-tuning?

Fine-tuning is powerful. It is also not the right answer for every problem. Before we recommend it, we pressure-test the use case against simpler alternatives. Here is what to weigh honestly.

Data quality is everything

Garbage in, garbage out. More so with fine-tuning than with any other AI technique. You need clean, labelled, representative training data. If it does not exist yet, data preparation becomes a significant part of the project timeline and cost.

It is not free to run

Fine-tuning requires GPU compute. One-time training costs are often far lower than ongoing commercial API costs at scale, but they are real, and they should be scoped into the project budget upfront.

Overfitting is a genuine risk

Train too narrowly and the model loses general reasoning ability. We run evaluation harnesses and holdout test sets on every engagement to catch regression before it reaches production.

It is not always the first move

We regularly recommend starting with RAG or prompt engineering before committing to fine-tuning. Fine-tuning makes the most sense when simpler approaches have demonstrably hit their ceiling.

Models drift as your business changes

Policies update. Products evolve. Regulations shift. Fine-tuned models need retraining cadences, which is why we build a model lifecycle plan into every engagement, not just a one-time delivery.

Decision guide

Should you fine-tune, RAG, or stick with prompts?

The honest three-way fork. Before you commit budget to fine-tuning, run the use case against this.

Verdict

Fine-tune

When

  • You need a consistent reasoning style or institutional voice across every interaction
  • Domain accuracy matters more than general capability for the specific task
  • You have enough clean labelled training data, or can produce it within scope

Verdict

Start with RAG

When

  • Your knowledge changes faster than you can retrain a model
  • Answers must cite specific documents back to the source at query time
  • You want results in two weeks, not three months

Verdict

Stick with prompts

When

  • You have not yet tested how well a strong system prompt performs
  • The task is well-served by general capability and a long context window
  • You are still proving the use case before committing real compute

Not sure which column you are in?

Fifteen minutes to tell you whether fine-tuning, RAG, or a better prompt fits.

Bring the task, a sample of the data you have, and how often it changes. We will say which approach fits, roughly what it costs to train and run, and whether a strong prompt would do the job for now.

The engagement

How does Sarvaswa fine-tune a model?

Most engagements move from kickoff to production in 8 to 14 weeks across a four-phase delivery. Every phase has a deliverable your team signs off before the next begins.

  1. Discovery & Audit

    Weeks 1–2

    What happens

    We audit your existing data, define the use case, scope the training corpus, and set evaluation criteria. You sign off on the data readiness assessment before any compute spend.

    What you get

    Architectural blueprint, data readiness assessment, evaluation plan.

  2. Data Preparation

    Weeks 3–6

    What happens

    Cleaning, labelling, deduplication, and bias review. We build holdout test sets and instrument the evaluation harness so we can measure improvement objectively from training run one.

    What you get

    Clean training corpus, holdout evaluation set, MLflow evaluation harness.

  3. Train & Evaluate

    Weeks 7–11

    What happens

    Multiple training runs. Parameter-efficient fine-tuning, full fine-tuning, or instruction tuning depending on the use case. Every checkpoint is evaluated against the holdout set so we catch overfitting and regression before the model ever sees production.

    What you get

    Trained model weights, evaluation report, hyperparameter trace.

  4. Deploy & Operate

    Weeks 12–14

    What happens

    Production deployment to your infrastructure. MLflow tracing in production. Drift detection on live traffic. Runbook handover so your team can extend the model without us.

    What you get

    Production endpoint, monitoring dashboard, runbook, 30-day post-launch support.

Use cases

Where is LLM fine-tuning being used?

Fine-tuning is being deployed across industries wherever domain precision and proprietary reasoning matter more than general capability.

Financial Services

Credit reasoning that reflects your risk framework

Models trained on loan policy documents, regulatory filings, and internal risk criteria. Analysts get AI that reasons through credit decisions the way your institution does, not a generic benchmark.

Healthcare

Clinical documentation at the speed of care

Assistants trained on ICD codes, treatment protocols, and discharge summaries. The model reduces documentation burden without compromising clinical accuracy or introducing hallucinated diagnoses.

Legal

Contract analysis with your firm's own standards

Models that understand your specific clause structures, red-flag criteria, and jurisdiction-specific language. Not just generic legal concepts distilled from public case law.

Customer Support

Your best agent's resolution quality, at any volume

Support models trained on historical ticket data and resolution paths. They resolve queries the way your best human agent would, with your product knowledge, not a chatbot's defaults.

Manufacturing

Institutional maintenance knowledge, always available

Models trained on equipment manuals, defect histories, and process standards. Years of on-floor expertise become an always-on AI that any technician can query in plain language.

Retail & D2C

Product intelligence as deep as your buyers'

Recommendation and copywriting models trained on your catalogue, customer language, and seasonal patterns. The model understands your SKUs, pricing logic, and brand the way your senior merchandiser would.

Shipped

What a domain-trained model looks like in production.

Compliance and cost on AWSRegulated enterprise

A predictive GPU auto-scaling engine and a domain-trained SLM, ~40% lower compute cost

A regulated client could not send sensitive data to a commercial AI API. We trained a small language model on their proprietary data, served it on GPU instances in their AWS account, and built a predictive auto-scaling engine around it so the fleet grew and shrank with real demand. Compute cost fell by about forty percent.

Stack

Domain-trained SLMAWS EC2 (GPU)Predictive autoscaling engineTime-series forecastingCloudWatchTerraform
See all use cases

~40%

Reduction in monthly compute cost

100%

Inference inside client infrastructure

24/7

Observability across the GPU fleet

The stack

What we fine-tune, where it lives.

We fine-tune open-weight model families and deploy to the platform your team already runs. Closed models such as Claude cannot be fine-tuned by anyone outside their vendor, so they are not on this list.

Foundation models we fine-tune

  • Llama 3

    Meta. 8B, 70B, and 405B parameter variants.

  • DBRX

    Databricks. Mixture-of-experts architecture.

  • Mistral

    Mistral and Mixtral families. Open weights.

  • Gemma

    Google. 2B, 7B, and 27B parameter variants.

Where the model lives

  • AWS SageMaker AI

    Training jobs and serving endpoints inside your AWS account.

  • Amazon Bedrock

    Custom Model Import: serve the open-weight model you fine-tuned, on demand.

  • Azure ML

    Managed model registry and online endpoints.

  • GCP Vertex AI

    Managed training and prediction on Google Cloud.

  • Databricks Model Serving

    Inside the Databricks Lakehouse.

  • Self-hosted GPU

    On your own compute, fully air-gapped.

Fine-tuning LLMs, answered.

Fine-tuning takes an open-weight foundation model (Llama, DBRX, Mistral, Gemma) and continues training it on a customer's proprietary data. The resulting model encodes the customer's terminology, decision criteria, and institutional reasoning patterns directly into its weights, so it responds like a domain expert rather than a generalist. The weights, training scripts and evaluation harness are delivered at handover.
Use RAG when you need live access to frequently updated document sets and retrieval at query time is the right pattern. Use fine-tuning when consistent reasoning style, domain behaviour, or institutional voice matters across every query. The two patterns often combine in production: fine-tuning shapes how the model thinks and responds, RAG provides live access to specific documents. Sarvaswa recommends the right combination during scoping, not by default.
Full fine-tuning updates every weight in the model. It gives the largest capability shift and costs the most in data and GPU memory. LoRA (Low-Rank Adaptation) freezes the base model and trains small adapter layers instead, typically a fraction of one percent of the parameters. QLoRA adds quantisation so a 70B model can be tuned on a single GPU node. For most enterprise use cases Sarvaswa starts with LoRA or QLoRA, because adapters are cheap to retrain, can be swapped per task, and reach most of the quality of full fine-tuning. Full fine-tuning is reserved for deep domain shifts with a large, dense corpus.
Yes. Training runs as SageMaker AI training jobs inside the customer's own AWS account, so the training data never leaves it. For serving, Sarvaswa either deploys a SageMaker AI endpoint or uses Amazon Bedrock Custom Model Import to bring the fine-tuned open-weight model into Bedrock, where it is served on demand behind the same API as the managed models. Sarvaswa does not fine-tune closed models such as Claude; the work is done on open-weight families (Llama, DBRX, Mistral, Gemma) such as Llama, DBRX, Mistral and Gemma.
Most engagements move from kickoff to production in 8 to 14 weeks. The first 1 to 2 weeks are data audit and use-case scoping. The next 4 to 9 weeks cover data preparation, training runs, and evaluation. The final phase deploys the model into the customer's infrastructure with monitoring and a runbook the customer's team owns.
Clean, labelled, representative training data that reflects the real distribution of queries the model will see. Customer-support fine-tuning typically needs thousands to tens of thousands of high-quality conversation examples. Domain-specific reasoning can work with an order of magnitude fewer when each example is dense. If the data does not exist in the right form yet, data preparation becomes a significant part of the project timeline and cost, and Sarvaswa scopes it explicitly.
Wherever the customer's compliance and cost requirements point: AWS SageMaker AI, Amazon Bedrock, Azure ML, GCP Vertex AI, Databricks Model Serving, or self-hosted GPU clusters. There is no Sarvaswa-hosted inference layer, and no third party sees the customer's queries or training data.
One-time training costs are real but typically far below ongoing commercial API costs at scale. At high monthly query volumes, a fine-tuned model often costs less per query than the equivalent foundation model API. The break-even point depends on query volume, model size, and inference architecture, and Sarvaswa models it explicitly during scoping so the customer can compare the two paths with real numbers.
The weights, training scripts, evaluation harnesses and deployment runbooks, delivered at handover. There is no Sarvaswa subscription to keep paying and no shared infrastructure across customers. Your team can extend, retrain or serve the model as you choose.
Every engagement ships with a model lifecycle plan: retraining cadence, evaluation harness, and drift-detection signals on production traffic. When policies update, products evolve, or regulations shift, the customer's team retrains the model using the same pipeline Sarvaswa built. Sarvaswa is available for retainer support if the customer prefers, but the customer is never locked in.

The model that knows your business better than any chatbot will.

We fine-tune, evaluate, deploy and hand over a model your team can retrain.