# Export

> Routes Chainer model export workflows for ONNX-Chainer and Caffe.

- Skill: `vectorspacelab/export` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx get-skill add vectorspacelab/export`
- Raw SKILL.md: https://api.skillmd.com/api/skills/vectorspacelab/export/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- License: MIT
- Author: VectorSpaceLab (https://skillmd.com/u/vectorspacelab)
- Updated: 2026-11-18
- Page: https://skillmd.com/skills/vectorspacelab/export

---


# Export

Use this sub-skill when the user wants to export a Chainer model to ONNX or Caffe, generate export testcases, or debug conversion failures.

## Typical requests

- "Export this model to ONNX."
- "How do I generate ONNX testcases?"
- "Why does `onnx_chainer.export` fail on my model?"
- "How do I export a Chainer model to Caffe?"
- "Why is `chainer_model.prototxt` or `chainer_model.caffemodel` missing?"

## Read these first

- `references/workflows.md` for the export flow.
- `references/api-reference.md` for the exact export signatures and limits.
- `references/troubleshooting.md` for exporter-specific failure modes.

## Use this script

- `../../scripts/export_smoke.py` for a tiny ONNX and Caffe export check.

## Include here

- `onnx_chainer.export(...)` and `onnx_chainer.export_testcase(...)`
- ONNX opset version limits and named inputs / outputs
- Caffe export via `chainer.exporters.caffe.export(...)`
- Export validation, file layout, and unsupported-layer debugging

## Route elsewhere

- Ordinary model training or serialization -> `../training/`
- MPI / distributed / multi-node export scenarios -> `../distributed/`
- ChainerX-specific model behavior -> `../chainerx/`

## Quick mental model

A normal export workflow is:

1. Build a tiny model or load a trained model.
2. Feed a representative input.
3. Export the model to ONNX or Caffe.
4. Validate that the target files exist and the exported graph is structurally valid.

When you only need a fast check, use the bundled smoke script.

