# LoRA Training (ai-toolkit + kohya_ss)

AI Toolkit 0.13.42 and Kohya's GUI (kohya_ss) v26.0.0 run side by side in this Launchable on one NVIDIA L40S 48GB; the default base model is FLUX.1-dev.

Updated: 2026-12-02

[Launch on Brev](https://brev.nvidia.com/launchable/deploy?launchableID=env-3M77hJCDpHkAGNvOR4xmmgsC1KA)

- GPU: NVIDIA L40S
- VRAM: 48 GB
- Disk: 256 GiB
- Instance: AWS g6e.2xlarge
- Approximate cost: about USD 2.69 per hour, Brev console list price for AWS g6e.2xlarge, 2026-11-15
- Ports: ai toolkit 8675; kohya gui 7860
- Default model: black-forest-labs/FLUX.1-dev
- Pinned versions: AI Toolkit 0.13.42 (ostris/aitoolkit:0.13.42); Kohya's GUI (kohya_ss) v26.0.0 (ghcr.io/bmaltais/kohya-ss-gui:v26.0.0)
- Licences: AI Toolkit: MIT; Kohya's GUI (kohya_ss): Apache-2.0
- Launchable ID: env-3M77hJCDpHkAGNvOR4xmmgsC1KA

## What it runs

AI Toolkit by Ostris, licensed under the MIT License, handles datasets, the job queue and sample previews.

Kohya's GUI (kohya_ss) by bmaltais, licensed under Apache-2.0, runs sd-scripts training with full control. sd-scripts by kohya-ss is licensed under Apache-2.0.

The default base model is black-forest-labs/FLUX.1-dev. It is gated on Hugging Face, so a Hugging Face token is required.

## Production notes

- AI Toolkit listens on port 8675. Kohya's GUI listens on port 7860.
- Reach a UI from your machine with `brev port-forward INSTANCE_NAME --port 8675:8675`.
- All data is on the instance under ~/workspace/lora-training. It survives a stop and start and is removed when the instance is deleted.
- Storage is still billed while the instance is stopped.
- Deleting the instance removes all data, including trained LoRAs.

## Which guides help you train a LoRA?

- [Train a FLUX LoRA on a cloud GPU](https://www.9owls.com/guides/train-a-flux-lora-on-a-cloud-gpu/): a training job step by step, why a Hugging Face token is needed, and where datasets and LoRAs are kept.
- [How to deploy a Launchable on NVIDIA Brev](https://www.9owls.com/guides/deploy-a-launchable-on-nvidia-brev/): open the link, deploy with the setup values it asks for, and wait until the instance shows Running.
- [How to stop and delete an NVIDIA Brev instance](https://www.9owls.com/guides/stop-start-and-delete-an-nvidia-brev-instance/): what Stop, Start and Delete change, and how each is billed.
- [Run ComfyUI on a cloud GPU](https://www.9owls.com/guides/run-comfyui-on-a-cloud-gpu/): run ComfyUI with a pinned set of custom-node packs in the ComfyUI Pro Launchable.
- [Which GPU does each Launchable default to?](https://www.9owls.com/compare/nvidia-l4-vs-l40s-for-llm-inference/): GPU memory of the two default cards compared, with the Launchables on each.
- [Brev Launchables FAQ](https://www.9owls.com/faq/brev-launchable-basics/): short answers on billing, stop and delete, what persists and how to choose a GPU.

## Source

Public source folder: [https://github.com/ashishsalve/gpu-launchables/tree/main/lora-training](https://github.com/ashishsalve/gpu-launchables/tree/main/lora-training)

- [AI Toolkit](https://github.com/ostris/ai-toolkit)
- [Kohya's GUI](https://github.com/bmaltais/kohya_ss)

The README there covers quick facts, deploying in three steps, settings, data persistence, stop, start and delete, troubleshooting and an FAQ.

## Keep it running

Have your own stack like this? NightKeeper packages your repository as an NVIDIA Brev Launchable, proves it on a fresh GPU and keeps it running.

Your Brev API key stays in your repository's GitHub secrets. NightKeeper never sees it.

[Create your Launchable](https://www.9owls.com/nightkeeper/start/) or [read about NightKeeper](https://www.9owls.com/nightkeeper/).

## Related Launchables

- [LlamaFactory (LlamaBoard)](https://www.9owls.com/launchables/llama-factory/): LlamaFactory brings no-code fine-tuning of open LLMs to the browser: its LlamaBoard web UI runs LoRA, QLoRA and full fine-tuning, from dataset to exported model.
- [ComfyUI Pro](https://www.9owls.com/launchables/comfyui-pro/): ComfyUI Pro is ComfyUI with ComfyUI-Manager and a pinned, audited set of custom-node packs, in one prebuilt container image on a single NVIDIA GPU.
- [Wan 2.2 Video Studio (ComfyUI)](https://www.9owls.com/launchables/open-video-studio/): Wan 2.2 Video Studio generates video from text or an image with the Wan 2.2 models in ComfyUI, on your own GPU.
