> 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/~/revisions/GkZVtBK6yRi7YYdjkSnZ/ai-marketplace/ai-inference/tutorials/fine-tune-with-lora.md). Agents can also search and read this documentation through its [MCP server](https://ai-docs.fptcloud.com/~gitbook/mcp).

# Fine-tune with LoRA

### How to create a Fine-tuning job with LoRA? <a href="#contentify_0" id="contentify_0"></a>

<figure><img src="https://2158065032-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FDB5fvsiFxYI972UDTv%2Fuploads%2FFYs6FyYW2TP57k0DIzeh%2Fimage.png?alt=media&amp;token=8da24e28-7d64-4984-afe9-9ac59ee66ff8" alt=""><figcaption></figcaption></figure>

To fine-tune a model with LoRA, please follow the instructions below:

**Notes**

* You must log in before starting a fine-tune job.
* Ensure you have enough balance (credit).
* At least one base model must be available for fine-tuning.

**Steps**

1. **Go to the Fine-tuning Jobs page** and click **+ Fine-tune model**.
2. In the pop-up, enter the **Name** of your fine-tuning job.
   * Validation: Required, max 100 characters, supports Unicode letters, digits, `-`, `_`, `.`

<figure><img src="https://2158065032-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FDB5fvsiFxYI972UDTv%2Fuploads%2F4fpnXGc2M3ZBjX6gG1HA%2Fimage.png?alt=media&amp;token=fe295251-ee98-4ea5-ad62-40644e18f0e9" alt=""><figcaption></figcaption></figure>

3. **Select a Base model** from the dropdown list.
   * Examples: `gemma-3-27b-it`, `Qwen3-4B-Instruct-2507`, `Llama-3.3-70B-Instruct`
4. **Select dataset format** from the dropdown list: Alpaca/ ShareGPT/ ShareGPT\_Image
5. **Upload your Training data file**.
   * Supported formats: CSV, JSON, JSONL, ZIP, Parquet (<100MB).
6. *(Optional)* **Upload Validation data**.
7. *(Optional)* **Configure hyperparameters**:
   * **Learning rate:** Float, `1e-6 → 1e-4` (e.g., `0.00001`)
   * **Number of epochs:** Integer `1–20` (default = `5`)
8. Click **Create** to start the fine-tuning job.

   * The job will appear in the table with status **Running**.

   > **Note:** Fine-tuning with LoRA usually takes only a few minutes.

***

### How to manage Fine-tuning jobs? <a href="#contentify_1" id="contentify_1"></a>

On the **Fine-tuning Jobs** page, you can:

* **View detail:** Open the pipeline detail in AI Studio.
* **Deploy model:** Once training is completed, deploy the LoRA model.
* **Cancel job:** Cancel a running job (requires confirmation).
* **Delete job:** Permanently delete a job (requires confirmation).

**Status badges**

* **Running** (yellow)
* **Succeeded** (green)
* **Failed** (red)
* **Canceled** (gray)


---

# 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/~/revisions/GkZVtBK6yRi7YYdjkSnZ/ai-marketplace/ai-inference/tutorials/fine-tune-with-lora.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.
