chainer
Routes Chainer workflows for training, export, distributed learning, ChainerX, and checkout maintenance.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- chainer
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Routes Chainer workflows for training, export, distributed learning, ChainerX, and checkout maintenance.
- disable-model-invocation
- true
02 资源文件 12
- 参考文档references/api-overview.md4.3 KB
- 参考文档references/install.md1.7 KB
- 参考文档references/repo-provenance.md682 B
- 参考文档references/repo-routing-metadata.json531 B
- 参考文档references/troubleshooting.md4.4 KB
- 参考文档references/workflows.md4.1 KB
- 脚本scripts/chainermn_probe.py1.8 KB
- 脚本scripts/chainerx_probe.py1.2 KB
- 脚本scripts/export_smoke.py2.6 KB
- 脚本scripts/runtime_probe.py1.8 KB
- 脚本scripts/serialization_smoke.py2.1 KB
- 脚本scripts/training_smoke.py2.6 KB
03 SKILL.md 正文
Chainer
Chainer is a maintenance-phase deep learning framework.
Use this skill when a task mentions Chainer, ChainerMN, ChainerX, onnx_chainer, or the core chainer training APIs.
Start here
- Read
references/install.mdwhen you need base install or optional-backend guidance. - Read
references/workflows.mdfor the high-level route map. - Read
references/api-overview.mdwhen you need exact signatures or verified runtime facts. - Read
references/troubleshooting.mdwhen import, backend, or build issues appear. - Read
references/repo-provenance.mdwhen you need source freshness or version context. - Run
scripts/runtime_probe.pyfor a quick local health check.
Route map
sub-skills/training/
Use for define-by-run model building, datasets, iterators, trainers, serializers, GPU or CPU setup, static-graph usage, and single-node example workflows such as MNIST, CIFAR, PTB, or serialization.
sub-skills/export/
Use for ONNX-Chainer export, export_testcase, and Caffe export or conversion troubleshooting.
sub-skills/distributed/
Use for ChainerMN, MPI or mpi4py, communicator selection, data-parallel or model-parallel training, dataset scattering, multi-node evaluators, and multi-process debugging.
sub-skills/chainerx/
Use for ChainerX build or install questions, backend and device selection, native or cuda device parsing, ChainerX limitations, and fallback behavior.
Quick install and import check
pip install chainer
python - <<'PY'
import chainer
print(chainer.__version__)
PY
Common surfaces
chainer.backends.cuda.availableandchainer.backends.cuda.cudnn_enabledchainer.backends.intel64.is_ideep_available()chainerx.is_available()onnx_chainer.export(...)chainermn.create_communicator(...)chainer.print_runtime_info()
Shared smoke scripts
scripts/runtime_probe.pyscripts/training_smoke.pyscripts/serialization_smoke.pyscripts/export_smoke.pyscripts/chainerx_probe.pyscripts/chainermn_probe.py
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).