triton-pytorch-model-repository
Installation
SKILL.md
Triton PyTorch Model Repository
When to Use
Trigger on .pt, .pt2, config.pbtxt for a PyTorch model, or a Triton load or inference failure on a PyTorch model. Hand off .onnx to triton-onnx-model-repository and .plan to triton-tensorrt-model-repository. Not for training.
Hard Constraints
- No auto-complete. Every input, output, datatype, and shape must be declared in
config.pbtxt. Source:pt/model_state.cc,pt2/model_state.cc. - No BF16, no FP8, no UINT16+. Cast to FP16 or FP32, or use the ONNX or TensorRT backend. Source:
libtorch_utils.cc. Seereferences/datatypes.md. - PT2 archives are device-baked. CPU export cannot serve on
KIND_GPUand vice versa. Re-export to change device. Seereferences/torch-aoti.md. - Misnamed inputs load but produce wrong results. If names match neither
forward()nor<name>__<index>, the backend falls back to strict config order. Seereferences/naming.md. - Cache-cleaning parameter is named differently per platform.
ENABLE_CACHE_CLEANINGon TorchScript,CACHE_CLEANING_ENABLEDon PT2. Seereferences/parameters.md.