Skip to content
Back to skills

Training

ASecurity

"Routes Chainer define-by-run, dataset, trainer, serializer, and

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

Works with

  • api

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-54a9c7d2/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-training-54a9c7d2)

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: "Routes Chainer define-by-run, dataset, trainer, serializer, and
  single-node example workflows."
metadata:
  disco-role: operating
disable-model-invocation: true
license: MIT
---

# Training

Use this sub-skill for ordinary Chainer model-building and training tasks.
It covers define-by-run code, datasets, iterators, trainers, extensions, serializers, and single-node CPU or GPU execution.

## Typical requests

- "How do I define a model with `Link`, `Chain`, or `ChainList`?"
- "How do I train a classifier or language model?"
- "How do I save and resume a `Trainer`?"
- "How do I use `SerialIterator`, `Evaluator`, or `LogReport`?"
- "How do I move the model or data to GPU?"
- "How do I use the MNIST, CIFAR, PTB, or serialization examples?"

## Read these first

- `references/workflows.md` for the training flow.
- `references/api-reference.md` for the key classes and exact signatures.
- `references/examples.md` for the example-family map.
- `references/troubleshooting.md` for training, serialization, and device issues.

## Use these scripts

- `../../scripts/training_smoke.py` for a tiny end-to-end training loop.
- `../../scripts/serialization_smoke.py` for NPZ and HDF5 save/load checks.
- `../../scripts/runtime_probe.py` when the environment might not import cleanly.

## Include here

- Define-by-run model construction with `Variable`, `Function`, `Link`, `Chain`, `ChainList`, and `Sequential`.
- Dataset and iterator workflows, including `DatasetMixin`, `TupleDataset`, `SerialIterator`, and minibatch conversion.
- `Trainer`, `StandardUpdater`, `ParallelUpdater`, triggers, and built-in extensions.
- Snapshot and persistence workflows with `save_npz`, `load_npz`, and HDF5 when available.
- CPU and GPU single-node workflows, including `to_gpu`, `to_cpu`, `get_device`, and `using_device`.
- Static-graph optimization examples when the model is a repeated schedule.

## Route elsewhere

- ONNX or Caffe conversion -> `../export/`
- ChainerMN / MPI / multi-node training -> `../distributed/`
- ChainerX build or device behavior -> `../chainerx/`
- Repository build and test questions -> root install and troubleshooting references

## Quick mental model

A typical single-node workflow is:

1. Build the model with `Link` or `Chain`.
2. Prepare a dataset and iterator.
3. Wrap the model with an optimizer.
4. Create an updater and trainer.
5. Add evaluators, reporters, and snapshot extensions.
6. Save and load state with serializers.

If the user asks for a runnable check, prefer the bundled smoke scripts over the original repo examples.

Files in this skill

  • SKILL.md2.5 KB
  • references/api-reference.md3.4 KB
  • references/examples.md2.5 KB
  • references/troubleshooting.md2.1 KB
  • references/workflows.md3.3 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.