{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "ostris-ai-toolkit--train-a-lora-on-modal-with-ai-toolkit",
 "repo": "ostris/ai-toolkit",
 "repo_url": "https://github.com/ostris/ai-toolkit",
 "repo_slug": "ostris-ai-toolkit",
 "title": "Train a LoRA on a rented GPU with Modal",
 "page_title": "How to train a LoRA on a rented GPU with Modal with AI Toolkit",
 "summary": "Use the README's Modal path to run a training config on a cloud A100 and download the result from a Modal volume.",
 "who": "A creator without a big local GPU.",
 "problem": "Consumer laptops cannot train FLUX LoRAs.",
 "outcome": "A LoRA trained in the cloud and downloaded to your machine.",
 "steps": [
  "Set up AI Toolkit locally, then run `pip install modal` and `modal setup` to authenticate",
  "Run `huggingface-cli login` with a READ token and request access to FLUX.1-dev",
  "Copy an example config from config/examples/modal, edit run_modal.py with your local path, GPU and timeout, then run `modal run run_modal.py --config-file-list-str=/root/ai-toolkit/config/whatever_you_want.yml`",
  "Check results with `modal volume ls flux-lora-models` and download with `modal volume get flux-lora-models your-model-name`"
 ],
 "agent_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.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Advanced",
 "time": "half a day",
 "basis": "readme",
 "caveat": "Follow the example /root/ai-toolkit paths in the Modal config exactly, as the README stresses.",
 "category": "Content",
 "tags": [
  "Content"
 ],
 "lang": "",
 "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "cost",
   "notice": "Modal bills GPU time; the README default is an A100 40GB with a 2 hour timeout."
  },
  {
   "tag": "credentials",
   "notice": "You authenticate Modal and Hugging Face on your machine; never paste those tokens into configs you share."
  }
 ],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/ostris-ai-toolkit/train-a-lora-on-modal-with-ai-toolkit/",
 "md": "https://dedupedai.com/use-cases/ostris-ai-toolkit/train-a-lora-on-modal-with-ai-toolkit/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/ostris-ai-toolkit--train-a-lora-on-modal-with-ai-toolkit.json",
 "api_version": "v1"
}
