AGENT SKILL

deployment

Routes single-model DeepStream-Yolo build, config editing, and runtime deployment tasks for one detector.

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

01 前言 Front Matter

name
deployment
license
MIT
metadata
{ "disco-role": "operating" }
description
Routes single-model DeepStream-Yolo build, config editing, and runtime deployment tasks for one detector.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Deployment

Use this sub-skill when the task is about one DeepStream YOLO pipeline end to end: building the custom inference library, choosing the right config template, editing the DeepStream app config, and diagnosing build or runtime failures.

Trigger phrases

  • build the DeepStream-Yolo library
  • run one YOLO model in DeepStream
  • edit config_infer_primary*.txt
  • edit deepstream_app_config.txt
  • custom model on deepstream-app
  • why does the pipeline not start
  • how do I map labels or class counts

Include here

  • CUDA_VER selection for the chosen DeepStream release.
  • make -C nvdsinfer_custom_impl_Yolo ... build flow.
  • deepstream_app_config.txt and single primary-gie wiring.
  • Custom models that already have .onnx or .cfg / .weights artifacts.
  • Model-family config differences that affect a single detector.
  • Cross-cutting deployment troubleshooting.

Exclude or route elsewhere

  • Exporting checkpoints to ONNX: use model-conversion.
  • Multiple primary/secondary detectors: use multi-gie.
  • INT8 calibration tuning and benchmark interpretation: use int8-benchmarking.
  • Repo maintenance, import/export to other agents, or refresh logic.

How to use this route

  1. Read references/workflows.md for the full single-model flow.
  2. Read references/configuration.md before editing any config template.
  3. Run scripts/check-deepstream-toolchain.sh to see whether the host is ready for build/runtime work.
  4. Run scripts/build-nvdsinfer-plugin.sh --output-dir ./deepstream-yolo-runtime once CUDA_VER is set; the helper stages the bundled parser source and configs for you.
  5. Launch deepstream-app from the staged runtime tree, not from the original repository checkout.
  6. Use references/troubleshooting.md if the build or runtime fails.

Key decisions

  • If the model is still a checkpoint, route to model-conversion first.
  • If the model is already an ONNX file or Darknet pair, this sub-skill owns the DeepStream wiring.
  • If the same app needs two or more detectors, route to multi-gie instead of piling secondary configuration into this route.

What a future agent should be able to do here

  • Identify the correct config template for the model family.
  • Set the right batch-size, network-mode, num-detected-classes, and parser / engine creator names.
  • Distinguish Darknet-style custom-network-config from ONNX-style onnx-file configs.
  • Recognize whether the failure is a build issue, a model/template mismatch, or a host prerequisite gap.

Common failure signals

  • CUDA_VER is not set
  • deepstream-app: command not found
  • Missing or mismatched labels.txt
  • Wrong num-detected-classes
  • Engine file created for the wrong batch size or precision
  • GLib or GStreamer runtime issues on the host

Linked helpers

  • scripts/check-deepstream-toolchain.sh — probe build/runtime readiness.
  • scripts/build-nvdsinfer-plugin.sh — wrapper for the custom library build.
  • references/workflows.md — the single-model step-by-step flow.
  • references/configuration.md — the config key table and model-family notes.
  • references/troubleshooting.md — deployment-specific symptoms and fixes.

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