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.
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-repositoryRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install triton-pytorch-model-repository in Claude Code
git clone --depth 1 https://github.com/triton-inference-server/server /tmp/server && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/server/skills/triton-pytorch-model-repository ~/.gemini/antigravity-cli/skills/triton-pytorch-model-repositoryAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install triton-pytorch-model-repository in Antigravity CLI
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
ANo 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 →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
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.
