From inference-builder
Generates deployable Vision AI pipelines with GPU acceleration using YAML configs and NVIDIA backends (DeepStream, Triton, vLLM, TensorRT-LLM, PyTorch).
How this skill is triggered — by the user, by Claude, or both
Slash command
/inference-builder:inference-builderThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
A code generator for Vision AI pipelines with high-performance video and
A code generator for Vision AI pipelines with high-performance video and streaming capabilities on NVIDIA GPUs. It turns a YAML config (+ optional OpenAPI spec and custom processors) into a deployable inference pipeline, packaged as a Docker container or standalone application.
A .skill_config file in the same directory as this SKILL.md provides the
project root and ready-to-use commands. Read it first — it contains:
INFERENCE_BUILDER_ROOT — absolute path to the project repositoryINFERENCE_BUILDER_VENV — command to activate the virtual environmentINFERENCE_BUILDER_CLI — command to invoke the builder CLIExample .skill_config:
INFERENCE_BUILDER_ROOT="/home/user/inference-builder"
INFERENCE_BUILDER_VENV="source /home/user/inference-builder/.venv/bin/activate"
INFERENCE_BUILDER_CLI="python /home/user/inference-builder/builder/main.py"
To run the builder from any working directory:
source /path/to/.skill_config # load the variables
eval "$INFERENCE_BUILDER_VENV" # activate venv
$INFERENCE_BUILDER_CLI --help # run the CLI
If .skill_config does not exist (e.g. running directly from the repo), all
paths below are relative to the repository root and the CLI is:
source .venv/bin/activate
python builder/main.py <config.yaml> [options]
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Always run with --help for authoritative flags — do NOT rely on memorized
syntax:
python builder/main.py --help
| Path | What lives there |
|---|---|
builder/samples/ | Working examples for every backend — read builder/samples/README.md for the full index, then start from the closest matching example |
schemas/config.schema.json | Main config schema — all fields, data types, and validation rules |
schemas/README.md | Comprehensive reference: backends, parameters, data types, preprocessors, responders, routing |
schemas/backends/ | Per-backend schemas and parameter definitions |
templates/backend/ | Jinja templates for each inference backend |
templates/responder/ | Jinja templates for server endpoint handlers |
lib/ | Shared runtime libraries included in generated pipelines |
builder/tests/ | Integration test framework (see run_tests.sh --help) |
builder/samples/;
consult schemas/config.schema.json and schemas/backends/ for field referenceschemas/README.md for data types, preprocessors, responders, and routing.
Prefer choices that keep the hot path on GPU and skip avoidable GPU↔CPU
round-trips; prefer GPU acceleration across the whole pipeline — decode/
encode, scale & color convert, batch, preprocess, infer, track, and overlaypython builder/main.py <config.yaml> [options]doc/platform-guide.md to
choose the correct base image and Dockerfile for the target hardware
(x86_64, Jetson/Tegra, DGX Spark); then build the image$ENV_VAR|default_value
(auto-typed based on the default).serverless does NOT need an OpenAPI spec or server definition.name attribute must exactly match the processor
name in the YAML config.--network=host and --ipc=host.nvidia-smi for free GPU memory. If GPUs
are occupied or low on memory, select a free GPU with --gpus device=N or
ask the user to free resources — OOM failures can be silent or misleading.HTTP_PORT (default 8000), LOG_LEVEL (default INFO),
DEBUG (0/1), N_CODEC_INSTANCES (parallel video decoders),
MAX_BATCH_SIZE (live stream frame batching).nvdsinfer_config.yaml in the
model directory.name,
model_repo, and models — everything else is optional.npx claudepluginhub nvidia-ai-iot/inference_builderGuides ML/CV design: model selection (BERT, YOLOv8, Whisper), training/inference pipelines, API vs self-hosted tradeoffs, and cost analysis for production deployment.
Generates TorchServe configuration files for ML model deployment, helping set up serving, inference, and monitoring parameters.
Starts, queries, and stops a TAO inference microservice container for deploying and running inference on TAO model checkpoints.