Peft Fine Tuning
Orchestra-Research/AI-Research-SKILLs
Parameter-efficient fine-tuning for LLMs using LoRA, QLoRA, and 25+ methods.
Add or tighten Draw Things LoRA trainer support for generative models available in the Draw Things app / CLI, covering LoRA builders, trainer dispatch, tokenizer and fixed-encoder wiring, checkpoint…
$ npx skills add drawthingsai/draw-things-community --skill trainer-integration -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install drawthingsai/draw-things-community trainer-integration --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/drawthingsai/draw-things-community.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/trainer-integration .claude/skills/trainer-integration && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "trainer-integration" agent skill from https://github.com/drawthingsai/draw-things-community/tree/main/.agents/skills/trainer-integration into .claude/skills/trainer-integration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trainer-integration", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/drawthingsai/draw-things-community/tree/main/.agents/skills/trainer-integrationType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add drawthingsai/draw-things-community --skill trainer-integration -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install drawthingsai/draw-things-community trainer-integration --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/drawthingsai/draw-things-community.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/trainer-integration .agents/skills/trainer-integration && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "trainer-integration" agent skill from https://github.com/drawthingsai/draw-things-community/tree/main/.agents/skills/trainer-integration into .agents/skills/trainer-integration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trainer-integration", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add drawthingsai/draw-things-community --skill trainer-integration -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install drawthingsai/draw-things-community trainer-integration --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/drawthingsai/draw-things-community.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/trainer-integration .cursor/skills/trainer-integration && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "trainer-integration" agent skill from https://github.com/drawthingsai/draw-things-community/tree/main/.agents/skills/trainer-integration into .cursor/skills/trainer-integration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trainer-integration", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/drawthingsai/draw-things-community.git --path .agents/skills/trainer-integration--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add drawthingsai/draw-things-community --skill trainer-integration -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install drawthingsai/draw-things-community trainer-integration --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/drawthingsai/draw-things-community.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/trainer-integration .gemini/skills/trainer-integration && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "trainer-integration" agent skill from https://github.com/drawthingsai/draw-things-community/tree/main/.agents/skills/trainer-integration into .gemini/skills/trainer-integration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trainer-integration", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install drawthingsai/draw-things-community trainer-integrationInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add drawthingsai/draw-things-community --skill trainer-integration -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/drawthingsai/draw-things-community.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/trainer-integration .github/skills/trainer-integration && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "trainer-integration" agent skill from https://github.com/drawthingsai/draw-things-community/tree/main/.agents/skills/trainer-integration into .github/skills/trainer-integration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trainer-integration", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add drawthingsai/draw-things-community --skill trainer-integration -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install drawthingsai/draw-things-community trainer-integration --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/drawthingsai/draw-things-community.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/trainer-integration .opencode/skills/trainer-integration && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "trainer-integration" agent skill from https://github.com/drawthingsai/draw-things-community/tree/main/.agents/skills/trainer-integration into .opencode/skills/trainer-integration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trainer-integration", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
trainer-integrationAdd or tighten Draw Things LoRA trainer support for generative models available in the Draw Things app / CLI, covering LoRA builders, trainer dispatch, tokenizer and fixed-encoder wiring, checkpoint…
Trainer Integration is an agent skill from drawthingsai/draw-things-community. Add or tighten Draw Things LoRA trainer support for generative models available in the Draw Things app / CLI, covering LoRA builders, trainer dispatch, tokenizer and fixed-encoder wiring, checkpoint export, numerical debugging, and validation.
Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).
It sits in AI & LLM Engineering, covering Fine-tuning. The repository describes itself as: The community repository for the Draw Things app. The licence is GPL-3.0.
10 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 3cac075. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
bazelFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Trainer Integration loads about 2.6k tokens when it runs. Until then it costs about 66 tokens; SKILL.md has 1,422 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from drawthingsai/draw-things-community at commit 3cac075, republished under its GPL-3.0 licence (© drawthingsai). 1,422 words, ~2,636 tokens.
.claude/skills/trainer-integration/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Use this workflow when adding LoRA training support for generative models available in the Draw Things app / CLI or when tightening an existing trainer path. Follow Flux1 first, then copy only the model-specific pieces you actually need.
Add a new trainer path that:
DrawThingsCLILibraries/Trainer/Sources/LoRATrainer.swiftLibraries/Trainer/Sources/LoRATrainerCheckpoint.swiftLibraries/SwiftDiffusion/Sources/Models/<Model>.swiftApps/DrawThingsCLI/DrawThingsCLI.swiftApps/DrawThings/Sources/LoRA/LoRATrainingWorkflow.swiftUse these references first:
trainFlux1(...) in LoRATrainer.swiftLoRAFlux1 and LoRAFlux1Fixed in Flux1.swiftLoRA<Model> and, if needed, LoRA<Model>Fixed.LoRANetworkConfiguration is enough. The LoRA builders themselves may need changes to:Model(..., trainable:) settingModel(..., trainable:) boundariesFlux1 exactly here:trainable: falseModel wrapper needs an explicit trainable: value to preserve the intended trainable surface, do that in the LoRA path instead of changing the base model pathModel is trainable: false, submodules are effectively non-trainable unless the graph structure explicitly reintroduces the LoRA trainable surface the same way the working reference path does.trainable: false and rely on the individual LoRA layers for trainability. Accidentally making the parent trainable turns the path into a full fine-tune.LoRANetworkConfiguration usage and checkpointing flags.train<Model>(...) entry in LoRATrainer.swift.version handling in CLI and app workflow code.DrawThingsCLI.swift.LoRATrainingWorkflow.swift.LoRATrainingDependency if the model needs a tokenizer that is not already injected.Small but important example:
Qwen Image should use the Qwen 2.5 tokenizer, not Qwen 3.Z Image uses Qwen 3.UNetFixedEncoder.swift.UNetFixedEncoder as a legacy-named integration boundary for the main diffusion model / DiT path, not as a literal UNet requirement.graph.constant(...).toCPU()/toGPU() rebuilds when a batched constant path works.FloatFloat just because one condition needs itread(...)..i8x, the trainer needs .i8x too.This was the difference between immediate nan and a finite first step for Qwen Image.
cmul backward cannot reduce broadcast semantics, fully expand rotary on the training path.[1, seq, 1, dim] rotary broadcasting into [batch, seq, heads, dim] just because forward compiles. The backward path can still be wrong or unstable.rot tensor instead of inventing a separate query-rotary input when the slice is enough.GradScaler from the model's numeric contract, not by trial-and-error lowering.32_768.1 as a fix. That usually masks overflow and can make the trainer learn too slowly or not at all.valueOr(.scale1) when the configured backend is supposed to participate in training.graph.constant(...) for precomputed fixed conditions..copied() when slicing batched fixed outputs back into per-sample constants.let _ = dit((width: latentsWidth, height: latentsHeight), inputs: latents, cArr)LoRATrainerCheckpoint.swift.dit.__up__ tensors present and nonemptyLoRAZImage, LoRAZImageFixed, and trainZImage(...).ZImage / ZImageFixed unless training truly needs them.rot path; slice from it instead of carrying a second query-rotary input.x_pad_token on the GPU if you cache it for trainer constants.1024.encodeQwenFixed(...) is better than the old per-sample CPU/GPU rebuild path..i8x in both fixed and main trainer reads when the checkpoint needs it.isBF16 on the fixed side is mostly about scaling math; do not assume the whole fixed contract becomes BF16.If a new trainer is broken, check these in order:
lora_up tensors nonzero?1 to hide instability?nan at step 0.i8xlora_up stays zero almost everywhere1; fix the overflow source instead.loras[].version in CLI validationAfter code integration, validate with the $train-lora workflow:
bazel build --compilation_mode=opt //Apps:DrawThingsCLIDo not call the trainer integrated until it survives the full ladder.
© drawthingsai, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in .agents/skills/trainer-integration of drawthingsai/draw-things-community.
Open the folder on GitHubat commit 3cac075
Trainer Integration next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Trainer Integration this skilldrawthingsai/draw-things-community | 579 | — | ~2.6k | Automated safety check: Pass | GPL-3.0 | |
| Peft Fine TuningOrchestra-Research/AI-Research-SKILLs | 13k | 9 repos | ~3.1k | Automated safety check: Pass | MIT | |
| Hugging Face LLM Trainerhuggingface/skills | 11k | 3 repos | ~7.2k | Automated safety check: Pass | Apache-2.0 | |
| Sentence-Transformers Training Routerhuggingface/skills | 11k | 1 repos | ~2.6k | Automated safety check: Pass | Apache-2.0 | |
| Dataset Evaluationawslabs/agent-plugins | 912 | 2 repos | ~1.3k | Automated safety check: Pass | Apache-2.0 | |
| Train RlOpenPipe/ART | 11k | — | ~2.4k | Automated safety check: Pass | Apache-2.0 |
Orchestra-Research/AI-Research-SKILLs
Parameter-efficient fine-tuning for LLMs using LoRA, QLoRA, and 25+ methods.
huggingface/skills
Trains or fine-tunes language and vision models with TRL or Unsloth on Hugging Face Jobs cloud GPUs, then converts the results to GGUF.
huggingface/skills
Routes a sentence-transformers training task to the right model type and required reference docs and example scripts, covering bi-encoders, rerankers, sparse and multi-vector models.
awslabs/agent-plugins
Validates dataset formatting and quality for SageMaker model fine-tuning (SFT, DPO, or RLVR).
OpenPipe/ART
RL training reference for the ART framework. An agent skill from OpenPipe/ART.
R6410418/Jackrong-llm-finetuning-guide
Prepare, validate, launch-plan, monitor, resume, and stop configurable Qwopus 27B reinforcement-learning workflows for GRPO or GSPO.
drawthingsai/draw-things-community
Generate, benchmark, validate, and troubleshoot LongCat-Video-Avatar 1.5 videos with draw-things-cli.
drawthingsai/draw-things-community
Set up and verify a new Draw Things CPU proxy and Envoy server using the scripts in Scripts/ServerManagement/CPUScript.
drawthingsai/draw-things-community
Use and troubleshoot an already installed Homebrew draw-things-cli for model discovery, authentication, local, cloud, or remote image generation, basic image-to-image and video generation, output…
drawthingsai/draw-things-community
Initialize a Draw Things GPU server with GPUScript, including script sync, Docker/CUDA/NVIDIA runtime setup, 7T data disk mounting, mergerfs, and end-to-end GPU verification.
drawthingsai/draw-things-community
Add a new image or video generative model to the Draw Things app / CLI with a compile-first, end-to-end workflow across SwiftDiffusion, tokenizer plumbing, text encoder, fixed encoder, UNet / DiT…
drawthingsai/draw-things-community
Validate Draw Things LoRA training end to end with draw-things-cli, including tiny-dataset training, loss and scaler checks, checkpoint sanity, and base-versus-LoRA generation comparison.
Categories
Add or tighten Draw Things LoRA trainer support for generative models available in the Draw Things app / CLI, covering LoRA builders, trainer dispatch, tokenizer and fixed-encoder wiring, checkpoint…. Trainer Integration is an agent skill from drawthingsai/draw-things-community. Add or tighten Draw Things LoRA trainer support for generative models available in the Draw Things app / CLI, covering LoRA builders, trainer dispatch, tokenizer and fixed-encoder wiring, checkpoint export, numerical debugging, and validation.
Trainer Integration fits situations like: tasks that involve Fine-tuning.
Run `npx skills add drawthingsai/draw-things-community --skill trainer-integration -a claude-code`. Or copy the skill folder (.agents/skills/trainer-integration in drawthingsai/draw-things-community) into .claude/skills/trainer-integration in your project. Claude Code loads it when a task matches its description.
Run `npx skills add drawthingsai/draw-things-community --skill trainer-integration -a codex`. Or copy the skill folder (.agents/skills/trainer-integration in drawthingsai/draw-things-community) into .agents/skills/trainer-integration in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add drawthingsai/draw-things-community --skill trainer-integration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/trainer-integration, .gemini/skills/trainer-integration, .github/skills/trainer-integration and .opencode/skills/trainer-integration in your project.
Going by SKILL.md and its folder, Trainer Integration needs the command-line tools its instructions call (bazel).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Trainer Integration is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.6k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Trainer Integration: Peft Fine Tuning (Orchestra-Research/AI-Research-SKILLs, 13k stars), Hugging Face LLM Trainer (huggingface/skills, 11k stars), Sentence-Transformers Training Router (huggingface/skills, 11k stars) and Dataset Evaluation (awslabs/agent-plugins, 912 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
drawthingsai (a GitHub organization) maintains it in drawthingsai/draw-things-community, which has 579 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 6, 2026.
Source: drawthingsai/draw-things-community on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.