AGENT SKILL

deployment

Export DAMO-YOLO models to ONNX or TensorRT, plan partial INT8 quantization, and diagnose deployment backend dependencies.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
deployment
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Export DAMO-YOLO models to ONNX or TensorRT, plan partial INT8 quantization, and diagnose deployment backend dependencies.
disable-model-invocation
true

02 资源文件 6

03 SKILL.md 正文

DAMO-YOLO deployment

Use this sub-skill when the task involves DAMO-YOLO ONNX export, TensorRT engine export or evaluation, partial INT8 quantization, OpenVINO/TensorRT benchmark preparation, or deployment dependency troubleshooting.

Route training, fine-tuning, and COCO dataset setup to the training sub-skill. Route image/video/camera inference with an already-created engine to the inference sub-skill.

First actions

  1. Identify the target artifact: raw ONNX, end-to-end ONNX with NMS, TensorRT FP32/FP16/INT8 engine, TensorRT evaluation, OpenVINO conversion, or partial quantization.
  2. Read Deployment workflows for supported paths and when to stop at ONNX.
  3. Read Deployment CLI reference for flag meanings and source-equivalent commands.
  4. Run scripts/check_deploy_env.py before installing or debugging optional backends.
  5. Use scripts/export_onnx_safe.py when you need a generated-skill-owned ONNX exporter that imports the installed damo package and does not call repo-local converter scripts.
  6. If anything fails, use Deployment troubleshooting.

Bundled helper scripts

  • scripts/check_deploy_env.py: reports availability of damo, PyTorch/CUDA, ONNX, ONNX Runtime, ONNX simplifier, TensorRT, CUDA Python/PyCUDA, and pytorch_quantization.
  • scripts/export_onnx_safe.py: self-contained ONNX export helper adapted from the source converter flow. It requires a config, checkpoint, and output path; it supports raw or end-to-end ONNX export but does not build .trt engines. The helper calls torch.onnx.export(..., dynamo=False) so it does not require onnxscript on PyTorch builds whose default exporter uses it.

Operating rules

  • Keep model config, checkpoint, image size, batch size, and class count aligned. Most deployment failures are shape or class-count mismatches.
  • Use raw ONNX (--benchmark or no --end2end) when measuring backbone/neck/head latency without NMS.
  • Use --end2end --ort for ONNX Runtime NMS export; use --end2end without --ort only when the downstream TensorRT parser/runtime supports the selected NMS plugin family.
  • TensorRT engine build/eval requires a TensorRT runtime stack; the construction environment verified CUDA but did not install TensorRT, PyCUDA, or pytorch_quantization.
  • Partial INT8 quantization is an advanced TensorRT workflow. It needs calibration images, pytorch_quantization, model-type-specific sensitivity lists (tiny, small, medium), and enough GPU memory.

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