Themis.Inference.TensorRT
4.0.0-preview
See the version list below for details.
dotnet add package Themis.Inference.TensorRT --version 4.0.0-preview
NuGet\Install-Package Themis.Inference.TensorRT -Version 4.0.0-preview
<PackageReference Include="Themis.Inference.TensorRT" Version="4.0.0-preview" />
<PackageVersion Include="Themis.Inference.TensorRT" Version="4.0.0-preview" />
<PackageReference Include="Themis.Inference.TensorRT" />
paket add Themis.Inference.TensorRT --version 4.0.0-preview
#r "nuget: Themis.Inference.TensorRT, 4.0.0-preview"
#:package Themis.Inference.TensorRT@4.0.0-preview
#addin nuget:?package=Themis.Inference.TensorRT&version=4.0.0-preview&prerelease
#tool nuget:?package=Themis.Inference.TensorRT&version=4.0.0-preview&prerelease
Themis.Inference.TensorRT
Themis.Inference.TensorRT is an experimental ONNX Runtime integration for
classic TensorrtExecutionProvider on Linux x64. Register it alongside
AddThemis:
services.AddThemis(options => options.Model = "laya-production");
services.AddThemisTensorRT();
The default configuration requires a TensorRT GPU and fails when it is not
available. TensorRT is appended before CUDAExecutionProvider, so nodes
TensorRT cannot claim can use CUDA; ONNX Runtime's CPU provider remains
available under its normal partitioning behavior. The CUDA fallback must
identify exactly one GPU with the same vendor and device IDs as the selected
TensorRT device. Multi-GPU hardware with ambiguous matching devices is rejected
instead of routing fallback work to a different GPU.
The prototype targets net10.0 and linux-x64 with
Microsoft.ML.OnnxRuntime.Gpu.Linux 1.31.0. Its packaged TensorRT provider
library links libcudart.so.13, libcublas.so.13, libcudnn.so.9,
libnvinfer.so.10, and libnvonnxparser.so.10. The NuGet package includes
ONNX Runtime's TensorRT and CUDA provider libraries, but does not include these
system CUDA, cuDNN, TensorRT, or NVIDIA driver dependencies. Install compatible
host runtimes and expose their libraries to the Linux loader. This baseline
identifies ABI majors; it does not establish an exact TensorRT patch release or
a supported deployment combination.
The initial deployment assumption is Ubuntu 22.04 x64, net10.0, and
linux-x64, with a single NVIDIA GPU. The integration test uses the pinned
default RLCD bundle and typed choice, score, and noul request; model-derived
input dimensions are not generalized into a broader coverage claim. The
performance hypothesis is that TensorRT-compatible graph partitions may
outperform CUDA on the same workload. No benefit or operator coverage has been
measured; the integration profile must establish TensorRT placement before any
comparison is meaningful.
Engine and timing caches are explicitly disabled. The prototype therefore does not share cache files across models, runtime versions, GPUs, containers, or concurrent session creation, and has no stale-cache or cache-permission behavior to rely on. Enabling persistent caches requires a separately validated per-model/runtime/GPU identity and writable, concurrency-safe cache policy.
The package is published with a -preview NuGet version as an experimental
integration. No target GPU, TensorRT model coverage, native deployment,
cancellation/concurrency behavior, or performance benefit has been validated.
Verify TensorRT-assigned nodes in ONNX Runtime profiles before relying on
execution or making a support claim. Windows ML's
NvTensorRtRtxExecutionProvider is a separate integration and is not covered
by this package.
References:
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.13)
- Microsoft.ML.OnnxRuntime.Gpu.Linux (>= 1.31.0)
- Themis.Core (>= 4.0.0)
- Themis.Inference (>= 4.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.1-preview | 0 | 10/27/2026 |
| 4.0.0-preview | 1 | 10/26/2026 |
| 2.0.3-preview | 41 | 10/25/2026 |