Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

triton-pytorch-model-repository

Skill by triton-inference-server

Deploys a PyTorch model as a Triton Inference Server endpoint, from TorchScript .pt files or PT2 archives. Writes config.pbtxt, launches the server and helps debug load and inference failures. Built for developers serving PyTorch models on Triton.

  • Score 94
  • 11k stars
  • BSD-3-Clause
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install triton-pytorch-model-repository

Built from the published package, never by AI.

git clone --depth 1 https://github.com/triton-inference-server/server /tmp/server && mkdir -p ~/.claude/skills && cp -r /tmp/server/skills/triton-pytorch-model-repository ~/.claude/skills/triton-pytorch-model-repository

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install triton-pytorch-model-repository in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill helps an assistant deploy a PyTorch model as a working Triton Inference Server endpoint. It covers TorchScript .pt files and PT2 archives (.pt2 built with torch.export and AOT Inductor). It can write a config.pbtxt from scratch, show how to launch the server, and send an inference request over HTTP using the KFServing v2 format.

It also helps debug failed model loads and inference errors. The skill lists a fixed validation order and an error catalog with recovery steps. The source says it is not for training, and it sends ONNX and TensorRT models to other skills. It is aimed at developers who want to serve PyTorch models on Triton.

Written from the project's SKILL.md and checked against it.

What it can do

  • Deploy TorchScript modelsSets up a model repository with a model.pt file and a config.pbtxt for the PyTorch backend.
  • Deploy PT2 archivesBuilds a model.pt2 archive with torch.export and AOT Inductor and serves it on Triton.
  • Write config.pbtxtWrites the model configuration, declaring inputs, outputs, datatypes, shapes and instance groups.
  • Send inference requestsShows how to call the HTTP KFServing v2 inference endpoint with curl.
  • Debug failed loadsChecks file presence, input count, datatype support and naming in a fixed order.
  • Look up error messagesMaps server log errors to recovery steps using a catalog of errors.
  • Tune performanceGives guidance on instance groups, thread counts, warmup and KIND_MODEL behavior.

What you need

  • NVIDIA Triton Inference Server container (nvcr.io/nvidia/tritonserver:26.10-py3)
  • PyTorch installed to build model artifacts
  • NVIDIA GPU for KIND_GPU instance groups

Try asking

  • Deploy my TorchScript model.pt as a Triton endpoint with a config.pbtxt
  • Write a config.pbtxt for my PT2 archive exported with dynamic batch size
  • My Triton server fails to load my PyTorch model. Help me debug the error

Good to know

  • Not for training.
  • No BF16, FP8 or UINT16+ datatypes in the PyTorch backend. Cast to FP16 or FP32, or use the ONNX or TensorRT backend.
  • PT2 archives are tied to the device they were exported on.
  • The --disable-auto-complete-config flag is server-wide and breaks models that rely on auto-complete.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/triton-pytorch-model-repository/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • BENCHMARK.md12 KB
  • SKILL.md8 KB
  • evals/evals.json4 KB
  • references/config-pbtxt.md4 KB
  • references/datatypes.md2 KB
Show all 12 files
  • references/errors.md6 KB
  • references/naming.md3 KB
  • references/parameters.md4 KB
  • references/sequence-batching.md4 KB
  • references/torch-aoti.md4 KB
  • skill-card.md7 KB
  • skill.oms.sig6 KB

Alternatives to triton-pytorch-model-repository

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

triton-pytorch-model-repository: common questions

Does this work with ONNX or TensorRT models?

No. The source says .onnx files go to triton-onnx-model-repository and .plan engines go to triton-tensorrt-model-repository.

Can a PT2 archive run on both CPU and GPU?

No. The source says PT2 archives are device-baked, so a CPU export cannot serve on KIND_GPU and the reverse. Re-export to change device.

Why does my PyTorch model load but return wrong results?

The source says misnamed inputs load but produce wrong results, because the backend falls back to strict config order when names match neither forward() nor the <name>__<index> form.

How do I install triton-pytorch-model-repository?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is triton-pytorch-model-repository free?

The code is published under the BSD-3-Clause licence. The service it connects to may have its own pricing.

Is triton-pytorch-model-repository safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to triton-pytorch-model-repository?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

triton-pytorch-model-repository Install

Add to stack

Loading.