Themis.Inference.Cuda 4.0.2-preview

This is a prerelease version of Themis.Inference.Cuda.
dotnet add package Themis.Inference.Cuda --version 4.0.2-preview
                    
NuGet\Install-Package Themis.Inference.Cuda -Version 4.0.2-preview
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Themis.Inference.Cuda" Version="4.0.2-preview" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Themis.Inference.Cuda" Version="4.0.2-preview" />
                    
Directory.Packages.props
<PackageReference Include="Themis.Inference.Cuda" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Themis.Inference.Cuda --version 4.0.2-preview
                    
#r "nuget: Themis.Inference.Cuda, 4.0.2-preview"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Themis.Inference.Cuda@4.0.2-preview
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Themis.Inference.Cuda&version=4.0.2-preview&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Themis.Inference.Cuda&version=4.0.2-preview&prerelease
                    
Install as a Cake Tool

Themis.Inference.Cuda

Themis.Inference.Cuda is an optional ONNX Runtime CUDA integration for Themis on Linux x64 and is published with a -preview NuGet version. Register it alongside AddThemis:

services.AddThemis(options => options.Model = "laya-production");
services.AddThemisCuda();

The default configuration requires the CUDAExecutionProvider and fails instead of silently using CPU. To permit CPU fallback when CUDA is unavailable, pass InferenceRuntimeConfiguration with PreferAccelerator and leave RequiredExecutionProviderName unset. When several accelerator providers are registered, set RequiredExecutionProviderName to the desired provider.

Publish the consumer with linux-x64. The package uses the ONNX Runtime 1.31.0 Linux GPU native runtime in place of the CPU native runtime for that RID, while retaining ONNX Runtime's CPU execution provider. Other RIDs keep the CPU runtime and do not gain CUDA support.

Install a compatible NVIDIA driver, CUDA, and cuDNN runtime on the target system. The exact CUDA/cuDNN combination must match the selected Microsoft.ML.OnnxRuntime.Gpu.Linux package. CUDA provider binaries are included by that package; TensorRT provider binaries may also be present, but Themis does not select or configure TensorRT through this integration.

Initial hardware-validation target

The initial target assumption is Ubuntu 22.04 LTS on Linux x64, with an NVIDIA CUDA-capable GPU and a host driver compatible with CUDA 13.0 or newer. ONNX Runtime 1.31.0's Linux GPU package uses CUDA 13.x and cuDNN 9.x; the installed driver, CUDA runtime, and cuDNN libraries must be mutually compatible. The exact GPU model and driver build remain to be recorded when hardware validation is available.

The representative model is the pinned Mattepiu/laya-onnx test bundle at revision a7f385bd51d35f5cbeb88e8bc4f0c7e7c0f24c44. Its CUDA integration request contains three typed questions (choice, score, and noul) in one decision request; sequence length and question batching follow the bundle manifest. This target is a validation assumption, not a hardware result or support claim.

This package has not been validated on Linux GPU hardware. Provider registration or successful inference is not evidence that model nodes ran on CUDA. Verify the intended provider in ONNX Runtime profiles before relying on accelerated execution or making a device/model support claim.

References:

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.2-preview 43 10/27/2026
4.0.1-preview 41 10/27/2026
4.0.0-preview 50 10/26/2026
2.0.3-preview 48 10/25/2026