Skip to main content

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})

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.2.1-py3-none-win_arm64.whl (13.3 MB view details)

Uploaded Python 3Windows ARM64

onnxruntime_ep_webgpu-0.2.1-py3-none-win_amd64.whl (12.3 MB view details)

Uploaded Python 3Windows x86-64

onnxruntime_ep_webgpu-0.2.1-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.2 MB view details)

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

onnxruntime_ep_webgpu-0.2.1-py3-none-macosx_14_0_universal2.whl (3.5 MB view details)

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

File details

Details for the file onnxruntime_ep_webgpu-0.2.1-py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for onnxruntime_ep_webgpu-0.2.1-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 077cea562aff4216a9824fb2de863d3071b6c82e8f3e1fe6577b4d9b80f9f31b
MD5 cf8a1c71571be54fb9f03699cd2bc268
BLAKE2b-256 c17c7afae563f223ce070f79f732bcbfa89648d5711b1c587ac3ee4d9528ac47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for onnxruntime_ep_webgpu-0.2.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 b03af22ddace33feeac1d67f7428f113f1b60eae22a654632c0d260f6475276a
MD5 e7f2fa040927ee0257c767aa3f521ccc
BLAKE2b-256 917bf3b4f44aa2cd1de598bae93ea0bc6232150b0d2f0c758a53c881ca618d07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for onnxruntime_ep_webgpu-0.2.1-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3ba8e49e09bac60501e71e66a5d8376f5e5fa71b94d71fe90330c4487eb0bd82
MD5 2266742139ed6feea09088677b5a9143
BLAKE2b-256 f4c4f7de789c43f8a25468c0e5d4a69c28cfb3c29c84c2556c1e6e7dd4c4cee4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for onnxruntime_ep_webgpu-0.2.1-py3-none-macosx_14_0_universal2.whl
Algorithm Hash digest
SHA256 3b896f121a54ca89996724abe5891fb00e7c7b9e9be6deebe37f03bad34b7df7
MD5 eb6b432d7b8457159c48d526f7497574
BLAKE2b-256 f2b439a4acdadbad0e7a57af006b2e7c12e365f8163679f3337f21bfc2aecb61

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.0

4 files

This release

0.2.1 This release

4 files

0.1.0

3 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page