AGENT SKILL

inference-demos

Plan and troubleshoot PINTO_model_zoo inference/demo scripts without blindly running hardware- or network-heavy examples.

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

01 前言 Front Matter

name
inference-demos
license
MIT
metadata
{ "disco-role": "operating" }
description
Plan and troubleshoot PINTO_model_zoo inference/demo scripts without blindly running hardware- or network-heavy examples.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

Inference Demos

Use this sub-skill when a user wants to understand, plan, or troubleshoot a selected PINTO_model_zoo demo script.

Route here for

  • "run this TFLite/ONNX/OpenVINO demo"
  • "what runtime deps do I need for this script?"
  • "can I turn this webcam sample into a deterministic CI fixture?"
  • "the model file, label file, or test image is missing"
  • "the script imports OpenCV, onnxruntime, tensorflow, openvino, tfjs, or edge hardware helpers"

If the request is really about fetching artifacts, route to ../model-acquisition/. If it is about conversion, quantization, or export, route to ../conversion-and-deployment/. If the user has not chosen a model folder yet, start from the bundled catalog at ../../references/model-catalog.json.

Operating pattern

  1. Classify the script with scripts/classify_runtime_script.py.
  2. Read the script's --help, default model path, and nearby asset names before planning execution.
  3. Separate the inference backend from the input/output wrapper:
    • inference backend: TensorFlow/TFLite, ONNX Runtime, OpenVINO, TFJS/browser, or a closely related wrapper path;
    • wrapper/support: OpenCV camera/video, MediaPipe, Raspberry Pi/edge, or accelerator-specific flags.
  4. Preflight local assets and optional dependencies before any runtime claim.
  5. Replace live camera/video inputs with a fixed image, pinned clip, or saved frame set when possible.
  6. Stop and hand off instead of guessing when the selected backend, artifact, or hardware is unavailable.

What this skill returns

  • backend family and the import/file clues behind it
  • likely model file extensions and other asset types
  • missing model, label, image, or video fixtures
  • camera/video/display or edge-hardware risks
  • a deterministic fixture plan when live input is unnecessary
  • the next owner when this is really an acquisition or conversion task

Owned failure modes

  • missing or mismatched model/test assets
  • webcam or video demos that fail in CI or headless environments
  • import errors for optional backend runtimes
  • browser/TFJS samples that are not Python-runnable
  • Raspberry Pi / EdgeTPU / Myriad / CUDA / TensorRT paths that need concrete hardware
  • scripts that are actually conversion/export helpers in disguise

Bundled resources

  • references/inference-workflows.md
  • references/runtime-dependencies.md
  • references/troubleshooting.md
  • scripts/classify_runtime_script.py

This sub-skill plans inference/demo work. It does not claim native backend verification in Creator.

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