> For the complete documentation index, see [llms.txt](https://ai-docs.fptcloud.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ai-docs.fptcloud.com/fpt-ai-studio/services/model-fine-tuning/tutorials/how-to-create-a-pipeline/select-trainer.md).

# Select Trainer

Select the appropriate trainer - which guides the model you select for training

<figure><img src="https://2158065032-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FDB5fvsiFxYI972UDTv%2Fuploads%2FrAc5b5RuVB2bp8ew19DS%2Fimage.png?alt=media&amp;token=75632426-ea91-40e9-8b1e-3e5c6e4e6780" alt=""><figcaption></figcaption></figure>

We offer three trainers to optimize your models:

<table data-view="cards"><thead><tr><th>Trainer</th><th>Definition</th><th>How it works</th><th>Best for</th><th data-hidden data-card-cover data-type="image">Cover image</th></tr></thead><tbody><tr><td><strong>SFT (Supervised fine-tuning)</strong></td><td>Foundational technique that trains your model on input-output pairs, teaching it to produce desired responses for specific inputs.</td><td>- Provide examples of correct responses to prompts to guide the model’s behavior.<br>- Often uses human-generated “ground truth” responses to show the model how it should respond.</td><td>- Classification<br>- Nuanced translation<br>- Generating content in a specific format<br>- Correcting instruction-following failures</td><td data-object-fit="contain"><a href="https://2158065032-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FDB5fvsiFxYI972UDTv%2Fuploads%2FarQl3BnKw44BM2gTlKI3%2Fmachine-learning.png?alt=media&amp;token=2f332c64-9f2a-4d32-8761-0eb43e83665e">machine-learning.png</a></td></tr><tr><td><strong>DPO (Direct preference optimization)</strong></td><td>Trains models to prefer certain types of responses over others by learning from comparative feedback, without requiring a separate reward model.</td><td>- Provide both correct and incorrect example responses for a prompt.<br>- Indicate the correct response to help the model perform better.</td><td>- Summarizing text, focusing on the right things<br>- Generating chat messages with the right tone and style</td><td data-object-fit="contain"><a href="https://2158065032-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FDB5fvsiFxYI972UDTv%2Fuploads%2Fk0U58U1UJUuy8Mn9be5o%2Fbest-practice.png?alt=media&amp;token=d9c78c2f-5357-4071-849f-b3b41fd732a4">best-practice.png</a></td></tr><tr><td><strong>Pre-training</strong></td><td>Initial training phase using large unlabeled data for language understanding.</td><td>- Exposes the model to vast amounts of text data to learn grammar, facts, reasoning patterns, and world knowledge.<br>- No labeled examples required.</td><td>- Building foundational language understanding<br>- Preparing models for downstream fine-tuning tasks</td><td data-object-fit="contain"><a href="https://2158065032-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FDB5fvsiFxYI972UDTv%2Fuploads%2FmZeH5N8dm9yfmYsrckzL%2Flearning.png?alt=media&amp;token=d771587a-546e-4666-acb8-a8ae22368ed1">learning.png</a></td></tr></tbody></table>

<br>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://ai-docs.fptcloud.com/fpt-ai-studio/services/model-fine-tuning/tutorials/how-to-create-a-pipeline/select-trainer.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
