界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
部署与运维 · SKILL.md

deployment-export

deployment-export

【部署与运维】Export, inspect, and benchmark Detectron2 models with TorchScript, optional Caffe2/ONNX paths, and safe command construction.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: deployment-export description: "Export, inspect, and benchmark Detectron2 models with TorchScript, optional Caffe2/ONNX paths, and safe command construction." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

Detectron2 Deployment Export

Use this sub-skill when a task involves exporting a Detectron2 model for deployment, choosing between tracing/scripting/Caffe2 tracing, inspecting TorchScript IR, preparing ONNX/Caffe2 attempts, building export commands, analyzing FLOPs/parameters/activations, or planning benchmark runs.

Fast Routing

Safe Defaults

  • Prefer --export-method tracing --format torchscript for a first deployable artifact when a valid sample image or dataset sample is available.
  • Prefer --export-method scripting --format torchscript when dynamic batch size is required and the model family is scriptable.
  • Treat caffe2_tracing, Caffe2 protobuf, and ONNX as optional paths that require extra dependency and runtime checks.
  • Keep export and analysis dry-run planning separate from actual execution; the bundled scripts print commands only.
  • Ask before running export, evaluation, benchmark, or analysis commands that load weights, touch datasets, write large output directories, or use GPU/accelerator resources.

Boundary Notes

This sub-skill owns deployment export method/format selection, TracingAdapter, scripting_with_instances, dump_torchscript_IR, optional Caffe2/ONNX planning, command construction, model analysis, and benchmark safety. Route config discovery and model-zoo checkpoint selection to ../configuration-model-zoo/. Route dataset registration and loaders to ../data-datasets/. Route training and evaluator semantics to ../training-evaluation/. Route custom trace/script compatibility design for new architectures or project extensions to ../extension-projects/.

我的收藏