Skip to content
Back to skills

Training

ASecurity

"Choose and launch StyleTTS2 first-stage training, second-stage

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
toolspythonbashbackend

Security analysis

A100/100

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

Scanned September 9, 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-bf630dd4/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-training-bf630dd4)

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: "Choose and launch StyleTTS2 first-stage training, second-stage
  training, fine-tuning, and one-GPU accelerate fine-tuning safely."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# StyleTTS2 training router

Use this sub-skill when the task is to choose or launch a StyleTTS2 training workflow from a source checkout: first-stage pretraining, second-stage joint training, fine-tuning from a LibriTTS-style checkpoint, or the one-GPU accelerate fine-tuning variant.

For data-list schemas, 24 kHz audio preparation, config-field edits, asset paths, and OOD text files, route to `../data-and-config/` first. For pretrained synthesis demos and voice-use guidance, route to `../inference/`.

## Start here

1. Identify the stage and config file with [references/training-workflows.md](references/training-workflows.md).
2. Build the launch command with the bundled safe helper [scripts/build_training_command.py](scripts/build_training_command.py), not by copying source training scripts:

   ```bash
   python scripts/build_training_command.py --repo-root /path/to/StyleTTS2 --stage first --config Configs/config.yml
   ```

   The helper defaults to dry-run: it prints the exact command, checks the checkout/config/assets lightly, and does not train, download models, or write checkpoints. Add `--run` only after the user explicitly wants to start training.
3. Before resuming or switching from first-stage to second-stage/fine-tuning, read [references/checkpoints-and-resume.md](references/checkpoints-and-resume.md).
4. For launch failures, CUDA/backend problems, OOM/NaN behavior, DDP warnings, WavLM cache, or missing dependencies, use [references/troubleshooting.md](references/troubleshooting.md).

## Stage routing

- First stage: `--stage first`; uses `accelerate launch` and writes periodic `epoch_1st_*.pth` plus the final `first_stage_path` under `log_dir`.
- Second stage: `--stage second`; use the plain Python DataParallel launcher because the repository documents DDP/accelerate as not working for this stage.
- Fine-tuning: `--stage finetune`; starts from a second-stage pretrained checkpoint such as a LibriTTS checkpoint and new speaker data.
- One-GPU fine-tuning: `--stage finetune-accelerate`; emits the documented memory-saving accelerate command with `--mixed_precision fp16 --num_processes 1` by default.

Always expect CUDA for truthful training behavior. The source checkout is not a pip-installable package; activate an environment that can import the checkout modules, has CUDA-enabled PyTorch, and includes the runtime dependencies noted in the troubleshooting reference.

Files in this skill

  • SKILL.md2.6 KB
  • references/checkpoints-and-resume.md5.1 KB
  • references/training-workflows.md7.1 KB
  • references/troubleshooting.md8.1 KB
  • scripts/build_training_command.py14.1 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.