Skip to main content
skill CX Codex

train-lora — Claude Code skill for LoRA training checks

train-lora is a Claude Code skill that validates LoRA training with Draw Things through draw-things-cli. It runs local dataset checks and compares generated images with and without the LoRA.

GPL-3.0 ★ 171 updated 2026-11-17

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add drawthingsai/local-code-community --skill train-lora -a claude-code
Open on GitHub

What train-lora does

train-lora checks LoRA training from a short trial run through image comparison. First, build the optimized CLI with bazel build --compilation_mode=opt //Apps:DrawThingsCLI, then run bazel-bin/Apps/DrawThingsCLI for the training and generation commands.

A single-image test uses a local dataset folder containing the image and a matching .txt caption file. The workflow checks runs at 1, 20, 100, and 500 steps, tracking loss, scale, and checkpoint output. For generation checks, it holds the prompt, seed, and settings constant between the base model and the LoRA. Graph compilation in optimized mode can take 5 to 30 minutes on heavy trainers.

What it helps with

  • check graph compilation with a short training run
  • track loss and scale during training
  • verify that a checkpoint contains nonzero LoRA weights
  • compare base and LoRA images under matching settings

Example prompts for the agent

  • Validate Draw Things LoRA training with a small local dataset.
  • Check loss, scale, and checkpoint output during a LoRA run.
  • Compare base-model and LoRA images using identical generation settings.

How to install train-lora

1Skills CLI (Vercel)

npx skills add drawthingsai/local-code-community --skill train-lora -a claude-code

2Manually: put the files in place

~/.claude/skills/train-lora/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/train-lora/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about train-lora

How do I install train-lora in Claude Code?

Run npx skills add drawthingsai/local-code-community --skill train-lora -a claude-code. The skill file is placed at ~/.claude/skills/train-lora/SKILL.md.

What does train-lora do?

It validates Draw Things LoRA training through staged runs, checks loss, scale, and checkpoint output, then compares generated images from the base model and LoRA.

What is required to use train-lora?

It requires draw-things-cli, built with Bazel, a local model, and an image dataset. For a single-image check, the image needs a matching .txt caption file.

Similar skills

SKILL.md skills catalog →

From the same set20

The whole set →
use-draw-things-cli use-draw-things-cli is a Claude Code skill that creates or edits images and generates videos through draw-things-cli. It selects a model and its task-specific guidance. CX Codex +1 ★ 171repo stars use-mcp-with-mcporter use-mcp-with-mcporter is a Claude Code skill that routes Model Context Protocol requests through the MCPorter CLI. It triggers when an agent connects to MCP servers, reads schemas, or runs tools. CX Codex +1 ★ 171repo stars use-web-browse-cli use-web-browse-cli is a Claude Code skill that controls a WebKit browser for website checks. It runs on pages that require JavaScript, user interaction, or sign-in. CX Codex +1 ★ 171repo stars deploy-static-site-with-wrangler deploy-static-site-with-wrangler is a Claude Code skill that uploads static site builds to temporary public Cloudflare URLs. It triggers when someone asks to share or preview built HTML assets. CX Codex +1 ★ 171repo stars skill-creator skill-creator is a Claude Code skill that guides creating, validating, updating, and removing workspace skills. It triggers on requests for reusable workflows or tool integrations. CX Codex +1 ★ 171repo stars init-gpu-server init-gpu-server is a Claude Code skill that prepares a Draw Things GPU server by syncing GPUScript, installing server software, and mounting data disks. CX Codex +1 ★ 171repo stars trainer-integration trainer-integration is a Claude Code skill for adding or refining LoRA training support for models in Draw Things. It covers trainer wiring, checkpoint export, and validation. CX Codex +1 ★ 171repo stars run-longcat-avatar-video run-longcat-avatar-video is a Claude Code skill that orchestrates talking avatar generation via draw-things-cli. It animates a portrait from sound input in LongCat-Video-Avatar 1.5. CX Codex +1 ★ 171repo stars

Project sponsors

Companies that keep this analytics open