本文へ移動
cccskills
無料GitHub で公開

lora-trainer-guide

Use when helping users configure LoRA training — select presets, understand parameters, and pick the right settings for their model type. Covers SD1.5, SDXL, SD3, and Flux1 with real-world presets.

インストール方法を見る

含まれるファイル(42)

  • SKILL.md6.2 KB
  • presets/dreambooth_sd3_bdsqlsz_v1.json3.9 KB
  • presets/dreambooth_sd3_bdsqlsz_v2.json3.9 KB
  • presets/finetune_adafactor.json1.6 KB
  • presets/finetune_lion.json1.5 KB
  • presets/finetune_SDXL - AI_Now PagedAdamW8bit v1.0.json2.2 KB
  • presets/finetune_SDXL - Essenz series by AI_Characters_Training v1.0.json2.7 KB
  • presets/knx-skills-2.8.zip455.8 KB
  • presets/lora_flux1D - adamw8bit fp8.json4.7 KB
  • presets/lora_iA3-Prodigy-sd15.json1.1 KB
  • presets/lora_ia3-sd15.json2.5 KB
  • presets/lora_locon-dadaptation-sdxl.json2.6 KB
  • presets/lora_loha-sd15.json2.5 KB
  • presets/lora_lokr-sd15.json2.5 KB
  • presets/lora_sd15 - EDG_LoConOptiSettings.json1.9 KB
  • presets/lora_sd15 - EDG_LoHaOptiSettings.json1.9 KB
  • presets/lora_sd15 - EDG_LoraOptiSettings.json1.9 KB
  • presets/lora_sd15 - GLoRA v1.0.json3.1 KB
  • presets/lora_sd15 - LoKR v1.0.json3.0 KB
  • presets/lora_sd15 - LoKr v1.1.json3.1 KB
  • presets/lora_sd15 - LoKr v2.0.json3.3 KB
  • presets/lora_SDXL - 1 image LoRA v1.0.json3.6 KB
  • presets/lora_SDXL - edgLoRAXL AI_Now.json2.8 KB
  • presets/lora_SDXL - edgLoRAXL.json2.8 KB
  • presets/lora_SDXL - Illustrious-XL CAME Conservative v1.0.json3.3 KB
  • presets/lora_SDXL - LoHA AI_Characters v1.0.json2.8 KB
  • presets/lora_SDXL - LoKR v1.0.json2.6 KB
  • presets/lora_SDXL - LoRA adafactor v1.0.json2.8 KB
  • presets/lora_SDXL - LoRA AI_characters standard v1.0.json2.9 KB
  • presets/lora_SDXL - LoRA AI_characters standard v1.1.json2.9 KB
  • presets/lora_SDXL - LoRA AI_Now ADamW v1.0.json2.8 KB
  • presets/lora_SDXL - LoRA AI_Now prodigy v1.0.json2.8 KB
  • presets/lora_SDXL - LoRA aitrepreneur clothing v1.0.json2.9 KB
  • presets/lora_SDXL - LoRA by malcolmrey training v1.0.json2.8 KB
  • presets/lora_SDXL - LoRA face dogu_cat v1.0.json3.0 KB
  • presets/lora_SDXL - LoRA finetuning phase 1_v1.1.json2.7 KB
  • presets/lora_SDXL - LoRA finetuning phase 2_v1.1.json2.8 KB
  • presets/lora_SDXL - LoRA kudou-reira dadaptadam v1.0.json2.8 KB
  • presets/lora_SDXL - LoRA kudou-reira dadaptadam v1.1.json2.8 KB
  • presets/lora_SDXL - LoRA kudou-reira prodigy v4.0.json2.9 KB
  • presets/README.md1.2 KB
  • reference.md11.9 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

LoRA Trainer Guide

Overview

Help users pick the right training configuration and understand what the parameters actually do. Ships with 38 real-world presets covering SD1.5, SDXL, SD3, and Flux1 — standard LoRA, LyCORIS variants (LoHA, LoKR, LoCon, iA3), finetuning, and dreambooth.

The presets live in the presets/ folder as JSON files. They're directly usable with Kohya SS, sd-scripts, and the Ktiseos-Nyx-Trainer.

When to Use

  • User wants to train a LoRA and needs help picking settings
  • User has a preset and wants to understand what the params mean
  • User is troubleshooting training results ("my outputs look fried, what do I change?")
  • User wants to compare LoRA types (standard vs LoHA vs LoKR etc.)

Opening Behavior

Always start by asking: "How familiar are you with LoRA training?"

Adjust your responses based on their answer:

  • New to it — explain concepts, define terms, walk them through choices step by step
  • Done it a few times — skip basics, focus on "which preset fits your use case" and key params to tweak
  • Experienced — be concise, jump straight to recommendations, reference specific params

Preset Selection Flow

Walk the user through these questions to find the right preset:

1. What model architecture?

ArchitectureResolutionKey differences
SD 1.5512x512Oldest, most presets available, clip_skip=2 common
SDXL1024x1024Dual text encoder, needs sdxl: true, more VRAM
SD3VariesNewer architecture, limited preset support
Flux1512x512+Requires fp8, T5 text encoder, different LoRA type

2. What training type?

