# Train a FLUX LoRA on a cloud GPU

To train a FLUX LoRA on a cloud GPU, start an NVIDIA Brev instance with enough GPU memory for the base model, run a trainer such as AI Toolkit or Kohya's GUI, and keep your dataset and trained LoRA files in the instance workspace, which survives a stop and start.

Updated: 2026-12-03

Published: 2026-11-16

## What is a LoRA?

LoRA (low-rank adaptation) represents the weight updates of a model with two smaller update matrices. The original pre-trained weights stay frozen, so the number of trainable parameters drops sharply. The result is a small, portable LoRA file that you load on top of the base model. Source: the [Hugging Face PEFT LoRA guide](https://huggingface.co/docs/peft/main/en/conceptual_guides/lora), read 2026-11-16.

## How do I run a FLUX LoRA training job, step by step?

1. Launch the [LoRA Training Launchable](https://www.9owls.com/launchables/lora-training/) on NVIDIA Brev. New to Launchables? Read [how to deploy a Launchable on NVIDIA Brev](https://www.9owls.com/guides/deploy-a-launchable-on-nvidia-brev/).
2. Give the Launchable your Hugging Face token, so it can download the gated base model `black-forest-labs/FLUX.1-dev`.
3. Forward the AI Toolkit port to your machine with `brev port-forward INSTANCE_NAME --port 8675:8675`.
4. In AI Toolkit, add your dataset, queue the training job and watch the sample previews.
5. Keep datasets and trained LoRAs under `~/workspace/lora-training`, which survives a stop and start.
6. Copy your LoRA files off the instance before you delete it.

## What do AI Toolkit and Kohya's GUI each do?

[AI Toolkit](https://github.com/ostris/ai-toolkit) by Ostris describes itself as a training toolkit for finetuning diffusion models. It is licensed under the MIT License. In the 9owls Launchable it handles datasets, the job queue and sample previews.

[Kohya's GUI (kohya_ss)](https://github.com/bmaltais/kohya_ss) by bmaltais is a GUI and CLI for training diffusion models. It runs LoRA, LoHa, LoKr, Dreambooth, fine-tuning and Textual Inversion training, and lists Flux.1 among its supported base models. It is licensed under Apache-2.0. Both repositories were read on 2026-11-16.

## Which GPU and disk does the LoRA Training Launchable start with?

The [LoRA Training Launchable](https://www.9owls.com/launchables/lora-training/) starts with these defaults:

| Item | LoRA Training Launchable |
|---|---|
| GPU | NVIDIA L40S 48GB |
| Instance type | AWS `g6e.2xlarge` |
| Price | about $2.69/hr (Brev console, 2026-11-15) |
| Disk | 256 GiB |
| Trainers | AI Toolkit 0.13.42 (port `8675`), Kohya's GUI v26.0.0 (port `7860`) |
| Default base model | `black-forest-labs/FLUX.1-dev` |
| Kept across stop and start | Everything under `~/workspace/lora-training` |
| Removed by delete | All data, including trained LoRAs |

To see which other Launchables run on the NVIDIA L40S, read [NVIDIA L4 vs L40S for LLM inference](https://www.9owls.com/compare/nvidia-l4-vs-l40s-for-llm-inference/).

## How long does a FLUX LoRA take to train?

We have not yet recorded our own fresh-deploy test or a training run of this Launchable, so this page gives no start-up or training time. Before you plan a long run on a paid GPU, queue a short job first and time it yourself.

## Why is a Hugging Face token needed?

The default base model, `black-forest-labs/FLUX.1-dev`, is gated on Hugging Face. The Launchable needs your Hugging Face token to download it.

## Where are datasets and trained LoRAs kept across stop and start?

All data sits on the instance under `~/workspace/lora-training`. It survives a stop and start of the instance. On NVIDIA Brev, `/home/ubuntu/workspace` persists on stop and `/tmp` does not ([GPU instances](https://docs.nvidia.com/brev/latest/concepts/gpu-instances), read 2026-11-16).

- Stop: data under `~/workspace/lora-training` is kept.
- Start: the same files under `~/workspace/lora-training` are there again.
- Stopped: storage is still billed.
- Delete: all data, including trained LoRAs, is removed and cannot be undone.

> **Warning:** Copy your LoRA files off the instance before you delete it.

The [stop, start and delete guide](https://www.9owls.com/guides/stop-start-and-delete-an-nvidia-brev-instance/) explains each action on NVIDIA Brev.

## How do I open the trainer web UIs?

Each trainer has its own web UI port. Forward a port from the instance to your machine with `brev port-forward`.

| Trainer | Port | Command |
|---|---|---|
| AI Toolkit | `8675` | `brev port-forward INSTANCE_NAME --port 8675:8675` |
| Kohya's GUI | `7860` | `brev port-forward INSTANCE_NAME --port 7860:7860` |

## Where do I start, and what comes next?

- Start training: launch the [LoRA Training Launchable](https://www.9owls.com/launchables/lora-training/) on NVIDIA Brev.
- Generate images: see [how to run ComfyUI on a cloud GPU](https://www.9owls.com/guides/run-comfyui-on-a-cloud-gpu/).
- Other training stacks: browse the [fine-tuning topic](https://www.9owls.com/topics/fine-tuning/), including LlamaFactory for open LLMs.

## Can my own training setup become a Launchable?

NightKeeper packages your repository as an NVIDIA Brev Launchable, proves it on a fresh GPU and keeps it running. Point it at the repository that holds your training setup, review the pull request it opens, then create the Launchable in the Brev console. Your Brev API key stays in your repository's GitHub secrets; NightKeeper never sees it.

[Create your Launchable](https://www.9owls.com/nightkeeper/start/) in a 4-step form, or read how [NightKeeper](https://www.9owls.com/nightkeeper/) works.

## Sources: where do these facts come from?

- [Hugging Face PEFT LoRA guide](https://huggingface.co/docs/peft/main/en/conceptual_guides/lora), read 2026-11-16.
- [AI Toolkit on GitHub](https://github.com/ostris/ai-toolkit), read 2026-11-16.
- [Kohya's GUI on GitHub](https://github.com/bmaltais/kohya_ss), read 2026-11-16.
- [NVIDIA Brev GPU instances](https://docs.nvidia.com/brev/latest/concepts/gpu-instances), read 2026-11-16.
- [LoRA Training Launchable README](https://github.com/ashishsalve/gpu-launchables/blob/main/lora-training/README.md), read 2026-11-28.
- Brev console price for AWS `g6e.2xlarge`, read 2026-11-15.

## How was this page made?

9owls publishes this page. The price comes from a Brev console read on 2026-11-15; the trainer and LoRA facts come from the upstream sources listed above, with read dates.

- What changed on 2026-12-03: removed the trainer start-up time and its 2026-11-14 test table, because we hold no record of that test. The page now states that no start-up or training time has been measured by us.
- What changed on 2026-11-28: added a trainer start-up time, a clear statement that no training time was measured, and a dated hourly price.
- Found an error? Tell us through the [contact page](https://www.9owls.com/company/#contact).

## Related pages

- [LoRA Training (ai-toolkit + kohya_ss)](https://www.9owls.com/launchables/lora-training/)
- [Fine-tuning](https://www.9owls.com/topics/fine-tuning/)
- [How to deploy a Launchable on NVIDIA Brev](https://www.9owls.com/guides/deploy-a-launchable-on-nvidia-brev/)
- [Stop, start and delete an NVIDIA Brev instance](https://www.9owls.com/guides/stop-start-and-delete-an-nvidia-brev-instance/)
- [LlamaFactory (LlamaBoard)](https://www.9owls.com/launchables/llama-factory/)

[All guides](https://www.9owls.com/guides/)
