Enterprise AI service

LLM Fine-Tuning and Model Optimisation

Retraining is not always needed for a model to perform better in your work. Often a better instruction, a search that retrieves the right document or a different model is enough. We use fine-tuning to teach a specific style, format or classification task after these methods have been tried and measured. On the optimisation side, we get more speed from the same hardware through quantisation and server tuning.

Fine-tuningEvaluation setLoRA / QLoRAQuantisationSpeed and latencyCostVersion tracking

Service scope

What does model optimisation cover?

Every improvement is measured before and after the change with the same test set. Improvements that can’t be measured are not made.

01

Evaluation set

We build a test set from real usage examples with known correct answers. Accuracy, format compliance, response time and cost are measured on the same set; decisions are based on these numbers.

02

Instruction and search improvements

System instructions, few-shot prompts and RAG search settings are the first methods we try. Because they are cheap and reversible, we want to see their results before fine-tuning.

03

Fine-tuning with LoRA

When needed, we use LoRA or QLoRA, which train small additional layers rather than the whole model. Training data is cleaned, personal data is removed and after training the model is tested separately to check it has not lost general capabilities.

04

Quantisation and speed

Quantisation, which reduces model weights from 16 to 8 or 4 bits, cuts memory to a half or a quarter. We determine the acceptable level by measuring how much Turkish performance drops at each level.

05

Server settings and cost

We increase the tokens generated per second through model server settings such as batching, caching and context length limits. For cloud models, we lower the cost per request by routing tasks between smaller and larger models.

Common situations

When fine-tuning, and when another method?

The situations below are the optimisation requests we see most often.

01

Responses are too slow

The solution is usually not a bigger GPU but quantisation, batching and context length tuning.

02

A specific format can’t be achieved

If a report template or classification labels are inconsistent, a small fine-tuning is often the most lasting solution.

03

The model doesn’t know company information

Frequently changing information is provided through RAG, not fine-tuning. Information put into training data goes stale and can’t be cited.

04

The cloud bill keeps rising

Cost drops significantly when simple tasks are routed to a small, cheap model and difficult ones to a large model.

Project phases

How does the project proceed?

01 / STAGE

Measurement

A test set is prepared and current accuracy, speed and cost are measured.

02 / STAGE

Lightweight methods

Instruction, search and model changes are tried and the results compared.

03 / STAGE

Training or optimisation

If needed, LoRA training or quantisation is carried out and measured again with the same set.

04 / STAGE

Publication

The new model version is released with a record, and rollback to the previous version is kept ready.

Deliverables

What do you receive at handover?

Before and after figures are reported for every improvement.

  • Evaluation set and measurement scripts
  • Before / after comparison report
  • Training data preparation document (if fine-tuning was done)
  • Trained adapter or quantised model files
  • Server settings and capacity notes
  • Version and rollback record
Frequently asked questions

Questions about LLM fine-tuning

01

Fine-tuning or RAG?

RAG to provide knowledge, fine-tuning to teach behaviour. If you want answers from company documents, RAG is more accurate, up to date and auditable. If you want to teach a specific writing style, a fixed output format or a classification task, fine-tuning is suitable. The two can also be combined.

02

How much data does fine-tuning need?

A few hundred to a few thousand clean examples are often enough to teach format and style. Consistency and correctness of the examples matter more than their number; faulty examples teach the model the faults too.

03

Does quantisation reduce quality?

It can reduce it somewhat; how much depends on the model and the task. 8-bit quantisation causes a negligible loss in most tasks; at 4 bits the loss should be measured per task. That is why the decision is made with a test set.

04

Do we own the trained model?

The trained adapter files and training data are handed over to you. The licence terms of the base model still apply; some licences set rules for distributing derived models.

Let’s talk about your project

Let’s improve your model by measuring it

Let’s build a test set from your current usage and see in numbers which step makes a real difference to speed, accuracy and cost.