> For the complete documentation index, see [llms.txt](https://unsloth.ai/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://unsloth.ai/docs/models/minimax-h3-image/fine-tune-minimax-h3-image.md). Agents can also search and read this documentation through its [MCP server](https://unsloth.ai/docs/~gitbook/mcp).

# Fine-tune MiniMax-H3-Image

Train and use a MiniMax-H3-Image style or subject LoRA locally.

See [MiniMax-H3-Image](https://unsloth.ai/docs/models/minimax-h3-image.md) on how to setup MiniMax-H3-Image first.

### Train a LoRA <a href="#train-a-lora" id="train-a-lora"></a>

Train a style or subject LoRA in Unsloth: 150 steps on 60 tarot cards took about 100 seconds on an RTX PRO 6000.

{% hint style="info" %}
MiniMax-H3-Image LoRA training needs Unsloth 2026.11.5 or newer.
{% endhint %}

**You need:**

* **GPU memory:** 32 GB+ (estimate; tested on 96 GB). bf16 base with 56 GB+ free (45.5 GB peak), else int8 (about 24 GB peak).
* **Disk:** about 95 GB (full 66 GB model + 27 GB INT8 text encoder).
* **Captioned images** of one style or subject. We used 60.
* **A trigger word** in every caption, such as `trtcrd`.

{% stepper %}
{% step %}

#### Pick the model and images <a href="#pick-the-model-and-images" id="pick-the-model-and-images"></a>

Open **Images** → **Train**, set **Model family** to **MiniMax-H3-Image**, then upload images or import an example under **Training images**. We used **1920 Tarot** (60 cards, trigger `trtcrd`).

<div><figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FTIs4lVN6Nn1TatnRPqzF%2Fminimax-h3-image-train-setup.png?alt=media" alt="Train a LoRA panel with MiniMax-H3-Image and the 60 image tarot dataset" width="350"><figcaption><p>Model and dataset</p></figcaption></figure> <figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FhGlvriT5D9YsKKJGQDEX%2Fminimax-h3-image-train-settings.png?alt=media" alt="Train settings with the defaults and a trtcrd sample prompt"><figcaption><p>Defaults plus a sample prompt</p></figcaption></figure></div>
{% endstep %}

{% step %}

#### Check the settings <a href="#check-the-settings" id="check-the-settings"></a>

Defaults: **150 steps**, **rank 32**, **resolution 1024**, **LR 0.00005**, **constant**, **20 warmup steps**. More steps can overcook the style and garble text.

* **Sample prompts** / **Sample every:** preview images during training. We used `a trtcrd of a cat sitting on a throne holding a golden cup, "queen of cats"` every 50 steps.
* **Base precision:** **Auto** = bf16 with 56 GB+ free, else int8 (half the memory; 0.8 vs 0.9 steps/s on an A100 80 GB).

Set an **Adapter name** and click **Start training**.
{% endstep %}

{% step %}

#### Watch the training <a href="#watch-the-training" id="watch-the-training"></a>

The first run spends about 6 minutes downloading and loading. Watch the smoothed orange loss line; click a step number to compare previews.

<figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FBobkLfobrfYIMrtPpACR%2Fminimax-h3-image-train-running.png?alt=media" alt="Training at step 100 of 150 with the loss chart and 45.5 GB peak VRAM"><figcaption><p>bf16 base, RTX PRO 6000: 1.5 steps/s</p></figcaption></figure>

<figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2Fdmqx8r74FupwqhnTWEZM%2Fminimax-h3-image-train-samples.png?alt=media" alt="Tarot style preview of a cat on a throne at step 150" width="560"><figcaption><p>Preview at step 150</p></figcaption></figure>
{% endstep %}

{% step %}

#### Use your LoRA <a href="#use-your-lora" id="use-your-lora"></a>

At the end (about 8 minutes total for us), Unsloth shows **Adapter ready** with the `.safetensors` path and adds the LoRA to the LoRA picker.

<figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2F2PFhVBQDGRZEaEConWWp%2Fminimax-h3-image-train-done.png?alt=media" alt="Training complete with Adapter ready and the Deploy to Create button"><figcaption><p>Finished run</p></figcaption></figure>

Click **Deploy to Create**: Unsloth loads the full 66 GB model (not the FP8 repo) with the LoRA merged in (about 2.5 minutes). Changing the LoRA or its **Weight** needs a reload. Prompt with your trigger word.

<figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FQYdH1WSfzzDBs3ZlSoeh%2Fminimax-h3-image-lora-create.png?alt=media" alt="Create with the tarot LoRA at weight 1 and a tarot style cat card"><figcaption><p>The LoRA in Create: about 3 s per 2048 × 2048 image</p></figcaption></figure>
{% endstep %}
{% endstepper %}

#### Before and after <a href="#before-and-after" id="before-and-after"></a>

Seed 42, 1024 × 1024, enhancer off: `a trtcrd of a cat sitting on a throne holding a golden cup, "queen of cats"` and `a trtcrd of an astronaut standing on the moon holding a lantern, "the explorer"`.

<div><figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2Fkg53StPeOhBWosYeBEkn%2Fminimax-h3-image-lora-cat-before.webp?alt=media" alt="Without the LoRA: photo-like cat on a throne"><figcaption><p>No LoRA</p></figcaption></figure> <figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2F5idj4QIy1DMxo4QWxs88%2Fminimax-h3-image-lora-cat-w06.webp?alt=media" alt="LoRA weight 0.6: illustrated cat"><figcaption><p>Weight 0.6</p></figcaption></figure> <figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FoD4Irr8nLFeWdVOvHUMT%2Fminimax-h3-image-lora-cat-after.webp?alt=media" alt="LoRA weight 1.0: tarot card style cat"><figcaption><p>Weight 1.0</p></figcaption></figure></div>

<div><figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FjEaC0aZLy24V1JEzLzdH%2Fminimax-h3-image-lora-astronaut-before.webp?alt=media" alt="Without the LoRA: astronaut photo"><figcaption><p>No LoRA</p></figcaption></figure> <figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2F7KTnboVty4ipiJY5X4OH%2Fminimax-h3-image-lora-astronaut-after.webp?alt=media" alt="LoRA weight 1.0: tarot card style astronaut"><figcaption><p>Weight 1.0</p></figcaption></figure></div>

* Weight **1.0** gives the full style; **0.6 to 0.8** is subtler.
* The LoRA slightly changes prompts without the trigger word too. Lower the weight or load without it for other work.
* The style is strongest at 1024 × 1024 (the training size) and weaker at 2048 × 2048.


---

# 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://unsloth.ai/docs/models/minimax-h3-image/fine-tune-minimax-h3-image.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.
