// guide

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

Published

On this page

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 (external site), read 2026-11-16.

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

  1. Launch the LoRA Training Launchable on NVIDIA Brev. New to Launchables? Read how to 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 (external site) 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) (external site) 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 starts with these defaults:

ItemLoRA Training Launchable
GPUNVIDIA L40S 48GB
Instance typeAWS g6e.2xlarge
Priceabout $2.69/hr (Brev console, 2026-11-15)
Disk256 GiB
TrainersAI Toolkit 0.13.42 (port 8675), Kohya's GUI v26.0.0 (port 7860)
Default base modelblack-forest-labs/FLUX.1-dev
Kept across stop and startEverything under ~/workspace/lora-training
Removed by deleteAll data, including trained LoRAs

To see which other Launchables run on the NVIDIA L40S, read 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 (external site), 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.

The stop, start and delete guide 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.

TrainerPortCommand
AI Toolkit8675brev port-forward INSTANCE_NAME --port 8675:8675
Kohya's GUI7860brev port-forward INSTANCE_NAME --port 7860:7860

Where do I start, and what comes next?

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 in a 4-step form, or read how NightKeeper works.

Sources: where do these facts come from?

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.

All guides