AGENT SKILL

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

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.md when you need base install or optional-backend guidance.
  • Read references/workflows.md for the high-level route map.
  • Read references/api-overview.md when you need exact signatures or verified runtime facts.
  • Read references/troubleshooting.md when import, backend, or build issues appear.
  • Read references/repo-provenance.md when you need source freshness or version context.
  • Run scripts/runtime_probe.py for 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.available and chainer.backends.cuda.cudnn_enabled
  • chainer.backends.intel64.is_ideep_available()
  • chainerx.is_available()
  • onnx_chainer.export(...)
  • chainermn.create_communicator(...)
  • chainer.print_runtime_info()

Shared smoke scripts

  • scripts/runtime_probe.py
  • scripts/training_smoke.py
  • scripts/serialization_smoke.py
  • scripts/export_smoke.py
  • scripts/chainerx_probe.py
  • scripts/chainermn_probe.py

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351