# Vercel vgpu

Vercel vgpu is an open-source TypeScript library for WebGPU that supports typed WGSL shader imports and runs in browsers, headless Node.js, and test environments.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Characterizing WebGPU Dispatch Overhead for LLM Inference Across Four GPU Vendors, Three Backends, and Three Browsers

DevFeed: [Characterizing WebGPU Dispatch Overhead for LLM Inference Across Four GPU Vendors, Three Backends, and Three Browsers](<https://devfeed.tech/articles/characterizing-webgpu-dispatch-overhead-for-llm-inference-across-four-gpu-vendors-three-backends-and-three-browsers-103755.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2604.02344>)

Author: J\\k{e}drzej Maczan

Published: 2026-10-28T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Vercel vgpu](<https://devfeed.tech/topics/vercel-vgpu.md>), [RTX PRO](<https://devfeed.tech/topics/rtx-pro.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [backends](<https://devfeed.tech/tags/backends.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [chrome](<https://devfeed.tech/tags/chrome.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cs-pf](<https://devfeed.tech/tags/cs-pf.md>), [dispatch](<https://devfeed.tech/tags/dispatch.md>), [firefox](<https://devfeed.tech/tags/firefox.md>), [fusion](<https://devfeed.tech/tags/fusion.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [inference](<https://devfeed.tech/tags/inference.md>), [intel](<https://devfeed.tech/tags/intel.md>), [linux](<https://devfeed.tech/tags/linux.md>), [llm](<https://devfeed.tech/tags/llm.md>), [llm-inference](<https://devfeed.tech/tags/llm-inference.md>), [macos](<https://devfeed.tech/tags/macos.md>), [metal](<https://devfeed.tech/tags/metal.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [overhead](<https://devfeed.tech/tags/overhead.md>), [performance](<https://devfeed.tech/tags/performance.md>), [webgpu](<https://devfeed.tech/tags/webgpu.md>)

### AI overview

At batch size 1, WebGPU dispatch overhead can dominate LLM inference even when kernels are efficient. A sequential-dispatch benchmark across four GPU vendors, two native implementations, three browsers, and two model sizes found that single-operation tests overestimate dispatch cost by about 20x. API overhead alone was 24-36 μs per dispatch on Vulkan and 32-71 μs on Metal; including Python cost, total per-operation overhead was about 95 μs. Backend choice was the main factor, though implementations within a backend also differed (up to 2.2x on Metal). Kernel fusion improved Vulkan throughput by 53%, while CUDA fusion brought no benefit. The authors' torch-webgpu backend reached 11-12% of CUDA performance on their reference platform. These results cover the tested batch size, models, platforms, and pipeline; code, benchmarks, and raw data are open source.

### Source excerpt

arXiv:2604.02344v2 Announce Type: replace Abstract: WebGPU's security-focused design imposes per-operation validation that compounds across the many small dispatches in neural network inference, yet the true cost of this overhead is poorly characterized. We present a systematic characterization of WebGPU dispatch overhead for LLM inference at batch size 1, spanning four GPU vendors (NVIDIA, AMD, Apple, Intel), two native implementations (Dawn, wgpu-native) and three browsers (Chrome, Safari, Firefox), and two model sizes (Qwen2.5-0.5B and 1.5B). Our primary contribution is a sequential-dispatch methodology that reveals naive single-operation benchmarks overestimate dispatch cost by ${\sim}20\times$. The true per-dispatch cost of WebGPU API overhead alone is 24-36 $\mu$s on Vulkan and 32-71 $\mu$s on Metal, while the total per-operation overhead including Python cost is ${\sim}95$~$\mu$s, which turns out to be a distinction critical for optimization. On Vulkan, kernel fusion improves throughput by 53%, while CUDA fusion provides no benefit, confirming that per-operation overhead is a primary differentiator. LLM inference was tested across three major operating systems (Linux, Windows, macOS). We built $\texttt{torch-webgpu}$, a PrivateUse1-based out-of-tree PyTorch backend and an FX-to-WebGPU compiler, which on our reference platform achieves 11--12% of CUDA performance. At dtype-matched float32, RTX PRO 2000 achieves 1.4$\times$ WebGPU's throughput despite ${\sim}6\times$ less compute than RTX 5090. For dispatch overhead, backend choice is the dominant factor, although implementation choice also matters substantially within a backend (2.2$\times$ for Metal). In terms of dispatch vs kernel compute efficiency, we conclude that at batch=1 with the current dispatch-heavy pipeline, per-operation overhead dominates regardless of kernel quality. All code, benchmarks, and raw data are open source.