AGENT SKILL

model-conversion

Routes DeepStream-Yolo exporter selection, ONNX conversion, and labels generation for supported model families.

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

01 前言 Front Matter

name
model-conversion
license
MIT
metadata
{ "disco-role": "operating" }
description
Routes DeepStream-Yolo exporter selection, ONNX conversion, and labels generation for supported model families.
disable-model-invocation
true

02 资源文件 13

03 SKILL.md 正文

Model conversion

Use this sub-skill when the task is about turning a checkpoint into a DeepStream-ready ONNX file, picking the right exporter script, or generating the matching labels.txt.

Trigger phrases

  • convert weights to ONNX
  • export YOLOv8 / YOLO11 / YOLOv10 / YOLOv12 / YOLOv13 / YOLO26
  • generate labels.txt
  • which export script should I use
  • dynamic batch ONNX export
  • use the DeepStream-Yolo exporter helper
  • upstream repo setup for export

Include here

  • Ultralytics-family exporters that were verified in the inspection environment.
  • Export flags such as --size, --dynamic, --batch, --simplify, and --opset.
  • Label generation from exporter metadata.
  • Guidance for matching the generated ONNX file back to the DeepStream config template.
  • Reference-only notes for the other supported model families and their upstream stacks.

Exclude or route elsewhere

  • Building or running deepstream-app: use deployment.
  • Multiple detector layouts: use multi-gie.
  • INT8 calibration and benchmark tuning: use int8-benchmarking.
  • Import/export or refresh of the skill library itself.

How to use this route

  1. Read references/workflows.md for the export flow.
  2. Read references/model-family-matrix.md to pick the exporter and understand which families are bundled vs reference-only.
  3. Read references/upstream-dependencies.md when the user wants an external repo setup checklist.
  4. Use the bundled exporter script from scripts/ that matches the chosen Ultralytics family.
  5. Read references/troubleshooting.md if the export fails or labels are missing.

What a future agent should be able to do here

  • Choose the correct exporter from a checkpoint name and model family.
  • Explain the common exporter flags and how they affect the ONNX artifact.
  • Distinguish bundled Ultralytics-family support from reference-only upstream stacks.
  • Tell the user which file to copy into the DeepStream deployment folder after export.

Common failure signals

  • Missing onnx, onnxslim, or onnxruntime
  • The model file path is wrong
  • The exporter runs but does not create labels.txt
  • A legacy upstream repo is not installed
  • The family matrix says the exporter is reference-only in this skill

Linked helpers

  • scripts/export_yoloV8.py — verified Ultralytics exporter copy.
  • scripts/export_yolo11.py — verified Ultralytics exporter copy.
  • scripts/export_yoloV10.py — verified Ultralytics exporter copy.
  • scripts/export_yolov12.py — verified Ultralytics exporter copy.
  • scripts/export_yoloV13.py — verified Ultralytics exporter copy.
  • scripts/export_yolo26.py — verified Ultralytics exporter copy.
  • scripts/export_yolomaster.py — verified Ultralytics exporter copy.
  • scripts/export_yoloV5u.py — verified Ultralytics exporter copy.
  • scripts/export_rtdetr_ultralytics.py — verified Ultralytics exporter copy.
  • references/workflows.md — end-to-end export steps.
  • references/model-family-matrix.md — exporter mapping and bundled/reference-only split.
  • references/upstream-dependencies.md — external stack requirements by family.
  • references/troubleshooting.md — export and label failure modes.

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