Scan your whole stack
From OX Research Newsroom
Latest version: vgit:e03cc69791948597c2978c6c6b85d9aa78a5c7bf
triton-pytorch-model-repository was last scanned on 25 Nov 2026 at commit e03cc697. Risk score 1 of 100 (low). No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| e03cc697 | 1 rule fired |
Findings for commit e03cc697. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The skill's text or bundled scripts contain encoded content, such as a long base64 or hex string, a dense run of hex escapes, or invisible Unicode tag characters that can carry hidden instructions. Skills rarely need these. On its own this is not evidence of malicious behavior.
LOWThe score describes e03cc697; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
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.
config.pbtxt. Source: pt/model_state.cc, pt2/model_state.cc.libtorch_utils.cc. See references/datatypes.md.KIND_GPU and vice versa. Re-export to change device. See references/torch-aoti.md.forward() nor <name>__<index>, the backend falls back to strict config order. See references/naming.md.ENABLE_CACHE_CLEANING on TorchScript, CACHE_CLEANING_ENABLED on PT2. See references/parameters.md.| Form | config.pbtxt |
Model file |
|---|---|---|
| TorchScript, C++ runtime | platform: "pytorch_libtorch" |
model.pt |
| TorchScript, Python runtime | backend: "pytorch" + runtime: "model.py" |
model.pt (the runtime: "model.py" value names the backend's shipped Python runtime, not a user file; if a user authors their own model.py in the version directory it takes priority over model.pt) |
| AOT Inductor (PT2) | backend: "pytorch" + platform: "torch_aoti" |
model.pt2 |
Default filenames overridable with default_model_filename.
Layout:
model_repository/
<name>/
config.pbtxt
1/model.pt
Minimal config.pbtxt:
name: "my_model"
platform: "pytorch_libtorch"
max_batch_size: 8
input [ { name: "INPUT__0" data_type: TYPE_FP32 dims: [ 3, 224, 224 ] } ]
output [ { name: "OUTPUT__0" data_type: TYPE_FP32 dims: [ 1000 ] } ]
instance_group [ { kind: KIND_GPU } ]
Launch:
tritonserver --model-repository=/models
--disable-auto-complete-config is optional and only silences the PyTorch backend's "auto-complete not supported" warning at startup. Do not add it when the same model repository also holds ONNX, TensorFlow, or TensorRT models that rely on auto-complete: the flag is server-wide and those models will fail to load.
Build the archive with a dynamic batch dim; sample input must have batch > 1 so torch.export does not specialize:
import torch
m = Model().eval() # add .cuda() for KIND_GPU
sample = (torch.randn(2, 4),) # one entry per forward() argument; .cuda() each for KIND_GPU
batch = torch.export.Dim("batch", min=1, max=8)
exported = torch.export.export(
m, sample, dynamic_shapes=({0: batch},)
)
torch._inductor.aoti_compile_and_package(exported, package_path="model.pt2")
Minimal config.pbtxt:
name: "my_model"
backend: "pytorch"
platform: "torch_aoti"
max_batch_size: 8
input [ { name: "INPUT__0" data_type: TYPE_FP32 dims: [ 4 ] } ]
output [ { name: "OUTPUT__0" data_type: TYPE_FP32 dims: [ 4 ] } ]
instance_group [ { kind: KIND_CPU } ]
Dim("batch", max=N) must be >= max_batch_size. instance_group kind must match the export device.
nvcr.io/nvidia/tritonserver:26.10-py3 ships libtorch but no Python torch. Build artifacts in nvcr.io/nvidia/pytorch:26.10-py3 or install torch before building. Match build and serve to 26.10 to avoid opset drift.
curl -s -X POST -H "Content-Type: application/json" \
-d '{"inputs":[{"name":"INPUT__0","shape":[1,4],"datatype":"FP32","data":[1,1,1,1]}]}' \
http://localhost:8000/v2/models/my_model/infer
Large tensors: use the binary tensor extension. See references/config-pbtxt.md.
Validation order: file exists → input count matches → datatype supported → naming resolves. Fix in order; each later check only runs if earlier ones pass.
| Error (server log) | Fix |
|---|---|
unable to find '/models/<name>/1/model.pt' |
Place model.pt at 1/ or set default_model_filename. |
PyTorch inductor model file "..." is unreachable or inaccessible. |
Place model.pt2 at 1/. |
unsupported datatype TYPE_<X> (TorchScript) |
See references/datatypes.md. Cast or switch backend. |
Unsupported datatype TYPE_<X> ... model instance "<name>_0_0". (PT2) |
Same recovery; note PT2 wording differs. |
configuration expects N inputs, but model expects M inputs. |
Match input count in config.pbtxt to the exported call spec. |
Incorrect device passed to aoti_runner_cpu |
Re-export PT2 on the target device. |
PyTorch execute failure: output must be of type Tensor, List[str] or Tuple ... (inference-time) |
Return Tensor, 1-D List[str], or a Tuple. Wrap scalars with torch.tensor(...). |
PyTorch execute failure: output ... received List[Tensor] (inference-time) |
Return a Tuple of Tensors, not a List. |
failed to split the output tensor '<name>' in responses: expected batch size of at least N ... (PT2 inference-time) |
PT2 archive lacks dynamic batch Dim. Re-export with torch.export.Dim. |
sequence batching with state but not all ... <name>__<index> |
Rename every input, output, and initial_state.name to <name>__<index>. |
Full catalog: references/errors.md.
libtorch.cc). Add instance-group entries, not threads.INTRA_OP_THREAD_COUNT and INTER_OP_THREAD_COUNT are process-global; first model wins (pt/model_state.cc).INFERENCE_MODE default true is stronger than NoGrad; leave on.model_warmup to amortize.KIND_MODEL lets the model's own .to(device) win; inputs land on CPU, output path forces cudaStreamSynchronize (pt/model_instance_state.cc).See references/parameters.md.
Standard Triton metrics at GET /metrics on port 8002. No PyTorch-specific metrics. See docs/user_guide/metrics.md.
references/config-pbtxt.md: field reference and examples.references/datatypes.md: supported crosswalk, unsupported list.references/errors.md: error catalog with recovery.references/parameters.md: TorchScript and PT2 parameters.references/naming.md: naming resolver rules.references/torch-aoti.md: PT2 export, device-baked, MODEL_INIT_LIBRARY.references/sequence-batching.md: sequence batching on pytorch_libtorch and torch_aoti.docs/user_guide/model_configuration.md, docs/user_guide/model_repository.md.triton-inference-server/pytorch_backend on branch r26.10.Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.