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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file onnxruntime_ep_webgpu-0.1.0-py3-none-win_amd64.whl.
File metadata
- Download URL: onnxruntime_ep_webgpu-0.1.0-py3-none-win_amd64.whl
- Upload date:
- Size: 12.2 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
203d130fa879537950e02b3fe68edd1e8c058f94dab3ba668ae74993a16f8b75
|
|
| MD5 |
da8efab1d2dcfcdddc25aa30be335336
|
|
| BLAKE2b-256 |
6ae36dff3d1f843cce4a761149995d352bf73fd313457d1d932e81d96a315d14
|
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
- Download URL: onnxruntime_ep_webgpu-0.1.0-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 4.1 MB
- Tags: Python 3, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
777c6c7a645160eb3b50473b508458feee9bd399ac98392b4c32a0d73c9fad07
|
|
| MD5 |
06f0ffde8253db420799326aca160292
|
|
| BLAKE2b-256 |
a8f2a145e59de8167b3d1117449879ac2f35f1f36cd3d61d0742e7098e936a2e
|
File details
Details for the file onnxruntime_ep_webgpu-0.1.0-py3-none-macosx_14_0_universal2.whl.
File metadata
- Download URL: onnxruntime_ep_webgpu-0.1.0-py3-none-macosx_14_0_universal2.whl
- Upload date:
- Size: 3.4 MB
- Tags: Python 3, macOS 14.0+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea934a10f66d6725555ec3133ec470aeabde474f4eff40cbbcaa72c19eb96a35
|
|
| MD5 |
eb944f7f14b0126da2cafcfff060a1b6
|
|
| BLAKE2b-256 |
c777da86663f062630cf8a917b8ad0ad89fbe7cc8f145ff0c84703f6c009fe29
|