diffusion-pipe-auto-train

diffusion-pipe-auto-train is a skill for Codex from BillusA1111/billus-model-skill-library. It costs 90 tokens per session (1,386 once invoked), scanned A, original, Apache-2.0.

An automated workflow for training image-generation or image-editing models with diffusion-pipe, using predefined LoRA and selected full-finetuning setups.

In plain words
What is it for?
Use it on WSL or Linux to prepare and launch supported Flux, Qwen Image, SDXL, Lumina2, HunyuanImage, and related image or editing training runs.
Why use it?
It reduces manual setup by enforcing workspace and dataset paths, preparing TOML configuration files, installing dependencies, and selecting settings based on available GPU memory.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it on WSL or Linux to prepare and launch supported Flux, Qwen Image, SDXL, Lumina2, HunyuanImage, and related image or editing training runs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/billusa1111/billus-model-skill-library/diffusion-pipe-auto-train
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add BillusA1111/billus-model-skill-library --skill diffusion-pipe-auto-train
Clone the repo
git clone --depth 1 https://github.com/BillusA1111/billus-model-skill-library

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for diffusion-pipe-auto-train

README.md
[![agentmods](https://agentmods.dev/badge/skills/billusa1111/billus-model-skill-library/diffusion-pipe-auto-train/github.svg)](https://agentmods.dev/skills/billusa1111/billus-model-skill-library/diffusion-pipe-auto-train)
Your own site
<a href="https://agentmods.dev/skills/billusa1111/billus-model-skill-library/diffusion-pipe-auto-train"><img src="https://agentmods.dev/badge/skills/billusa1111/billus-model-skill-library/diffusion-pipe-auto-train/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for diffusion-pipe-auto-train

Your own site · 80×15
<a href="https://agentmods.dev/skills/billusa1111/billus-model-skill-library/diffusion-pipe-auto-train"><img src="https://agentmods.dev/badge/skills/billusa1111/billus-model-skill-library/diffusion-pipe-auto-train.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,386 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00090 $0.01386
Opus 5 $0.00045 $0.00693
Sonnet 5 $0.00018 $0.00277
Haiku 4.5 $0.00009 $0.00139

Measured 9d ago against content hash 6af39ef0b89a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

diffusion-pipe-auto-train scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/diffusion_pipe_auto.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/diffusion-pipe-auto-train/SKILL.md · 138 lines

How it starts

The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Diffusion Pipe Auto Train

Overview

Use this skill when the user wants a mostly hands-off diffusion-pipe training flow for image or edit datasets. It bundles a WSL-first bootstrap and launcher script, a fixed workspace layout, and conservative presets optimized for stable training on commodity GPUs instead of open-ended hyperparameter hunting.

Version

Current release: v1.0

This v1.0 release focuses on stable automation for preparing configs, enforcing dataset layout, and launching image or image-edit training runs on top of diffusion-pipe.

Planned optimizations after v1.0:

  • automatic dataset download
  • dataset cleaning and filtering
  • automated tagging or caption generation
  • automatic dataset organization before training
  • a more complete end-to-end pipeline from raw data to training launch

Scope

Supported automatic paths:

  • Image LoRA: flux-dev, qwen-image, sdxl, lumina2, hunyuanimage-2.1
  • Image full finetune: sdxl, lumina2
  • Edit LoRA: flux-kontext, qwen-image-edit

Out of scope for the automatic path:

  • Video training
  • Native Windows training
  • Experimental full finetunes for models that the repo supports but does not document with a stable low-VRAM recipe

If the user explicitly asks for an unsupported automatic path, explain that diffusion-pipe may support it, but this skill keeps the bundled automation on the stable surface.

Quick Start

  1. Confirm the runtime.
    • Use Linux or WSL2 only.
    • Do not attempt native Windows training. diffusion-pipe is built around DeepSpeed pipeline parallelism and the upstream repo documents Windows as impractical.
  2. Normalize the request into:
    • model
    • train_kind as image or edit
    • mode as lora or full
    • epochs
    • num_gpus
    • gpu_vram_gb
    • required base model paths
  3. Read references/presets.md if you need the support matrix, fixed dataset layout, model path requirements, or VRAM floors.
  4. Run every bundled command inside Linux or WSL2, including prepare.
  5. Bootstrap or update the training repo:
    python scripts/diffusion_pipe_auto.py bootstrap --repo-root /workspace/diffusion-pipe
    
  6. Prepare configs and stable workspace directories:
    python scripts/diffusion_pipe_auto.py prepare \
      --workspace-root /workspace/dp-auto \
      --model flux-dev \
      --train-kind image \
      --mode lora \
      --epochs 16 \
      --num-gpus 1 \
      --gpu-vram-gb 24 \
      --model-arg diffusers_path=/models/FLUX.1-dev
    
  7. Launch caching and training:
    python scripts/diffusion_pipe_auto.py launch \
      --repo-root /workspace/diffusion-pipe \
      --manifest /workspace/dp-auto/configs/manifests/flux-dev-image-lora.json \
      --cache-first
    
  8. Validate:
    • confirm the generated dataset and train TOML files exist
    • confirm the launch command exits successfully
    • confirm a run directory is created under <workspace-root>/runs

Read the full file on GitHub · 138 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 138 lines · 90 tokens per session scan A 6af39ef0b89a

Subscribe to this mod's changes

diffusion-pipe-auto-train is a skill published in the GitHub repository BillusA1111/billus-model-skill-library (11 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 90 tokens to every session and 1,386 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

huggingface-accelerate

Simplest distributed training API. 4 lines to add distributed support to any PyTorch script. Unified API for DeepSpeed/FSDP/Megatron/DDP. Automatic device placement, mixed precision (FP16/BF16/FP8). Interactive config, single launch command. HuggingFace ecosystem standard.

davila7/claude-code-templates · 69 tokens

axolotl

Expert guidance for fine-tuning LLMs with Axolotl - YAML configs, 100+ models, LoRA/QLoRA, DPO/KTO/ORPO/GRPO, multimodal support.

davila7/claude-code-templates · 47 tokens

huggingface-accelerate

Simplest distributed training API. 4 lines to add distributed support to any PyTorch script. Unified API for DeepSpeed/FSDP/Megatron/DDP. Automatic device placement, mixed precision (FP16/BF16/FP8). Interactive config, single launch command. HuggingFace ecosystem standard.

OpenLAIR/dr-claw · 69 tokens

axolotl

Expert guidance for fine-tuning LLMs with Axolotl - YAML configs, 100+ models, LoRA/QLoRA, DPO/KTO/ORPO/GRPO, multimodal support.

OpenLAIR/dr-claw · 47 tokens

huggingface-accelerate

Simplest distributed training API. 4 lines to add distributed support to any PyTorch script. Unified API for DeepSpeed/FSDP/Megatron/DDP. Automatic device placement, mixed precision (FP16/BF16/FP8). Interactive config, single launch command. HuggingFace ecosystem standard.

synthetic-sciences/openscience · 69 tokens

axolotl

Expert guidance for fine-tuning LLMs with Axolotl - YAML configs, 100+ models, LoRA/QLoRA, DPO/KTO/ORPO/GRPO, multimodal support.

synthetic-sciences/openscience · 47 tokens