writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
deploymentExport DAMO-YOLO models to ONNX or TensorRT, plan partial INT8 quantization, and diagnose deployment backend dependencies.
Independent GitHub snapshot · Automated classification · Original documentation governs
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.