agentleFS
LightricksLightricks/LTX-2/.claude/skills/train/SKILL.md

train

Skill10k starsChanged 10 days agoApache-2.0View on GitHub

Prepare datasets or configs, launch, monitor, resume, or validate LTX training runs. Use for training, fine-tuning, LoRA creation, or individual stages of that workflow.

8 other projects use a version of this.

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Sep 13: 0 new projectsWeek of Sep 20: 0 new projectsWeek of Sep 27: 0 new projectsWeek of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projects
Sep 2026Oct 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Most recently taken up by

Who's talking about Lightricks/LTX-2

The biggest 5 of 57 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 57

Talked about on GitHub, Bluesky and the web (57 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 6

1 more on Bluesky

On the web · 1

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. 0 are common, 14 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 14

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the relevant sections and selected example config before using them.

    line 17
  2. Distinctive:

    Keep generated files in one run workspace.

    line 33
  3. Distinctive:

    Use supported configurations.

    line 38
  4. Distinctive:

    Use what the user already said.

    line 46
  5. Distinctive:

    Check prerequisites only for the requested stages.

    line 55
  6. Very specific:

    When configuring or launching a tracked run, check W&B credentials without printing secrets: uv run python -c "import wandb.

    line 59
  7. Very specific:

    Use its credential resolution rather than wandb status.

    line 61
  8. Distinctive:

    If a run already exists, determine whether it is live, completed or interrupted before creating another process.

    line 64
  9. Very specific:

    Use a user-selected workspace, otherwise ./projects/<run-name>/.

    line 71
  10. Distinctive:

    When a config is needed, reuse the supplied config or copy the selected mode's example to the run workspace.

    line 73
  11. Distinctive:

    Before expensive work, run cheap checks relevant to the request: config/schema validation without model loading, paths, dependencies, model …

    line 77
  12. Distinctive:

    Follow the dataset and utility guides for the selected mode.

    line 89
  13. Distinctive:

    When validation is in scope, use a small set of training-set prompts and task-relevant examples, reusing user examples where available.

    line 99
  14. Distinctive:

    Only where uncertainty remains, run the smallest useful execution check for the requested work: for example, encode a sample, complete an …

    line 106
  15. Distinctive:

    Keep scratch configs, latents and outputs separate, preserving relative media paths when filtering metadata.

    line 111
  16. Distinctive:

    Prefer a new output root for rebuilding.

    line 122
  17. Distinctive:

    If samples or modalities are missing, diagnose and surface the discrepancy before training.

    line 126

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Train

Complete the requested stages: dataset preparation, configuration, launch, monitoring, resume, validation, or a full run. Skip unrelated stages and stop when the requested outcome is delivered. The trainer docs and example configs own the technical details; this skill owns the workflow.

Read as needed

Read the relevant sections and selected example config before using them. Do not load every guide up front.

NeedSource
Prerequisites, installation, model compatibilityQuick start
Intent → modalities, conditioning, example configTraining modes
Metadata, paths, buckets, triggers, preprocessing and reuseDataset preparation
Config fields, validation samples and conditionsConfiguration reference
Scene splitting, captioner setup and CLI optionsUtility scripts
Launch, distributed training, checkpoints and trackingTraining guide
A failed stepTroubleshooting

Resolve repo paths from the repository root. Run trainer scripts from packages/ltx-trainer/ with absolute config paths.

Boundaries

  • Keep generated files in one run workspace. Read source data in place or stage links/copies; preserve the originals. Get explicit approval before overwriting existing datasets, captions, preprocessing artifacts or trained outputs, or modifying files outside the run workspace. Disposable scratch created for this invocation can be regenerated.
  • Present a concrete plan and get approval before captioning, encoding, autotuning or training. Honor authorization already given; ask again when the work would exceed it. Include missing installations and model downloads in the plan.
  • Use supported configurations. If the requested behavior requires trainer code changes, explain the gap and get consent for that separate work.
  • Report observed counts, timings, memory and losses. Label uncertain recommendations; do not promise training quality or infer dataset sufficiency from sample counts. Successful setup checks establish only what they exercised, not learning quality.

1. Establish the goal and inspect the environment

Use what the user already said. Clarify only unresolved choices needed for the requested stages: what should be generated or conditioned on, LoRA versus full fine-tuning, target dimensions/duration, steps, and an optional trigger. For a plain concept/style LoRA, clarify text-only versus starting-image use; propose i2v_lora.yaml for both/unsure.

Inspect the relevant source metadata/media, existing artifacts, dependencies, available disk, model components, and training environment. Probe clip lengths for small datasets before proposing a frame bucket. For missing captions, check viable backends, credentials and cached weights using the utility guide; skip captioner setup when captions already exist.

Check prerequisites only for the requested stages. Writing a config or inspecting metadata does not require CUDA, model downloads, or captioner setup. Before encoding or training, verify CUDA and required data/model files are available; explain any missing prerequisites.

When configuring or launching a tracked run, check W&B credentials without printing secrets: uv run python -c "import wandb; print(bool(wandb.Api().api_key))". Use its credential resolution rather than wandb status; an error is not evidence that tracking is unavailable. Record whether tracking will be enabled in the plan.

If a run already exists, determine whether it is live, completed or interrupted before creating another process. For monitoring requests, report its status without relaunching. For resume, inspect the checkpoint/state and use the training guide's explicit checkpoints.load_checkpoint flow within the user's authorization. Reuse the existing plan, config and data; perform only the work needed for the requested monitoring or resume action.

2. Prepare a reviewable plan and config

Use a user-selected workspace, otherwise ./projects/<run-name>/.

When a config is needed, reuse the supplied config or copy the selected mode's example to the run workspace. Adapt memory settings from the shipped low-VRAM example when needed, preserving the chosen modalities, conditions and LoRA targets. Keep defaults unless the user's goal or measured hardware behavior warrants a change.

Before expensive work, run cheap checks relevant to the request: config/schema validation without model loading, paths, dependencies, model compatibility, metadata/media readability, bucket constraints, and existing-artifact compatibility. Reuse equivalent successful checks from an existing run where applicable.

For a new run, write a short plan.md and present it in chat: goal/mode, data and captioning work, model paths, hardware, resolution/duration, steps and key config choices, validation, outputs, tracking, optional tuning, and consequential assumptions. For a partial request, cover only the relevant work. Give cost/time estimates only where grounded; leave unmeasured durations unknown until timings are available. Obtain approval for this scope before expensive work.

3. Prepare the data

Follow the dataset and utility guides for the selected mode. Keep media paths resolvable relative to the metadata file when staging or filtering it; verify paths before launching an encoder.

  • Reuse supplied captions when complete. Otherwise use the captioner's default instruction. Unless the user explicitly waived preview review, show captions for up to three samples in full and wait for approval before captioning the rest. Apply requested changes and repeat the preview.
  • Required references and masks express the user's task: use supplied inputs or a generation method the user requested. Ask for missing inputs rather than inventing their content or substituting a default control method.
  • Set a concept trigger through training_strategy.data.lora_trigger; do not also insert it into raw captions.

When validation is in scope, use a small set of training-set prompts and task-relevant examples, reusing user examples where available. Match conditioning to the mode, include the trigger when used, and describe generated audio consistently with the captions. Keep periodic validation lightweight; plan any broader final evaluation separately. Arrange validation of the final weights while respecting the user's chosen cadence.

4. Check execution as needed, then preprocess

Only where uncertainty remains, run the smallest useful execution check for the requested work: for example, encode a sample, complete an optimizer step, or generate a validation sample. Choose checks for the actual risk, without a fixed training-step count. For memory checks, exercise the intended batch size, dimensions/duration, and relevant conditioning paths; one easy sample does not establish that every configured workload fits.

Keep scratch configs, latents and outputs separate, preserving relative media paths when filtering metadata. Reset scratch checkpoint loading so checks cannot resume or overwrite the main run. Require the selected checks to succeed before the expensive work they are meant to verify. Report what was checked and what remains untested; do not require loss to decrease in a setup check.

Autotune only if included in the approved plan. Bound the trial count and change one runtime setting at a time, recording measured step time and peak memory. Keep the last working configuration; leave task/quality choices fixed.

Reuse compatible artifacts or preprocess with the same config used for training. Follow the dataset guide's manifest/staleness policy before reuse or incremental preprocessing. Use scripts/preprocess.py <config> --check to check compatibility; legacy or mismatched reuse requires explicit acceptance under that policy. Prefer a new output root for rebuilding; never silently overwrite or bypass the guard.

Reconcile artifact identities and counts against the intended training samples for all configured data sources; a manifest match alone does not verify dataset contents. Stop if a required modality has no artifacts, including audio. If samples or modalities are missing, diagnose and surface the discrepancy before training; let the user choose whether to change buckets, repair data or accept dropped samples.

5. Launch, monitor and hand off

Launch using the training guide's command and distributed config for this run. Use the environment's managed background execution so work and logs remain trackable. Add --disable-progress-bars when redirecting trainer output or running multi-GPU; preserve logs and checkpoints across sessions.

Explain phase transitions briefly. During training, report actual step/total, recent loss, measured throughput, memory, latest checkpoint and validation samples, and the W&B link when enabled. Measure steady-state step time separately from setup, validation and checkpointing. For completion estimates, include remaining overhead where measured; disclose unknown or excluded costs instead of presenting a steps-only estimate as completion time.

On failure, diagnose using the troubleshooting guide and preserve artifacts. Fix routine issues within the agreed scope; stop when the same failure repeats without new evidence. Describe the proposed recovery and seek approval if it changes the agreed scope or risks existing work.

For a training run, verify completion and the final checkpoint. Surface validation samples as training-set prompts or task-relevant examples, identifying whether they use the final weights. Report any planned but missing validation as incomplete. For separate inference, use the documented matching pipeline within the approved scope.

For a training run, write a concise outputs/run-summary.md with the goal, data, final config and commit, measured statistics, checkpoint/sample/log paths, tracking link, exact launch command and resume instructions (including available state). For partial requests, hand off the requested artifacts or status without starting further stages. Present results without inventing a quality verdict or demanding one.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.