Themis.Inference.WebGpu 4.0.2-preview

This is a prerelease version of Themis.Inference.WebGpu.
dotnet add package Themis.Inference.WebGpu --version 4.0.2-preview
                    
NuGet\Install-Package Themis.Inference.WebGpu -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.WebGpu" 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.WebGpu" Version="4.0.2-preview" />
                    
Directory.Packages.props
<PackageReference Include="Themis.Inference.WebGpu" />
                    
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.WebGpu --version 4.0.2-preview
                    
#r "nuget: Themis.Inference.WebGpu, 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.WebGpu@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.WebGpu&version=4.0.2-preview&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Themis.Inference.WebGpu&version=4.0.2-preview&prerelease
                    
Install as a Cake Tool

Themis.Inference.WebGpu

Themis.Inference.WebGpu is an optional prototype integration for the native ONNX Runtime WebGPU plugin on Linux x64. It uses the existing ONNX model bundles and typed decision contracts; it does not add browser WebGPU support or alter CPU-only packages. It is published with a -preview NuGet version as a prototype; hardware and licensing validation remain outstanding.

Register the provider alongside AddThemis:

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

The default configuration requires WebGpuExecutionProvider on a GPU and fails rather than silently using CPU. To permit runtime-default fallback when the plugin registers but no accelerator is available, pass an InferenceRuntimeConfiguration with PreferAccelerator and no RequiredExecutionProviderName. The Vulkan loader remains a runtime prerequisite. When the provider is not named explicitly, its selection policy gives WebGPU higher priority than the CUDA and MIGraphX policies.

The integration uses Microsoft.ML.OnnxRuntime.EP.WebGpu 0.4.0. Its package README declares ONNX Runtime 1.24.4 as the minimum compatible core version; Themis currently uses 1.31.0. The plugin checks compatibility when its library is registered. Publish the consumer with linux-x64 and install a system Vulkan loader (libvulkan.so.1). Although the upstream package contains additional RID assets, this Themis prototype only enables Linux x64.

This integration has not been validated on WebGPU hardware. Package restore, provider registration, or successful inference alone does not establish accelerator support. Confirm the intended provider in ONNX Runtime profiles on the target device before relying on execution or making a hardware/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 46 10/27/2026
4.0.1-preview 43 10/27/2026
4.0.0-preview 51 10/26/2026
2.0.3-preview 56 10/25/2026