Install any skill in seconds. Free to start, no credit card required.
Get Started Free →NVIDIA TensorRT — deep learning inference optimizer. FP16/INT8/INT4 quantization, kernel auto-tuning, layer fusion, and dynamic shapes. Max throughput on NVIDIA GPUs for production inference.
.claude/skills/mkurman-tensorrt/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | 16% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 22% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 8% | 0% |
| case-21 | ✗→✓ | ▲ Improved | 44% | 0% |
| case-01 | ✓→✓ | = Same ✓ | 2% | 0% |
TensorRT is NVIDIA's high-performance inference optimizer and runtime for deploying deep learning models on NVIDIA GPUs. Use it when you need lower latency, higher throughput, FP16/INT8 optimization, or production GPU serving from ONNX or TensorFlow/PyTorch exports.
Use this skill when:
TensorRT is usually installed via NVIDIA packages, Docker images, or NGC containers rather than plain pip.
Typical paths:
bash# Inside NVIDIA container ecosystems # Use an NGC PyTorch or TensorRT container # ONNX graph simplification often helps before conversion uv pip install onnx onnxruntime onnxsim polygraphy
trtexec.pythonimport torch dummy = torch.randn(1, 3, 224, 224, device='cuda') model.eval() torch.onnx.export( model, dummy, 'model.onnx', input_names=['input'], output_names=['logits'], dynamic_axes={'input': {0: 'batch'}, 'logits': {0: 'batch'}}, opset_version=17, )
bashpython - <<'PY' import onnx m = onnx.load('model.onnx') onnx.checker.check_model(m) print('ONNX OK') PY
bashtrtexec --onnx=model.onnx --saveEngine=model_fp16.plan --fp16 --workspace=4096 --minShapes=input:1x3x224x224 --optShapes=input:8x3x224x224 --maxShapes=input:32x3x224x224
Use INT8 only when you have either:
bashtrtexec --onnx=model.onnx --saveEngine=model_int8.plan --int8 --fp16
bashtrtexec --loadEngine=model_fp16.plan --shapes=input:8x3x224x224
Check:
Recommended production layout:
textmodel_repository/ my_model/ 1/ model.plan config.pbtxt
Minimal config.pbtxt:
textname: "my_model" platform: "tensorrt_plan" max_batch_size: 32 input [ { name: "input" data_type: TYPE_FP32 dims: [ 3, 224, 224 ] } ] output [ { name: "logits" data_type: TYPE_FP32 dims: [ 1000 ] } ]
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | pass→pass | 19,596 | 14,501 | -26% | 1 | 1 | 0% | 3,885 | 3,977 | +2% | 0 | 0 | — |
case-02 | pass→pass | 14,054 | 13,447 | -4% | 1 | 1 | 0% | 2,685 | 3,647 | +36% | 0 | 0 | — |
case-03 | fail→pass | 10,099 | 6,071 | -40% | 1 | 1 | 0% | 1,835 | 2,120 | +16% | 0 | 0 | — |
case-08 | pass→pass | 3,599 | 3,308 | -8% | 1 | 1 | 0% | 639 | 1,627 | +155% | 0 | 0 | — |
case-04 | pass→pass | 12,382 | 8,092 | -35% | 1 | 1 | 0% | 2,076 | 2,471 | +19% | 0 | 0 | — |
case-05 | fail→fail | 8,169 | 5,327 | -35% | 1 | 1 | 0% | 1,519 | 2,020 | +33% | 0 | 0 | — |
case-06 | pass→pass | 7,047 | 6,036 | -14% | 1 | 1 | 0% | 1,273 | 2,112 | +66% | 0 | 0 | — |
case-07 | pass→pass | 2,154 | 4,559 | +112% | 1 | 1 | 0% | 377 | 1,794 | +376% | 0 | 0 | — |
case-09 | pass→pass | 5,996 | 3,637 | -39% | 1 | 1 | 0% | 1,019 | 1,589 | +56% | 0 | 0 | — |
case-10 | pass→pass | 15,088 | 10,303 | -32% | 1 | 1 | 0% | 2,386 | 2,739 | +15% | 0 | 0 | — |
case-11 | fail→pass | 7,270 | 2,901 | -60% | 1 | 1 | 0% | 1,225 | 1,492 | +22% | 0 | 0 | — |
case-12 | pass→pass | 7,611 | 3,928 | -48% | 1 | 1 | 0% | 1,325 | 1,715 | +29% | 0 | 0 | — |
case-13 | pass→pass | 4,702 | 3,331 | -29% | 1 | 1 | 0% | 821 | 1,521 | +85% | 0 | 0 | — |
case-14 | pass→pass | 9,870 | 6,334 | -36% | 1 | 1 | 0% | 1,603 | 2,013 | +26% | 0 | 0 | — |
case-15 | pass→pass | 8,308 | 3,986 | -52% | 1 | 1 | 0% | 1,448 | 1,578 | +9% | 0 | 0 | — |
case-16 | pass→pass | 4,932 | 4,339 | -12% | 1 | 1 | 0% | 827 | 1,720 | +108% | 0 | 0 | — |
case-17 | fail→pass | 16,017 | 11,058 | -31% | 1 | 1 | 0% | 2,866 | 3,092 | +8% | 0 | 0 | — |
case-18 | pass→pass | 14,202 | 11,565 | -19% | 1 | 1 | 0% | 2,227 | 2,921 | +31% | 0 | 0 | — |
case-19 | pass→pass | 14,820 | 10,498 | -29% | 1 | 1 | 0% | 2,271 | 2,730 | +20% | 0 | 0 | — |
case-20 | pass→pass | 10,648 | 9,284 | -13% | 1 | 1 | 0% | 1,772 | 2,406 | +36% | 0 | 0 | — |
case-21 | fail→pass | 14,509 | 12,777 | -12% | 1 | 1 | 0% | 2,223 | 3,209 | +44% | 0 | 0 | — |
case-22 | pass→pass | 4,442 | 3,547 | -20% | 1 | 1 | 0% | 703 | 1,599 | +127% | 0 | 0 | — |
case-23 | pass→pass | 13,270 | 6,575 | -50% | 1 | 1 | 0% | 2,127 | 2,081 | -2% | 0 | 0 | — |
case-24 | pass→pass | 14,929 | 12,594 | -16% | 1 | 1 | 0% | 2,197 | 2,987 | +36% | 0 | 0 | — |
case-25 | pass→pass | 12,249 | 11,161 | -9% | 1 | 1 | 0% | 2,028 | 2,834 | +40% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 25 cases were attempted. The headline lift of +16 percentage points is the difference between those two pass rates over the 25 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.