Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
deployment【部署与运维】Export DAMO-YOLO models to ONNX or TensorRT, plan partial INT8 quantization, and diagnose deployment backend dependencies.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.
scripts/check_deploy_env.py before installing or debugging optional backends.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.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.--benchmark or no --end2end) when measuring backbone/neck/head latency without NMS.--end2end --ort for ONNX Runtime NMS export; use --end2end without --ort only when the downstream TensorRT parser/runtime supports the selected NMS plugin family.pytorch_quantization.pytorch_quantization, model-type-specific sensitivity lists (tiny, small, medium), and enough GPU memory.