Skip to content
Back to skills

Train Evaluate

ASecurity

"Run and debug Lightning-Hydra-Template training and evaluation

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
toolspythonshellbashbackend

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 train-evaluate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Train Evaluate?

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

Security grade badge for Train Evaluate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-train-evaluate/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-train-evaluate)

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: train-evaluate
description: "Run and debug Lightning-Hydra-Template training and evaluation
  commands, checkpoints, callbacks, loggers, accelerators, and safe repeated
  runs."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Train and Evaluate

Use this sub-skill when the user wants to run, resume, debug, or adapt the template's Lightning training/evaluation workflow.

## Triggers

Read this sub-skill for tasks about:

- `python src/train.py`, `python src/eval.py`, `train_command`, or `eval_command`.
- Checkpoint resume/evaluation using `ckpt_path`, `last.ckpt`, or `ModelCheckpoint` output.
- Callbacks, loggers, `logger=csv`, W&B/Neptune/Comet/MLflow/Aim configs, or hyperparameter logging.
- Trainer presets such as `trainer=cpu`, `trainer=gpu`, `trainer=ddp`, `trainer=ddp_sim`, and `trainer=mps`.
- Fast-dev, batch-limit, overfit, or profiler training commands.
- Repeated training commands or adapting the repo's scheduling shell pattern.

## Quick workflow

1. Inspect CLI/config without training:
   ```bash
   train_command --help
   eval_command --help
   python <this-skill>/scripts/check_lightning_hydra_project.py --repo-root . --config-name train.yaml --instantiate
   ```
2. For a safe smoke run, disable online loggers and use a debug config. Remember the MNIST example can download data:
   ```bash
   python src/train.py debug=fdr logger=null
   ```
3. For normal training, choose experiment, trainer, logger, and tags explicitly:
   ```bash
   python src/train.py experiment=example trainer=cpu logger=csv tags='[mnist,baseline]'
   ```
4. For resume, pass the checkpoint to the train config:
   ```bash
   python src/train.py ckpt_path=/path/to/checkpoints/last.ckpt
   ```
5. For evaluation, pass a checkpoint to the eval config:
   ```bash
   python src/eval.py ckpt_path=/path/to/checkpoints/last.ckpt logger=null
   ```
6. To preview repeated runs without executing them, use [scripts/run_scheduled_training.sh](scripts/run_scheduled_training.sh).

## Read references

- [Training and evaluation](references/training-evaluation.md): train/eval object flow, checkpoint semantics, commands, metrics, and safe validation.
- [Loggers, callbacks, and accelerators](references/loggers-callbacks-accelerators.md): logger packages/credentials, callback defaults, trainer groups, and backend scope.
- [Troubleshooting](references/troubleshooting.md): missing checkpoint, monitor metric, logger credentials, MNIST/data download, DDP, batch divisibility, and Hydra output paths.

## Bundled script

- [scripts/run_scheduled_training.sh](scripts/run_scheduled_training.sh): safe adaptation of the repository's `scripts/schedule.sh`; defaults to dry-run and requires `--execute` before launching training.

## Boundaries

- For Hydra defaults, experiment YAML, sweeps, and debug config composition, use [configure-experiments](../configure-experiments/SKILL.md).
- For adding new data/model code or fixing `_target_` imports, use [customize-data-model](../customize-data-model/SKILL.md).
- For pytest/CI choices or no-network smoke gates, use [test-maintain-template](../test-maintain-template/SKILL.md).

Files in this skill

  • SKILL.md3.1 KB
  • references/loggers-callbacks-accelerators.md3.3 KB
  • references/training-evaluation.md3.2 KB
  • references/troubleshooting.md2.5 KB
  • scripts/run_scheduled_training.sh1.5 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.