Skip to content
Back to skills

Training

ASecurity

"Configure, validate, launch, and resume Motus three-stage training

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
businessshellnodebackend

Works with

  • cli

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill training --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Training?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Training
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-training-e2d9742a/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-training-e2d9742a)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: training
description: "Configure, validate, launch, and resume Motus three-stage training
  on a single node or SLURM cluster without confusing fine-tuning, checkpoint
  resume, or backbone initialization."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Motus training

Use this skill when a user needs to prepare a Motus training configuration, check
it safely, construct a `torchrun`/DeepSpeed command, or reason about resuming a
run. It covers the three-stage intent, not dataset conversion or inference.

- Read [configuration.md](references/configuration.md) for the config contract,
  derived values, and checkpoint-mode rules.
- Read [workflows.md](references/workflows.md) for single-node, SLURM, and
  checkpoint export procedures. Launchers in the repository are reference-only:
  they are long-running and may submit external cluster jobs.
- Read [troubleshooting.md](references/troubleshooting.md) when validation,
  imports, CUDA, flash-attn, NCCL, logging, data, or checkpoint loading fails.
- For dataset directory/layout preparation, use the sibling
  [data-preparation skill](../data-preparation/SKILL.md). For inference, use
  [model-inference](../model-inference/SKILL.md).

## Operating procedure

1. **Identify intent before editing YAML.** Select `pretrain`, `finetune`, or
   resume. Record whether this is Stage 1 VGM training, Stage 2 Motus
   pretraining with latent actions, or Stage 3 target-robot SFT with actions.
   A checkpoint resume is a fourth *execution mode*, not a new training stage.
2. **Choose an example config.** Use `configs/latent_action.yaml` for the
   explicit `training_mode: pretrain` latent-action pipeline; use the
   embodiment config matching the dataset (`robotwin`, `ac_one`,
   `aloha_agilex_2`, or `lerobot`) for fine-tuning. Replace all example paths
   with paths valid on the target machine.
3. **Run safe checks before any launch.** Parse YAML, check the required
   sections and enum-like fields, calculate `action_chunk_size`, verify local
   dataset/checkpoint/VAE/config paths where available, and check GPU count,
   CUDA, bfloat16, DeepSpeed, and flash-attn. A parser/import check is allowed
   on CPU; model construction, VAE access, and training require CUDA and the
   large WAN/VLM checkpoints.
4. **Make checkpoint intent mutually clear.** Never set a resume checkpoint and
   a fine-tune checkpoint accidentally. Resume loads the complete Accelerator
   state and continues its step number; fine-tune partially initializes a
   `finetune` model and skips action input/decoder weights; scratch loads WAN
   and VLM backbones from `model.*.checkpoint_path`.
5. **Review the rendered command.** Check node count, GPUs per node, master
   address/port, config path, DeepSpeed JSON, logging mode, output/checkpoint
   directory, and the absence of accidental shell comments after `\\`.
   Prefer a short, bounded smoke configuration before an expensive run.
6. **Launch only with explicit approval.** `torchrun`, `sbatch`, `srun`, WAN/VLM
   downloads, and full training are external, long-running, or expensive
   operations. This skill explains and constructs them but does not silently
   execute them. Use the repository launchers only as templates; do not copy
   their placeholder paths into a public skill or run them as validation.
7. **Verify expected signals.** Rank 0 should report the selected dataset and
   training mode, checkpoint directory, logging backends, model creation,
   dataloader creation, and step/loss lines. A saved checkpoint directory
   should contain Accelerator/DeepSpeed state and the filtered `config.json`.
   Use [scripts/export_config_json.py](scripts/export_config_json.py) to create
   that JSON deliberately for an existing checkpoint directory.

## Hard boundary

This skill does not prescribe dataset layouts, conversion, or inference CLI
flags. It does not promise CPU training: Motus uses CUDA autocast and a very
large WAN/VLM stack, and the documented training requirement is more than 80
GB VRAM (typically eight 80-GB GPUs for the supplied examples). Keep missing
model checkpoints, datasets, optional packages, cluster topology, and
unverified hardware as explicit blockers rather than guessing.

Files in this skill

  • SKILL.md4.2 KB
  • references/configuration.md11.5 KB
  • references/troubleshooting.md11.7 KB
  • references/workflows.md11 KB
  • scripts/export_config_json.py3.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.