Skip to main content

ONNX Runtime WebGPU Plugin Execution Provider

Project description

ONNX Runtime WebGPU Plugin Execution Provider

WebGPU Execution Provider plugin for ONNX Runtime. Install alongside onnxruntime to enable WebGPU acceleration.

Prerequisites

This package provides the WebGPU plugin EP only. You must separately install an ONNX Runtime package (e.g. onnxruntime) of version 1.24.4 or later.

If the installed ONNX Runtime is incompatible, the plugin EP will report an error when its library is registered.

Installation

pip install "onnxruntime>=1.24.4"
pip install onnxruntime-ep-webgpu

Usage

import onnxruntime as ort
import onnxruntime_ep_webgpu as webgpu_ep

# Register the plugin EP library with ONNX Runtime
ort.register_execution_provider_library("webgpu", webgpu_ep.get_library_path())

# Discover WebGPU devices
all_devices = ort.get_ep_devices()
webgpu_devices = [d for d in all_devices if d.ep_name == webgpu_ep.get_ep_name()]

# Create a session using the WebGPU EP
sess_options = ort.SessionOptions()
sess_options.add_provider_for_devices(webgpu_devices, {})
session = ort.InferenceSession("model.onnx", sess_options=sess_options)

# Run inference
output = session.run(None, {"input": input_data})

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

onnxruntime_ep_webgpu-0.1.0-py3-none-win_amd64.whl (12.2 MB view details)

Uploaded Python 3Windows x86-64

onnxruntime_ep_webgpu-0.1.0-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.1 MB view details)

Uploaded Python 3manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

onnxruntime_ep_webgpu-0.1.0-py3-none-macosx_14_0_universal2.whl (3.4 MB view details)

Uploaded Python 3macOS 14.0+ universal2 (ARM64, x86-64)

File details

Details for the file onnxruntime_ep_webgpu-0.1.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for onnxruntime_ep_webgpu-0.1.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 203d130fa879537950e02b3fe68edd1e8c058f94dab3ba668ae74993a16f8b75
MD5 da8efab1d2dcfcdddc25aa30be335336
BLAKE2b-256 6ae36dff3d1f843cce4a761149995d352bf73fd313457d1d932e81d96a315d14

See more details on using hashes here.

File details

Details for the file onnxruntime_ep_webgpu-0.1.0-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for onnxruntime_ep_webgpu-0.1.0-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 777c6c7a645160eb3b50473b508458feee9bd399ac98392b4c32a0d73c9fad07
MD5 06f0ffde8253db420799326aca160292
BLAKE2b-256 a8f2a145e59de8167b3d1117449879ac2f35f1f36cd3d61d0742e7098e936a2e

See more details on using hashes here.

File details

Details for the file onnxruntime_ep_webgpu-0.1.0-py3-none-macosx_14_0_universal2.whl.

File metadata

File hashes

Hashes for onnxruntime_ep_webgpu-0.1.0-py3-none-macosx_14_0_universal2.whl
Algorithm Hash digest
SHA256 ea934a10f66d6725555ec3133ec470aeabde474f4eff40cbbcaa72c19eb96a35
MD5 eb944f7f14b0126da2cafcfff060a1b6
BLAKE2b-256 c777da86663f062630cf8a917b8ad0ad89fbe7cc8f145ff0c84703f6c009fe29

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page