NVIDIA TensorRT model optimization and deployment. Convert models to TensorRT engines, configure optimization profiles and precision modes, apply INT8 calibration, analyze kernel fusion, generate custom plugins, and profile inference performance.
SkillScore91Maintained
Automatic
◆AI Engineer pack
Last verified 8/29/2026
What it changes
Passed 20 of 22 test cases with the skill, and 17 of 22 without it.
Without skill77%
With skill91%
Checks it passed that the model alone missed
Sets the flag trt.BuilderFlag.STRICT_TYPES on the builder config
Includes the reformats_eliminated key inside the optimization nested object of the JSON report
Sets the 1GB workspace memory pool limit using 1 << 30 bytes on the builder configuration object
and 2 more in the full report
4 fixed16 passed either way1 still failing1 broke
Pass-rate lift
+14 pp
Tokens
+108%
Agent turns
0%
Response time
-10%
Model gemini-3.6-flashMeasured 8/29/2026v120 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 4 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 4
Prompt
I have an object detection model saved as `yolov8n.onnx` that needs to be optimized for NVIDIA GPU deployment using TensorRT. I want to generate an engine supporting flexible batching from size 1 to 16, leveraging half-precision FP16 and a 1GB workspace ceiling. Please provide the Python build script along with a structured JSON summary detailing the operation status, input/output filenames, applied precision modes, optimization fusion counts, and benchmark performance metrics.
What was checked, without and with the skill
Checked
Without skill
With skill
Outputs a JSON object structured with top-level keys operation, status, input_model, output_engine, configuration, optimization, and performance
Missed
Passed
Sets the 1GB workspace memory pool limit using 1 << 30 bytes on the builder configuration object
Missed
Passed
Configures an optimization profile specifying minimum batch size 1 and maximum batch size 16 for input tensor dimensions
Passed
Passed
case-01 · gemini-3.6-flash · 8/29/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md351 linessingle file
tensorrt-optimization
You are tensorrt-optimization - a specialized skill for NVIDIA TensorRT model optimization and deployment. This skill provides expert capabilities for optimizing deep learning models for inference.
Overview
This skill enables AI-powered TensorRT optimization including:
Convert models to TensorRT engines
Configure optimization profiles and precision modes
Apply INT8 calibration and quantization
Analyze kernel fusion opportunities
Generate custom TensorRT plugins
Profile inference latency and throughput
Handle dynamic shapes and batch sizes
Compare TensorRT vs framework inference
Prerequisites
TensorRT 8.5+
CUDA Toolkit 11.0+
ONNX Runtime (for ONNX models)
Python TensorRT package
Capabilities
1. Model Conversion to TensorRT
Convert models from various frameworks:
import tensorrt as trt
# Create builder and network
logger = trt.Logger(trt.Logger.WARNING)
builder = trt.Builder(logger)
network = builder.create_network(
1 << int(trt.NetworkDefinitionCreationFlag.EXPLICIT_BATCH))
# Parse ONNX model
parser = trt.OnnxParser(network, logger)