What do you want to do?
3 use cases
-
Train a FLUX LoRA from a YAML config
Copy the example FLUX LoRA config, point it at a captioned image folder and run it from the command line.
View prompt
Using ostris/ai-toolkit, set up the venv, build a captioned dataset from <my image folder>, copy train_lora_flux_24gb.yaml into config with my dataset path and a trigger word, and start training with python run.py.
-
Manage training jobs from the web UI, with a token
Start the AI Toolkit UI to start, stop and monitor jobs, and protect it with an auth token when it runs on a server.
View prompt
With ostris/ai-toolkit, build and start the UI from the ui folder with AI_TOOLKIT_AUTH set to a strong random token, and tell me the URL and how to stop it.
-
Train a LoRA on a rented GPU with Modal
Use the README's Modal path to run a training config on a cloud A100 and download the result from a Modal volume.
View prompt
Using ostris/ai-toolkit's Modal guide, prepare a config from config/examples/modal for <my dataset>, update run_modal.py, and give me the exact modal run command and the volume commands to fetch the LoRA.
Quick start with AI Toolkit
- Check you have what it needs: Python >= 3.10 (3.12 recommended), git and a Python venv; An Nvidia GPU with enough memory for the model you train (example configs target 24GB); Node.js > 20 for the web UI, and a Hugging Face token for gated models such as FLUX.1-dev.
- Open ostris/ai-toolkit on GitHub and read the README and license.
- Clone the repo with
git clone https://github.com/ostris/ai-toolkit.gitandcd ai-toolkit, then create a venv withpython3 -m venv venvandsource venv/bin/activate - Install torch as the README shows, then
pip3 install -r requirements.txt - Prepare a dataset folder of jpg, jpeg or png images, each with a .txt caption file of the same name
- Copy
config/examples/train_lora_flux_24gb.yamlinto the config folder, edit it following its comments, and runpython run.py config/whatever_you_want.yml
These steps come from our top use case, Train a FLUX LoRA from a YAML config, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for ostris/ai-toolkit
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forArtists and ML hobbyists who want to train a custom style or subject LoRA on their own GPU.
- Why it is hot13k stars, talked about in 2 AI sources we track
- Sourcegithub.com/ostris/ai-toolkit ยท Back to Hot repos
Requirements
- Python >= 3.10 (3.12 recommended), git and a Python venv
- An Nvidia GPU with enough memory for the model you train (example configs target 24GB)
- Node.js > 20 for the web UI, and a Hugging Face token for gated models such as FLUX.1-dev
Add this badge to your README
Maintain AI Toolkit? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/ostris-ai-toolkit/?utm_source=github&utm_medium=badge&utm_campaign=ostris-ai-toolkit)
HTML
<a href="https://dedupedai.com/use-cases/ostris-ai-toolkit/?utm_source=github&utm_medium=badge&utm_campaign=ostris-ai-toolkit"><img src="https://dedupedai.com/badge/ostris/ai-toolkit.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about AI Toolkit
What is AI Toolkit?
AI Toolkit is an all in one training suite for diffusion models, aimed at consumer hardware. It trains LoRAs for image, edit, video and audio models such as FLUX.1, Qwen-Image, SDXL and Wan 2.2, and runs as a CLI with YAML configs or as a web UI on port 8675, with guides for training on Modal or RunPod. It is an open-source project on GitHub: https://github.com/ostris/ai-toolkit.
How do I use AI Toolkit?
Clone the repo with git clone https://github.com/ostris/ai-toolkit.git and cd ai-toolkit, then create a venv with python3 -m venv venv and source venv/bin/activate; then install torch as the README shows, then pip3 install -r requirements.txt; Prepare a dataset folder of jpg, jpeg or png images, each with a .txt caption file of the same name. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is AI Toolkit for?
Artists and ML hobbyists who want to train a custom style or subject LoRA on their own GPU.
What can I do with AI Toolkit?
3 use cases so far, for example: Train a FLUX LoRA from a YAML config; Manage training jobs from the web UI, with a token; Train a LoRA on a rented GPU with Modal. Each has steps and a copy-paste agent prompt.
What do I need to run AI Toolkit?
Python >= 3.10 (3.12 recommended), git and a Python venv; An Nvidia GPU with enough memory for the model you train (example configs target 24GB); Node.js > 20 for the web UI, and a Hugging Face token for gated models such as FLUX.1-dev.
What are alternatives to AI Toolkit?
Other hot AI repos in Content: Impeccable, Hallmark, OpenMontage, Prompts Chat, Marketingskills.
Is AI Toolkit safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.