TypeUse whenFile sizeFlexibility
Standard LoRAGeneral purpose, good balance of quality and sizeMediumHigh
LoHAEasier concepts, multi-concept, want better generalizationMediumVery high
LoKR (small, factor=-1)Want tiny file size (<2.5MB)Very smallLower (model-specific)
LoKR (large, factor~8)Want LoRA-like quality with Kronecker mathMedium-largeHigh
LoConNeed convolution layer training specificallyMediumMedium
iA3Style learning, want ultra-tiny files (<1MB)TinyLow (hard to transfer)
FinetuneFull model training, best possible qualityVery largeHighest
DreamboothSubject-specific trainingVery largeHigh

3. Recommend a preset

Filter the presets/ folder by model_type and LoRA_type from the JSON files. Each preset has this structure:

{
  "name": "Human-readable name",
  "description": "What this preset is optimized for",
  "model_type": "SDXL",
  "config": {
    "LoRA_type": "Standard",
    "optimizer": "AdamW8bit",
    "network_dim": 32,
    "network_alpha": 32,
    "learning_rate": 0.0001,
    ...
  }
}

Present matching presets as numbered options with a brief explanation of what makes each one different (usually the optimizer and dim/alpha choices).

What to Tweak

After selecting a preset, highlight the params the user is most likely to want to adjust. Don't dump every parameter — focus on what actually matters.

Always worth checking

ParameterWhat it doesTypical rangeWatch out for
network_dimLoRA rank — higher = more expressive, bigger file8–128Higher isn't always better; 32 is a solid default
network_alphaScales the learning rate relative to dim1 to same-as-dimalpha=1 vs alpha=dim behave VERY differently — see pitfalls
learning_rateHow fast the model learns1e-5 to 1e-3Depends heavily on optimizer choice
train_batch_sizeImages per step1–8Higher = more VRAM, may need to adjust LR
max_train_epochs / max_train_stepsWhen to stopVariesMore isn't better — watch for overtraining
optimizerLearning algorithmSee reference.mdEach optimizer wants different LR ranges
save_every_n_epochsCheckpoint frequency1–5Save often so you can pick the best epoch

Per-architecture specifics

SD 1.5:

  • clip_skip: usually 2 for anime models, 1 for realistic
  • max_resolution: 512,512
  • mixed_precision: fp16 or bf16

SDXL:

  • sdxl: must be true
  • max_resolution: 1024,1024
  • sdxl_no_half_vae: usually true (prevents NaN)
  • clip_skip: usually 1
  • Consider min_snr_gamma: 5 helps stabilize training

Flux1:

  • fp8_base: must be true (Flux needs fp8)
  • flux1_checkbox: true
  • LoRA_type: must be "Flux1"
  • t5xxl_max_token_length: 512
  • timestep_sampling: "sigmoid"
  • discrete_flow_shift: 3
  • model_prediction_type: "raw"
  • Cache text encoder outputs to disk (saves VRAM)

Common Pitfalls

ProblemLikely causeFix
Loss goes NaNLoHA + high dim, or LR too highLower LR, reduce dim, or switch to LoRA
Output looks nothing like training dataUndertrained or LR too lowMore epochs, higher LR, check captions
Output is copy-paste of training imagesOvertrainedFewer epochs, lower dim, use an earlier checkpoint
Style bleeds into everythingModel learned style too hardUse LoHA (dampens style), lower dim, add regularization images
Colors are washed out / wrongVAE issues on SDXLSet sdxl_no_half_vae: true
Flux training OOMs immediatelyNot using fp8Set fp8_base: true, cache text encoder outputs
alpha=1 trains differently than expectedalpha scales effective LRalpha=1 with dim=32 means effective LR is multiplied by 1/32. Set alpha=dim for "normal" behavior, or adjust LR accordingly
Increasing batch size makes results worseLR wasn't scaledWhen you increase batch size, increase LR proportionally

See Also

  • reference.md in this skill folder — full parameter definitions, algorithm comparison tables, optimizer reference
  • Presets are in presets/ — each is a self-contained JSON file ready to load

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

nd-core

無料

Use when communicating with neurodivergent users — adapts response structure, clarity, and pacing for ADHD, autism, and other neurotypes. Recommended base for all nd-* skills.

日本語の概要は準備中です。原文の説明を表示しています。

Blaynelargish66/knx-skills52026年10月12日 更新

Use when user has ADHD or attention differences — tracks current task, catches conversation drift, and nudges back on topic without judgment or guilt.

日本語の概要は準備中です。原文の説明を表示しています。

Blaynelargish66/knx-skills52026年10月12日 更新

Use when user shows signs of overwhelm or frustration — repeated failed attempts, tone shifts, sudden brevity, topic abandonment. Guides gentle check-ins without being patronizing or clinical.

日本語の概要は準備中です。原文の説明を表示しています。

Blaynelargish66/knx-skills52026年10月12日 更新

Use when user is part of a plural system — provides warm session check-in for who is fronting and maintains a simple JSON session log. No clinical language, no assumptions about system structure.

日本語の概要は準備中です。原文の説明を表示しています。

Blaynelargish66/knx-skills52026年10月12日 更新

Use when a user needs to vent, talk something out, or just not feel like they're shouting into a void. Active listening with gentle reflection — not therapy, not silence, just a friend who pays attention.

日本語の概要は準備中です。原文の説明を表示しています。

Blaynelargish66/knx-skills52026年10月12日 更新

Blaynelargish66 のスキルをすべて見る

このスキルの問題を報告する