Training your own AI modelFine-tuning with your own data.
In practice, training your own AI model almost always means fine-tuning an open language model with your own data. Training a model from scratch is rarely worth it for a single company. This page explains the process, the data and hardware you need, and when RAG is the better choice.
01
Fine-tuning, RAG or training from scratch?
Before training a model, it helps to be clear about what the model should do better. If the AI only needs to know facts from your documents, such as prices, manuals or internal rules, RAG is usually better and cheaper, because the knowledge can be updated at any time without retraining.
Fine-tuning pays off when the model should behave differently, for example write in your industry’s terminology, keep a fixed format, sort enquiries into your categories or make fewer mistakes on a recurring task. A combination is often useful: a fine-tuned model that also reads current documents through RAG.
Training a language model from scratch needs huge amounts of data and computing time costing millions and is not sensible for most companies. Small models for classification, forecasting or image recognition are different; those are often trained from scratch.
02
What data do you need?
Fine-tuning needs examples of the desired result, that is pairs of input and expected output: answered customer enquiries, texts in the right style, completed forms or cases with the correct classification. A few hundred to a few thousand good examples are often enough. Quality and fit to the later task matter more than volume.
The data usually comes from tickets, emails, databases, Word documents or PDFs and has to be prepared first: removing duplicates and errors, redacting or pseudonymising personal data where needed and bringing everything into one format. In many projects this is the largest part of the work.
03
What hardware do you need?
Open models such as Llama, Mistral or Qwen are mostly fine-tuned with LoRA or QLoRA today. Only a small part of the weights is trained, so a single GPU with 24 GB VRAM is often enough for a model with about 7 to 8 billion parameters. Larger models need several GPUs or a rented GPU server that is paid only for the training time.
For production the model is often quantised, for example as GGUF for llama.cpp, so it also runs on an ordinary server or workstation in-house. See the page on local AI models.
04
How a project works
It starts with a test on your real tasks that measures how well an existing model does without training. Then the training data is prepared and a first fine-tuning run is done, and the same test cases are measured again to see whether the training paid off.
If the result is good, the model is prepared for production with an API, access rights and logging, and runs on premises or in the cloud. New data is added later by retraining, for example every few months or when your processes change.
05
What drives effort and cost?
Most effort goes into preparing the data and testing, less into the training itself. The price depends mainly on how clean the data already is, how large the model must be, whether training runs on your hardware or on rented GPUs, and how the model is operated later. After a first talk and a look at your data you receive a quote.
Next
Related
Our service: Custom AI Models & Training
Running it on your own hardware: Local AI Models
Also in this guide series: Building a RAG system
Terms explained: AI glossary
FAQ
Common questions
Can you train ChatGPT on your own data?
OpenAI offers fine-tuning for some models through its API, but the data then goes to OpenAI. If you do not want that, you fine-tune an open model such as Llama, Mistral or Qwen that runs on your own server. If you only need knowledge from documents, RAG is usually simpler.
How long does training take?
The fine-tuning run itself for a mid-sized model takes a few hours to about a day, depending on data volume and hardware. Preparing the data and testing before and after take longer.
How many examples does fine-tuning need?
A few hundred to a few thousand good input/output examples are often enough. How many you need becomes clear after a first test.
Who owns the trained model?
If we train it for you, it is yours, including model files, training code and documentation. For open models the licence of the base model also applies; we check it beforehand.
Ready when you are
Let’s talk.
Describe your project in a few sentences — you’ll get an honest assessment of feasibility, effort and the way forward.
- kontakt@quell-code.com
- Phone
- +49 178 1561134
- Response time
- usually 2 working days
- Languages
- Deutsch · English · Türkçe