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

  1. No auto-complete. Every input, output, datatype, and shape must be declared in config.pbtxt. Source: pt/model_state.cc, pt2/model_state.cc.
  2. No BF16, no FP8, no UINT16+. Cast to FP16 or FP32, or use the ONNX or TensorRT backend. Source: libtorch_utils.cc. See references/datatypes.md.
  3. PT2 archives are device-baked. CPU export cannot serve on KIND_GPU and vice versa. Re-export to change device. See references/torch-aoti.md.
  4. Misnamed inputs load but produce wrong results. If names match neither forward() nor <name>__<index>, the backend falls back to strict config order. See references/naming.md.
  5. Cache-cleaning parameter is named differently per platform. ENABLE_CACHE_CLEANING on TorchScript, CACHE_CLEANING_ENABLED on PT2. See references/parameters.md.
Installs
4
Repository
nvidia/skills
GitHub Stars
4.2K
First Seen
8 days ago