Tuning Assistant Agent
The tuning-assistant subagent finds the fastest backend for a PyTorch model or pipeline using NVIDIA AITune. It runs the full AOT tuning loop — inspect, wrap, tune, validate, benchmark — and returns a deployment recommendation with a saved .ait checkpoint.
How to invoke
In Claude Code, just mention the subagent name:
What to include in the prompt
For HuggingFace models the agent can infer inputs from the model card, but providing them avoids an extra round-trip.
Example prompts
Minimal (agent infers inputs from HF model card):
Recommended (explicit input context):
With constraints:
What the agent does
- Runs environment checks (GPU, CUDA, AITune, TensorRT)
- Inspects the model — tries root module first, then depth=1 submodules if root fails
- Iterates backends in priority order: TRT-fp16 → TRT-fp32 → TorchTRT-AOT → TorchTRT-JIT → TorchAO → Inductor → TorchEager
- Validates correctness and benchmarks each successful backend
- Saves a
.aitcheckpoint and reports GO / CONDITIONAL GO / NO-GO
Work is placed under tuning/<model_name>/ in the current directory.