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
- 参考文档references/configuration.md2.6 KB
- 参考文档references/troubleshooting.md1.3 KB
- 参考文档references/workflows.md2.6 KB
- 脚本scripts/build-nvdsinfer-plugin.sh3.0 KB
- 脚本scripts/check-deepstream-toolchain.sh1.0 KB
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_VERselection for the chosen DeepStream release.make -C nvdsinfer_custom_impl_Yolo ...build flow.deepstream_app_config.txtand singleprimary-giewiring.- Custom models that already have
.onnxor.cfg/.weightsartifacts. - 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
- Read
references/workflows.mdfor the full single-model flow. - Read
references/configuration.mdbefore editing any config template. - Run
scripts/check-deepstream-toolchain.shto see whether the host is ready for build/runtime work. - Run
scripts/build-nvdsinfer-plugin.sh --output-dir ./deepstream-yolo-runtimeonceCUDA_VERis set; the helper stages the bundled parser source and configs for you. - Launch
deepstream-appfrom the staged runtime tree, not from the original repository checkout. - Use
references/troubleshooting.mdif the build or runtime fails.
Key decisions
- If the model is still a checkpoint, route to
model-conversionfirst. - 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-gieinstead 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-configfrom ONNX-styleonnx-fileconfigs. - Recognize whether the failure is a build issue, a model/template mismatch, or a host prerequisite gap.
Common failure signals
CUDA_VER is not setdeepstream-app: command not found- Missing or mismatched
labels.txt - Wrong
num-detected-classes - Engine file created for the wrong batch size or precision
GLibor 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
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.
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.
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.
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.
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.
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).