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
- 参考文档references/benchmark-notes.md1.1 KB
- 参考文档references/troubleshooting.md1.2 KB
- 参考文档references/workflows.md1.7 KB
- 脚本scripts/build-nvdsinfer-plugin.sh3.0 KB
- 脚本scripts/make-calibration-list.sh765 B
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.tableINT8_CALIB_IMG_PATHINT8_CALIB_BATCH_SIZEOPENCV=1- benchmark table
- NMS threshold tuning
- performance comparison
Include here
- The OpenCV-backed calibration build path.
- Calibration image list preparation.
int8-calib-fileand 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
- Read
references/workflows.mdfor the calibration flow. - Read
references/benchmark-notes.mdfor the benchmark table and NMS defaults. - Use
scripts/make-calibration-list.shto buildcalibration.txtfrom a directory of images. - Use
scripts/build-nvdsinfer-plugin.sh --output-dir ./deepstream-yolo-runtimeto rebuild the library withOPENCV=1when calibration support is required. - Use
deploymentonly after the calibration build path is ready. - Read
references/troubleshooting.mdif 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.tableand uses the INT8 engine path. - Read the benchmark table without treating it as a universal default.
Common failure signals
libopencv-devmissingOPENCV=1build path not enabledINT8_CALIB_IMG_PATHpoints to a stale listcalib.tableis not written- NMS or threshold values are not matched to the family
Linked helpers
scripts/make-calibration-list.sh— buildcalibration.txtfrom a directory of images.scripts/build-nvdsinfer-plugin.sh— build the custom library in a fresh runtime tree withOPENCV=1when 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
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).