Skip to content
Back to skills

Training And Distribution

ASecurity

"Guides MMGeneration training, resume, distributed launch, and

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
devopsgodebuggingapi

Works with

  • cli
  • api

Security analysis

A100/100

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Training And Distribution?

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

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

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-and-distribution"
description: "Guides MMGeneration training, resume, distributed launch, and
  launcher-specific workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Training and Distribution

Use this sub-skill when the user wants to train a model, resume from a checkpoint, or understand the repo's distributed training and validation flow.

## Typical triggers

- "How do I train this config?"
- "How do I resume a run?"
- "How do I use DDP or Slurm?"
- "Can I train on CPU for debugging?"
- "Why does the training hook not behave as expected?"

## Include here

- `tools/train.py`
- `tools/dist_train.sh`
- `tools/slurm_train.sh`
- `mmgen.apis.train_model` and `set_random_seed`
- `DynamicIterBasedRunner`
- DDP wrapper and dynamic DDP notes
- EMA, visualization, checkpoint, and validation hook behavior
- CPU training guidance for debug-only use

## Exclude here

- Sampling and demo workflows -> `inference-and-sampling`
- Metrics and validation scripts -> `evaluation-and-metrics`
- Config syntax and registry extension -> `configuration-and-extension`
- Latent editing and deployment helpers -> `applications-and-deployment`

## Read these files first

- `references/workflows.md`
- `references/troubleshooting.md`
- `../../references/api-reference.md`
- `../../references/cli-reference.md`
- `../../references/model-overview.md`

## What good guidance looks like

A future agent should be able to:

1. Pick the right launcher: none, PyTorch DDP, or Slurm.
2. Explain how `work_dir`, `resume_from`, and `load_from` interact.
3. Distinguish static and dynamic GAN behavior in distributed mode.
4. Tell the user when CPU training is acceptable only as a debugging aid.
5. Route validation and evaluation questions to the evaluation sub-skill instead of mixing them into training advice.

## Common failure modes

- DDP settings that work for static GANs but fail for dynamic architectures.
- `apex_amp` being used outside the distributed-only path.
- Missing or incorrect `work_dir`, `cfg_options`, or checkpoint resume path.
- A custom hook or runtime block not being registered before the run starts.

For concrete recovery steps, read `references/troubleshooting.md`.

Files in this skill

  • SKILL.md2.2 KB
  • references/troubleshooting.md2.8 KB
  • references/workflows.md2.4 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.