> For the complete documentation index, see [llms.txt](https://docs.aisuru.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aisuru.com/en/advanced-features/fine-tuning/what-is-fine-tuning-and-what-is-it-for.md).

# What is fine-tuning and what is it for

Fine-tuning is a machine learning process that involves taking a pre-trained model and adapting it to a specific task or particular domain. This advanced technique is based on the idea of leveraging the knowledge a pre-trained model has already acquired and adapting it to a specific purpose.

### What are the benefits of fine-tuning?

1. **Improves performance**: fine-tuning lets you sharpen the model's capabilities on specific tasks, leading to more accurate and relevant results.
2. **Lets you scale costs**:
   1. Fine-tuning is cheaper than training a model from scratch;
   2. Fine-tuning is generally performed on smaller, more cost-effective language models (LLMs): this means that for equivalent responses, each message will cost you significantly less.

Fine-tuning also requires relatively little data: it's possible to achieve good results with just a few thousand examples.

### The fine-tuning process

1. **Choosing the model** -> generally, a small, general-purpose model is chosen (like gpt-4o mini);
2. **Preparing the data** -> a specific dataset of examples is collected to feed to the language model (LLM); [with AIsuru, preparing data for fine-tuning is extremely straightforward](/en/advanced-features/fine-tuning/how-to-do-fine-tuning-with-aisuru.md);
3. **The actual fine-tuning**: on the Microsoft Azure or [OpenAI](https://platform.openai.com/finetune) platform, you'll fine-tune the model you've chosen.

✅ Done! Once you've completed these steps, you can immediately start using the [fine-tuned model in your AIsuru Agent](/en/advanced-features/fine-tuning/using-fine-tuned-models-on-aisuru.md)!

### When to use fine-tuning

Fine-tuning is particularly useful when you want to modify the behavior and increase the accuracy of a specific model.

By using fine-tuning, **you can get models that are more precise, relevant, and suited to the specific needs of a project or organization**, while still leveraging the power of models from major players like OpenAI.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.aisuru.com/en/advanced-features/fine-tuning/what-is-fine-tuning-and-what-is-it-for.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
