npx skills add ...
npx skills add nvidia/tensorrt-llm --skill exec-local-docker
Execute a TensorRT-LLM workload locally in Docker. Runs a fully-resolved Docker command in background, monitors completion, reads logs, and reports results. Workflow-agnostic — does not need to know if the workload is pytest, eval, benchmark, or a custom script.
npx skills add nvidia/tensorrt-llm --skill exec-local-docker
Run a Docker command locally, monitor it, and report results.
The orchestrator passes these fields in the skill prompt:
| Field | Description |
|---|---|
docker_cmd | Complete docker run command string, ready to execute |
work_dir | Local work directory for logs and artifacts |
log_file | Full path to the log file (output redirected here) |
model_name | Short model name for reporting |
workflow_type | pytest, eval, custom, or benchmark — for output parsing hints |
success_patterns | Comma-separated patterns indicating success (e.g., passed,accuracy:) |
failure_patterns | Comma-separated patterns indicating failure (e.g., FAILED,Error,AssertionError) |
build_project=true)This executor owns image selection and the build for the local Docker target. Skip the entire step when build_project=false.
gpu_type from job_spec.json if upstream env-check resolved it; otherwise probe locally with nvidia-smi --query-gpu=name --format=csv,noheader | head -1.uname -m (x86_64 or aarch64).<repo_root>/jenkins/current_image_tags.properties and pick the tag whose CPU-arch flavor matches the host. If the orchestrator already passed a container_image field in the job spec, use that and skip the lookup.-a flag): H100/H200 → 90-real; B200/GB200/B300/GB300 → 100-real; A100 → 80-real; L40S → 89-real. Default 100-real when the GPU is unknown.exec-local-compile skill with repo_dir=<repo_root>, image=<resolved tag>, arch=<arch>. Wait for completion.BUILD_FAILED with the last 100 lines of the compile log.build_project, gpu_type, repo_root, and (optionally) container_image come from job_spec.json.
Run the Docker command in background using run_in_background:
Report to the orchestrator: "Launched locally, log at <log_file>"
While waiting for the background process to complete, actively monitor the log
file for hang indicators. Launch a monitoring loop using run_in_background:
HANG_DETECTED status
instead of proceeding to normal result collection.The Bash tool's run_in_background will notify when the process finishes
(either normally or because the container was killed by the hang monitor).
On completion:
<log_file> using the Read tool.<log_file> for each success_patterns entry<log_file> for each failure_patterns entryReturn a structured result:
X passed, Y failed in Zs summary lineaccuracy: or score: lines; check for Expected accuracy >= X, but got Y assertionrun_in_backgroundcat the full log file — use Read with offset/limit or tail