train-character-lora
Skill by artokun
Trains a character or identity LoRA for FLUX.1-dev on a local GPU using the comfyui-mcp train_* tools and ostris ai-toolkit. It is built for users who want a LoRA of a person from their own photos.
Install train-character-lora
Built from the published package, never by AI.
git clone --depth 1 https://github.com/artokun/comfyui-mcp /tmp/comfyui-mcp && mkdir -p ~/.claude/skills && cp -r /tmp/comfyui-mcp/plugin/skills/train-character-lora ~/.claude/skills/train-character-loraRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/artokun/comfyui-mcp /tmp/comfyui-mcp && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/comfyui-mcp/plugin/skills/train-character-lora ~/.gemini/antigravity-cli/skills/train-character-loraAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install train-character-lora in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill trains a character or identity LoRA on FLUX.1-dev on a local GPU. It drives the comfyui-mcp train_* tools, which run ostris ai-toolkit's run.py inside a headless GPU Docker container. The assistant checks the trainer, prepares a dataset of 10 to 30 varied images with a rare trigger word, launches the job, and polls its progress without blocking.
When a run completes, the LoRA is copied to ComfyUI models/loras/ and added to the LoRA catalog. The skill also gives default parameters, guidance on judging samples and loss, and fixes for common failures such as out-of-memory errors. It is aimed at users who want a LoRA of a person or character from their own photos. WAN and Z-Image training are covered by a separate ai-toolkit-trainer skill.
Written from the project's SKILL.md and checked against it.
What it can do
- train_doctorPreflight checks for Docker, GPU passthrough, the trainer image and HF_TOKEN, and can build the image.
- train_prepare_datasetStages training images with captions into a named dataset, copying and renaming them.
- train_startLaunches a detached training job, reports its status and progress, and can cancel it.
- Dataset guidanceAdvice on image count, variety, rare trigger words and short factual captions.
- Parameter defaultsDefault steps, learning rate, rank, resolution and save or sample intervals with guidance on changes.
- Result handoffCopies the finished .safetensors into ComfyUI models/loras/ and upserts the LoRA catalog.
What you need
- Docker with GPU passthrough (--gpus all)
- NVIDIA GPU with about 24GB VRAM, RTX 4090 class
- HF_TOKEN set in the MCP server env for the gated FLUX.1-dev repo
- comfyui-mcp with the train_* tools
- ComfyUI
Try asking
- Train a character LoRA of me from these 20 photos on my local GPU
- Check whether my Docker trainer setup is ready for LoRA training
- Show the progress and loss of my running LoRA training job
Good to know
- Phase-1 scope covers character LoRAs only, not style, slider or edit LoRAs.
- Base model is FLUX.1-dev, and it needs about 24GB VRAM with quantization.
- The first run downloads FLUX.1-dev (about 24GB) and is slow before step 1.
- If the handoff fails, the LoRA must be copied into models/loras/ manually.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugin/skills/train-character-lora/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB
Alternatives to train-character-lora
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
train-character-lora: common questions
How many images do I need to train a character LoRA?
The source recommends 10 to 30 varied images of the subject, with different angles, expressions, lighting, backgrounds and distances. Variety is preferred over count.
How long does a training run take?
The source says a 2000-step run is roughly an hour on a 4090. Training runs detached, so the assistant polls its status rather than waiting.
Does this skill work for WAN or Z-Image LoRAs?
No. The source says WAN and Z-Image training through the ai-toolkit UI is covered by a separate skill called ai-toolkit-trainer.
How do I install train-character-lora?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is train-character-lora free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is train-character-lora safe to use?
It scores 74 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to train-character-lora?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
