Case Study

LLM Fine-Tuning & Model Customization

AI Services

Five Parameter-Efficiency Gains, One Adapter, Zero Full Retrain

A general-purpose model sounds confident answering a specialized question even when it’s wrong in ways a domain expert would catch immediately. Closing that gap is usually cheaper than it sounds, and doesn’t require retraining a model from scratch.

DomainTune is a LoRA adapter trained for medical-domain terminology on a GPT-3.5-turbo base. It fine-tunes a small set of adapter parameters on top of a frozen base model instead of retraining the whole thing, and ships with a playground that puts the base model’s answer next to the adapted one, so the difference is visible, not just claimed.

Single Image
Services
LLM Fine-Tuning & Model Customization
Scope
Healthcare / Specialized AI Assistants
Engagement
LoRA / QLoRA adapters on a frozen base model
Design system
Fraction of a full retrain: adapter weights only
Problem yellow bulb icon
Problem

A general-purpose model answers a specialized question with the right tone of confidence and the wrong depth of knowledge, and full fine-tuning to fix that is too expensive to justify for most single-domain use cases.

Solution green bulb icon
Solution

LoRA and QLoRA train a small adapter on top of a frozen base model, adapting it to domain vocabulary at a fraction of the compute a full retrain needs, backed by a side-by-side evaluation so the improvement is demonstrated, not assumed.

Single Image
The Project

Fine-Tuning That Doesn’t Touch the Base Model’s Weights

Full fine-tuning updates every parameter in the model, which rarely clears the bar for one domain’s vocabulary problem. LoRA and QLoRA update a small set of adapter weights layered on a base model that stays frozen; here, a GPT-3.5-turbo checkpoint adapted for medical terminology. The adapter is swappable, so the same base can carry another domain’s adapter without starting over. Ask both versions about LoRA’s benefits in the medical domain: the base gives a generic paragraph, while the fine-tuned checkpoint names five specific, correctly ordered benefits.

Interface Architecture

How DomainTune Is Put Together

Four stages take a domain from raw examples to a model a team can trust: curate the data, train the adapter on a frozen base, evaluate it against the untouched model, and let stakeholders compare the two for themselves.

Dataset curation

Domain-specific examples are collected and cleaned into the fine-tuning set. This step took longer than the training itself.

LoRA / QLoRA training

Adapter weights train on top of the frozen base model, touching a small fraction of total parameters.

Evaluation

Held-out examples compare the adapted model’s answers directly against the untouched base model’s.

Playground

An interactive chat where a team can run the same prompt against both versions and see the difference themselves.

What We Build

What the Engagement Puts in Your Hands

Adapter-Only Training

Only the LoRA weights update. The base model’s own parameters never change, which is also why the adapter is swappable.

Runs on Modest Compute

No full retrain means the training itself doesn’t need a GPU cluster to be worth doing.

Swappable Across Domains

The same frozen base model can carry a different adapter for a different domain without starting from scratch.

Side-by-Side Evaluation

Base and fine-tuned responses sit next to each other on the same held-out prompts. The comparison is the deliverable.

Standard Packaging

Adapters ship in a standard Hugging Face format rather than something custom only this pipeline can load.

Base Model Always Available

The frozen base is never overwritten, so a team can always check the adapted model against the original.

What Changed
From a Generic Answer to a Domain-Fluent One

The aim was a model that knows the domain, with proof a stakeholder can see for themselves. Here is what changed on the same prompts.

How We Work

How We Got There

1
Scoped the domain narrowly

Medical terminology specifically, not healthcare broadly, because a narrower target produces a cleaner training set.

2
Curated the dataset

The first pass was noisy enough that an early adapter did worse than the base on some held-out prompts. Curation ran longer than expected.

3
Trained the LoRA adapter

Once the data was clean, training took hours, not the days a full fine-tune would have needed.

4
Built the evaluation set first

Fixed the evaluation set before training finished, so there was an honest bar to clear rather than cherry-picked examples.

5
Built the playground

Made so a non-technical stakeholder could see the difference themselves instead of taking a score on faith.

6
Tested out-of-domain prompts

Deliberately ran unrelated prompts so the limits of the narrow gain were known upfront, not discovered by a confused user.

Software & Tools

The Tools Behind the Innovation

Ready to move from confusion to

 clarity?