lora-trainer SKILL.md skillB
lora-trainer from rinne414/lora-training-skill is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add rinne414/lora-training-skill/lora-trainer@git:20261026.def0accPins git:20261026.def0acc in mdr.lock. Pin the fingerprint instead.
- Audit grade
- B, 16 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- rinne414/lora-training-skill
- Path
lora-trainer/SKILL.md- Versions recorded
- 5
- Latest version
- git:20261026.def0acc, committed Oct 26, 2026
- First version recorded
- Oct 26, 2026
- Size
- 21,556 bytes
- Repository stars
- 13
- License
- MIT
Prepare and launch LoRA, LoKr, or T-LoRA training through lora-scripts-next (SD-Trainer), Anima-first. Use when the user asks to train a character, style, or concept LoRA, choose parameters or repeats and epochs, start a run, or monitor training on Anima, SD1.5, SDXL, or Flux. Organize and caption the dataset, run dataset-doctor, choose a documented starting preset from image count and VRAM, show one confirmation card, then call the mikazuki API and monitor its log.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# lora-trainer — LoRA 训练编排入口 把「训练一个 LoRA」的意图,变成一次受控的训练:准备数据 → 体检 → 组装配置 → **用户确认** → 通过 trainer API 开训 → 监看 log。本 skill 默认 **Anima 优先**,也支持 SD1.5 / SDXL / Flux。 > 训练耗时、占显存、难回退。**在 `POST /api/run` 之前必须把组装好的配置摊给用户、明确确认**;未确认不开训。 底层 = `lora-scripts-next`(SD-Trainer)的 `mikazuki` FastAPI(`http://127.0.0.1:28000`,路由前缀 `/api`)。完整契约见 `../references/trainer-api.md`。 ## 适用范围(用户用的不是 SD-Trainer 时怎么办) 本 skill 的**开训与打标只针对 SD-Trainer** 的 mikazuki API——`trainer-api.md` 的契约只对它成立。**绝不要**把这套 `/api/run` body 发给别的训练器(kohya_ss GUI、OneTrainer、ai-toolkit…),它们的 API 完全不同。用户在用别的训练器时,按可移植性分层处理: 1. **体检照做**:`dataset-doctor` 与 `fix_dataset.py` 是训练器无关的(标准 kohya `<repeats>_<concept>` + sidecar caption 约定),完整可用,全程离线。 2. **参数知识可借用**:`anima-params.md` / `presets.md` 的键就是 kohya sd-scripts 词汇(`network_dim`、`unet_lr`、repeats/epochs 步数预算)。可以据此给参数建议,或替用户生成一份 kohya 风格 TOML / 命令行,让他们在自己的训练器里手动跑。 3. **不自动开训**:明确告知「自动开训只支持 SD-Trainer」,给两条路——装 SD-Trainer(见 README),或拿第 2 点生成的配置自己跑。 `/api/version` 连不上 ≠ 中止一切:数据整理、体检、修复全部离线可做;开训需要 trainer 在线,打标则按底模需要已配置的 sd-image-sorter 或 trainer 端点。 ## 两条路径 - **快速通道(默认)**:用户只给**一个图片文件夹**。结构整理、打标、体检、修复、选参全部自动;用户只看一张「确认卡」。一般用户走这条。 …
Read the whole file at its exact version.
How to install
mdr add rinne414/lora-training-skill/lora-trainer@sha256:1d9bd014c4858f81The line at the top of this page pins the label git:20261026.def0acc, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_pdlhj7kpans2at44)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, all committed on Oct 26, 2026.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261026.def0acc latest | 2026-10-26 | def0acc | 21,556 B | B | view · diff |
| git:20261026.12aa707 | 2026-10-26 | 12aa707 | 18,418 B | B | view · diff |
| git:20261026.0e810f4 | 2026-10-26 | 0e810f4 | 16,609 B | B | view · diff |
| git:20261026.75d31e9 | 2026-10-26 | 75d31e9 | 14,705 B | B | view · diff |
| git:20261026.d8fdbf6 | 2026-10-26 | d8fdbf6 | 13,343 B | B | view |
Audit of the latest version
- fail: No link to a raw IP address (matched: http://127.0.0.1:28000)
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (21556 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No script tag
Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.
Source
rinne414/lora-training-skill · 13 stars · license MIT · pushed 2026-10-26 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_pdlhj7kpans2at44 GET https://markdownregistry.com/api/v1/resolve?ref=rinne414/lora-training-skill/lora-trainer GET https://markdownregistry.com/api/v1/blob/1d9bd014c4858f81a7d2ce16fd95a4c38015a05f95f9c474dae79bb83aed16e4
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.