AGENT SKILL

int8-benchmarking

Routes INT8 calibration, calibration-image preparation, and benchmark tuning tasks for DeepStream-Yolo models.

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

01 前言 Front Matter

name
int8-benchmarking
license
MIT
metadata
{ "disco-role": "operating" }
description
Routes INT8 calibration, calibration-image preparation, and benchmark tuning tasks for DeepStream-Yolo models.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

INT8 benchmarking

Use this sub-skill when the task is about calibration-enabled builds, calib.table, INT8 engine generation, or interpreting the benchmark notes and NMS values.

Trigger phrases

  • INT8 calibration
  • calib.table
  • INT8_CALIB_IMG_PATH
  • INT8_CALIB_BATCH_SIZE
  • OPENCV=1
  • benchmark table
  • NMS threshold tuning
  • performance comparison

Include here

  • The OpenCV-backed calibration build path.
  • Calibration image list preparation.
  • int8-calib-file and related DeepStream config edits.
  • Benchmark notes, NMS values, and performance caveats.
  • Troubleshooting for calibration-specific failures.

Exclude or route elsewhere

  • Exporting the checkpoint to ONNX: use model-conversion.
  • Single-model deployment without calibration: use deployment.
  • Multiple GIE layout work: use multi-gie.
  • Skill maintenance or import/export logic.

How to use this route

  1. Read references/workflows.md for the calibration flow.
  2. Read references/benchmark-notes.md for the benchmark table and NMS defaults.
  3. Use scripts/make-calibration-list.sh to build calibration.txt from a directory of images.
  4. Use scripts/build-nvdsinfer-plugin.sh --output-dir ./deepstream-yolo-runtime to rebuild the library with OPENCV=1 when calibration support is required.
  5. Use deployment only after the calibration build path is ready.
  6. Read references/troubleshooting.md if the calibration build or runtime fails.

What a future agent should be able to do here

  • Decide whether the calibration build path needs OPENCV=1.
  • Build a valid calibration image list from a COCO-style or custom image directory.
  • Edit the infer config so INT8 calibration writes calib.table and uses the INT8 engine path.
  • Read the benchmark table without treating it as a universal default.

Common failure signals

  • libopencv-dev missing
  • OPENCV=1 build path not enabled
  • INT8_CALIB_IMG_PATH points to a stale list
  • calib.table is not written
  • NMS or threshold values are not matched to the family

Linked helpers

  • scripts/make-calibration-list.sh — build calibration.txt from a directory of images.
  • scripts/build-nvdsinfer-plugin.sh — build the custom library in a fresh runtime tree with OPENCV=1 when needed.
  • references/workflows.md — calibration and run steps.
  • references/benchmark-notes.md — benchmark and NMS guidance.
  • references/troubleshooting.md — calibration-specific 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