Themis.Inference.WebGpu
4.0.2-preview
dotnet add package Themis.Inference.WebGpu --version 4.0.2-preview
NuGet\Install-Package Themis.Inference.WebGpu -Version 4.0.2-preview
<PackageReference Include="Themis.Inference.WebGpu" Version="4.0.2-preview" />
<PackageVersion Include="Themis.Inference.WebGpu" Version="4.0.2-preview" />
<PackageReference Include="Themis.Inference.WebGpu" />
paket add Themis.Inference.WebGpu --version 4.0.2-preview
#r "nuget: Themis.Inference.WebGpu, 4.0.2-preview"
#:package Themis.Inference.WebGpu@4.0.2-preview
#addin nuget:?package=Themis.Inference.WebGpu&version=4.0.2-preview&prerelease
#tool nuget:?package=Themis.Inference.WebGpu&version=4.0.2-preview&prerelease
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 | 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.EP.WebGpu (>= 0.4.0)
- Themis.Core (>= 4.0.2)
- Themis.Inference (>= 4.0.2)
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 |