Distributed
Use this sub-skill for ChainerMN workflows: multi-process data parallelism, MPI launch issues, communicator selection, distributed optimizers, dataset scattering, multi-node evaluators, and model-parallel links.
Typical requests
- "How do I modify a Chainer trainer for ChainerMN?"
- "Which communicator should I use?"
- "Why does
create_communicator fail?"
- "How do I scatter datasets across workers?"
- "How do I use
MultiNodeChainList or model-parallel seq2seq?"
- "Why do MPI workers hang after an exception?"
Read these first
references/workflows.md for distributed training patterns.
references/api-reference.md for communicators, optimizers, datasets, links, and extensions.
references/troubleshooting.md for MPI, mpi4py, NCCL, and launch failures.
Use this script
../../scripts/chainermn_probe.py for a safe MPI / ChainerMN prerequisite check.
Include here
chainermn.create_communicator(...)
chainermn.create_multi_node_optimizer(...)
chainermn.scatter_dataset(...)
chainermn.create_multi_node_evaluator(...)
chainermn.MultiNodeChainList
- MPI,
mpi4py, NCCL, CUDA-aware MPI, and CPU-only naive communicator guidance
Route elsewhere
- Ordinary single-node training ->
../training/
- ONNX or Caffe model export ->
../export/
- ChainerX-specific device behavior ->
../chainerx/
Verification caveat
ChainerMN runtime verification requires MPI and usually mpi4py; GPU-scale workflows also require CuPy, NCCL, and CUDA-aware MPI.
If those dependencies are unavailable, treat distributed execution as environment-blocked rather than disproven.
1---2name: distributed3description: "Routes ChainerMN distributed training, MPI, communicator, and4 model-parallel workflows."5metadata:6 source: https://skillmd.com/skills/vectorspacelab/distributed7 disco-role: operating8disable-model-invocation: true9license: MIT10---1112# Distributed1314Use this sub-skill for ChainerMN workflows: multi-process data parallelism, MPI launch issues, communicator selection, distributed optimizers, dataset scattering, multi-node evaluators, and model-parallel links.1516## Typical requests1718- "How do I modify a Chainer trainer for ChainerMN?"19- "Which communicator should I use?"20- "Why does `create_communicator` fail?"21- "How do I scatter datasets across workers?"22- "How do I use `MultiNodeChainList` or model-parallel seq2seq?"23- "Why do MPI workers hang after an exception?"2425## Read these first2627- `references/workflows.md` for distributed training patterns.28- `references/api-reference.md` for communicators, optimizers, datasets, links, and extensions.29- `references/troubleshooting.md` for MPI, mpi4py, NCCL, and launch failures.3031## Use this script3233- `../../scripts/chainermn_probe.py` for a safe MPI / ChainerMN prerequisite check.3435## Include here3637- `chainermn.create_communicator(...)`38- `chainermn.create_multi_node_optimizer(...)`39- `chainermn.scatter_dataset(...)`40- `chainermn.create_multi_node_evaluator(...)`41- `chainermn.MultiNodeChainList`42- MPI, `mpi4py`, NCCL, CUDA-aware MPI, and CPU-only `naive` communicator guidance4344## Route elsewhere4546- Ordinary single-node training -> `../training/`47- ONNX or Caffe model export -> `../export/`48- ChainerX-specific device behavior -> `../chainerx/`4950## Verification caveat5152ChainerMN runtime verification requires MPI and usually `mpi4py`; GPU-scale workflows also require CuPy, NCCL, and CUDA-aware MPI.53If those dependencies are unavailable, treat distributed execution as environment-blocked rather than disproven.