> 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/basics/fine-tune-video-models-with-lora.md). Agents can also search and read this documentation through its [MCP server](https://unsloth.ai/docs/~gitbook/mcp).

# Fine-tuning Video Models with LoRA locally

Train a video LoRA in Unsloth from your own images or clips, with examples for LTX-2.5 and MiniMax-H3.

A LoRA is a small add-on that teaches a video model a new style or subject. In Unsloth you train one on the **Video** page without writing code, then use it to generate videos. LTX-2.5 learns from **still images**, so you can train a video style from 10 to 50 pictures. MiniMax-H3 learns picture and sound together from short **clips with audio**.

Each example shows the same prompt and seed without (left) and with (right) a LoRA trained in Unsloth. Previews are downscaled and loop.

<div><figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FVEkVb0lEthdEt2Ugagvl%2Fltx-2.5-train-cat-off-loop.webp?alt=media" alt="Video: a cat sitting on a sofa in a warm living room with lamps"><figcaption><p>LTX-2.5 without the LoRA</p></figcaption></figure> <figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2F7Ao51avVw9jFd9EkuhsV%2Fltx-2.5-train-cat-lora-loop.webp?alt=media" alt="Video: a neon line-art cat on an orange sofa over glowing stripes and rings"><figcaption><p>With a LoRA trained on 16 neon line-art images</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%2FY40HyPvTZusQH0RDXU4I%2Fminimax-h3-lora-studio-before.webp?alt=media" alt="Without the LoRA: a realistic meadow with a big oak tree and a small stream under a blue sky"><figcaption><p>MiniMax-H3 without the LoRA</p></figcaption></figure> <figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FQxzr4zJRmMzlFE6OHCDi%2Fminimax-h3-lora-studio-after.webp?alt=media" alt="With the LoRA: the same meadow in a 3D animated film look, with a stylized oak tree, bright green grass and a small stream"><figcaption><p>With a LoRA trained on 12 one-second clips</p></figcaption></figure></div>

## Which models you can train

| Model                     | Training data                             | GPU                                             | Default steps, rank, learning rate, resolution | Previews while training |
| ------------------------- | ----------------------------------------- | ----------------------------------------------- | ---------------------------------------------- | ----------------------- |
| [LTX-2.5](#ltx-2.5)       | 10 to 50 still images with captions       | NVIDIA with bf16 (Ampere or newer), about 24 GB | 500, 32, 0.0001, 512                           | No                      |
| [MiniMax-H3](#minimax-h3) | Short video clips with sound and captions | 80 GB+ suggested (49.7 GB peak in our run)      | 500, 16, 0.0001, 768 (short edge)              | No                      |

Both use a constant schedule with 20 warmup steps, and **Base precision Auto** picks the frozen base's precision by free GPU memory. Video LoRAs are merged into the model when it loads, so after adding, removing or reweighting a LoRA, click **Reload to apply**. For image models, see [How to Run Image Diffusion Models Locally with Unsloth](https://unsloth.ai/docs/basics/diffusion-image.md) and each model's fine-tune guide.

## How to train a video LoRA from images

This walkthrough uses LTX-2.5, which trains on still images: the LoRA learns a look or subject from pictures and applies it to every frame it generates.

{% hint style="info" %}
LTX-2.5 LoRA training is available in [Unsloth Desktop v0.1.920-beta](https://github.com/unslothai/unsloth/releases/tag/v0.1.920-beta) and later builds. [Update Unsloth](https://unsloth.ai/docs/get-started/install/updating) if the model isn't in Train.
{% endhint %}

**You need:**

* An NVIDIA GPU with bf16 support (Ampere or newer). Unsloth suggests about **24 GB**. LTX-2.5 cannot train on a T4, on the CPU or on a Mac.
* **10 to 50 images** of one style or subject.
* A **trigger word** in every caption, such as `sks neon style`, to turn the LoRA on in prompts.
* For the best results, a Hugging Face token that has accepted the license of [Lightricks/LTX-2.5-Diffusers](https://huggingface.co/Lightricks/LTX-2.5-Diffusers), so Unsloth trains the dev model (see [Which model trains](https://unsloth.ai/docs/models/ltx-2.5/fine-tune-ltx-2.5.md#which-model-trains)).

{% stepper %}
{% step %}

#### Prepare your images

* **Formats:** PNG, JPG, WebP or BMP.
* **Captions:** a `.txt` (or `.caption`) file with the same name next to each image, for example `neon_00.png` and `neon_00.txt`, or a `metadata.jsonl` with one line per image, such as `{"file_name": "neon_00.png", "text": "a geometric composition, sks neon style"}`.
* **Trigger word:** put it in every caption. Images without a caption use the **Trigger prompt**; with no trigger prompt they are skipped.

<figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FPGky0q7MhXoUGj13gu1s%2Fltx-2.5-train-data.webp?alt=media" alt="One neon training image with magenta, cyan and yellow rings and stripes on black" width="192"><figcaption><p>One of our 16 training images, captioned "a geometric composition, sks neon style"</p></figcaption></figure>
{% endstep %}

{% step %}

#### Open Train and pick LTX-2.5

On the **Video** page, click **Train**. Click the model name at the top left and pick **Lightricks/LTX-2.5-Diffusers** under **LTX-2.5**. Training fetches only what it needs: the VAEs, connectors, scheduler and INT8 Gemma 4 text encoder (about 13 GB) from `unsloth/LTX-2.5-FP8`, and the 38 GB dev video model from `Lightricks/LTX-2.5-Diffusers`.
{% endstep %}

{% step %}

#### Add your images

Under **Training images**, pick **Upload new images...** and upload the images with their captions, or start from an example dataset. Set an **Adapter name** (the LoRA's name on the Video page).
{% endstep %}

{% step %}

#### Check the settings

Defaults: **500 steps**, **rank 32**, learning rate **0.0001**, **512** px, constant schedule with **20 warmup steps**. Resolution must be a multiple of 32.

<figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2F2hnEQuUn0JdAKzYFs0gG%2Fltx-2.5-train-setup-lossless.png?alt=media" alt="The Video page Train tab with LTX-2.5-Diffusers picked: 30 steps, rank 32, resolution 512, learning rate 0.0001, constant with warmup, 20 warmup steps, base precision Auto"><figcaption><p>Train settings, steps lowered to 30 for a short test</p></figcaption></figure>

**Base precision:** **Auto** picks bf16 with more than about 63 GB of free GPU memory, INT8 with more than about 48 GB, and nf4 otherwise. **nf4** uses the least memory.
{% endstep %}

{% step %}

#### Start training

Click **Start training**. Unsloth first encodes your captions with the text encoder, then closes the encoder and loads the video model, so the two are never on the GPU together. The loss is noisy; watch the smoothed line.

<figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FK8ttftXVVwwZxpakzgnO%2Fltx-2.5-train-progress-lossless.png?alt=media" alt="Training progress at step 11 of 30 with loss 0.6475, speed 0.46 images per second and 11.8 GB peak VRAM" width="720"><figcaption><p>Training on an NVIDIA L4 (24 GB)</p></figcaption></figure>

<figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FhvWHw72vl7ZVD21oZVut%2Fltx-2.5-train-done-lossless.png?alt=media" alt="Training complete at 30 of 30 steps, Adapter ready with Deploy to Video, Export and Train another, and the training loss chart" width="720"><figcaption><p>A finished run</p></figcaption></figure>
{% endstep %}

{% step %}

#### Use the LoRA

When **Adapter ready** appears, click **Deploy to Video**. Unsloth loads the model with your LoRA at weight 1 and puts your **Trigger prompt** in the prompt box. Prompt with your trigger word and click **Generate**.

<figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FxjAvN9zGZM7dHUyVeyKb%2Fltx-2.5-train-loras-lossless.png?alt=media" alt="The LoRAs field on the Video page with neon-ltx25 at weight 1, baked into the loaded model" width="340"><figcaption><p>The LoRA after Deploy to Video</p></figcaption></figure>

To add it yourself, load the model on the Video page, click **Add LoRA**, pick your LoRA, then click **Reload to apply**.
{% endstep %}
{% endstepper %}

## Examples by model

### LTX-2.5

**Training data:** still images. Our reference run used 16 neon line-art images, an nf4 base, rank 32, learning rate 0.0002, 512 px and 300 steps on an A100 80 GB (Colab). The mean loss per 50 steps fell from 1.39 to about 1.00. It trained at 1.07 images/s and took about 10 minutes including the downloads.

| Memory                                 | A100 80 GB, nf4 |
| -------------------------------------- | --------------- |
| Training loop peak                     | 11.7 GB         |
| Whole GPU peak (text encoder included) | 22.9 GB         |
| System RAM, training processes         | 20.5 GB         |

A 30-step test with the defaults (Auto picked nf4) also trains on an NVIDIA L4 (24 GB): 0.46 images/s and an 11.8 GB peak in the training loop.

Seed 7, 768 × 512, 25 frames at 24 fps, 8 steps, guidance 1; only the LoRA weight changes. Prompt: `a cat sitting on a sofa in a cozy living room, sks neon style`

<div><figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FVEkVb0lEthdEt2Ugagvl%2Fltx-2.5-train-cat-off-loop.webp?alt=media" alt="Video: a cat sitting on a sofa in a warm living room with lamps"><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%2FqqMkXyY8wM5ZPBNM5BCu%2Fltx-2.5-train-cat-05-loop.webp?alt=media" alt="Video: a woman in a green cardigan on a striped sofa, with neon lines on the wall and the TV"><figcaption><p>Weight 0.5</p></figcaption></figure> <figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2F7Ao51avVw9jFd9EkuhsV%2Fltx-2.5-train-cat-lora-loop.webp?alt=media" alt="Video: a neon line-art cat on an orange sofa over glowing stripes and rings"><figcaption><p>Weight 1</p></figcaption></figure></div>

Prompt: `a mountain landscape at sunset with a lake, sks neon style`

<div><figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2Fa7JiKsX0iCYWHCKidrtl%2Fltx-2.5-train-sunset-off-loop.webp?alt=media" alt="Video: a lake winding between mountains at sunset"><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%2Fn8xJm7XT2ZQtFZrMkjn0%2Fltx-2.5-train-sunset-05-loop.webp?alt=media" alt="Video: the valley and lake at sunset from a grassy ridge"><figcaption><p>Weight 0.5</p></figcaption></figure> <figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FhUyvvvz3EUEQbEdQXbFB%2Fltx-2.5-train-sunset-lora-loop.webp?alt=media" alt="Video: the lake at sunset drawn over glowing neon rings"><figcaption><p>Weight 1</p></figcaption></figure></div>

Weight 0.5 adds neon accents; weight 1 turns the scene into the training style.

* Unsloth trains the **dev** model when your Hugging Face token can read `Lightricks/LTX-2.5-Diffusers`, and otherwise the mirror's **distilled** model. Either way, the LoRA runs on the Video page's distilled model.
* With a LoRA, Unsloth loads the bf16 distilled video model and merges the LoRA into it; the first LoRA load downloads about 42 GB. The **GGUF** and **Single file** entries take no LoRAs.

Full guide: [Fine-tune LTX-2.5](https://unsloth.ai/docs/models/ltx-2.5/fine-tune-ltx-2.5.md).

### MiniMax-H3

**Training data:** video clips with sound. MiniMax-H3 learns picture and audio together, so every clip needs a soundtrack; it cannot train on still images. This example teaches the look of *Big Buck Bunny* (CC BY 3.0, Blender Foundation) with the trigger `bbbstyle`: 12 one-second clips, 400 steps, default settings.

* **Formats:** `.mp4`, `.mov`, `.mkv`, `.webm`, `.m4v`, `.avi`, each with a `.txt` caption of the same name (`clip01.mp4` and `clip01.txt`) that starts with the trigger.
* Unsloth trains the first 22 frames (0.92 s) of each clip at 24 fps, center-cropped to a 768 px short edge. Sound must cover the whole clip; silent clips are refused.
* On the Video page, click **Train**, upload the clips under **Training images**, then pick **MiniMaxAI/MiniMax-H3** from the model menu. It appears there only once a set of clips exists.

<figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FOCh4qLqcFJo97JERYZRl%2Fminimax-h3-train-clips.webp?alt=media" alt="Twelve frames from the twelve Big Buck Bunny training clips: meadows, a big white rabbit, a squirrel, a forest and a flying squirrel"><figcaption><p>The 12 training clips</p></figcaption></figure>

<figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FaFngitov5N6zNPcHmoCp%2Fminimax-h3-train-progress-lossless.png?alt=media" alt="Training at step 95 of 400 with loss 0.7323, average loss 0.6318, speed 0.25 clips per second, 49.7 GB peak VRAM and the training loss chart"><figcaption><p>Step 95 of 400, about 4 s per step</p></figcaption></figure>

The run finished at loss 0.61 (video 0.44, audio 0.17) in 36 minutes: 9 to load and encode, 27 to train. **Deploy to Video** loads the original bf16 MiniMax-H3 with the LoRA merged in (the first load downloads about 144 GB; the GGUF and Fast FP8 entries cannot load LoRAs).

864 × 480, 5.2 s, 20 steps, seed 42. Prompt: `bbbstyle, a sunny meadow with a big oak tree and a small stream, birds chirping`

<div><figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FY40HyPvTZusQH0RDXU4I%2Fminimax-h3-lora-studio-before.webp?alt=media" alt="Without the LoRA: a realistic meadow with a big oak tree and a small stream under a blue sky"><figcaption><p>Without LoRA</p></figcaption></figure> <figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FQxzr4zJRmMzlFE6OHCDi%2Fminimax-h3-lora-studio-after.webp?alt=media" alt="With the LoRA: the same meadow in a 3D animated film look, with a stylized oak tree, bright green grass and a small stream"><figcaption><p>With bbbstyle LoRA, 200 steps</p></figcaption></figure></div>

<figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2Fn6sB4m3vtneQRQmEWwij%2Fminimax-h3-lora-flow.webp?alt=media" alt="Animation: click Deploy to Video, choose Text and frames, wait for the load, type the bbbstyle prompt, click Generate and play the result"><figcaption><p>Deploy to Video, sped up</p></figcaption></figure>

Full guide, including using the LoRA from Python with diffusers: [Fine-tune MiniMax-H3](https://unsloth.ai/docs/models/minimax-h3/fine-tune-minimax-h3.md).

## Tips

* **Use the trigger word** in your prompts.
* **Weight:** 1 gives the full style; around 0.5 adds accents.
* **Changed a LoRA?** Click **Reload to apply**: video LoRAs are merged when the model loads.
* **Out of memory:** keep **Base precision** on **Auto** (or pick nf4) and gradient checkpointing on.


---

# 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/basics/fine-tune-video-models-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.
