WebGPU
WebGPU is a web standard graphics and compute API developed by the W3C that provides browsers with direct access to underlying GPU hardware. As the successor to WebGL, it supports modern graphics pipeline operations and general-purpose GPU computing (GPGPU), enabling high-performance 3D rendering, image processing, and machine learning inference. WebGPU is designed to align with native graphics APIs such as Vulkan, Metal, and Direct3D 12, offering lower CPU overhead and finer-grained GPU control.
Core Facts
WebGPU introduces compute shaders, multi-threaded rendering, and more fine-grained GPU resource management mechanisms, where compute shaders can offload intensive tasks to the GPU.
WebGPU is a W3C-standardized browser graphics and compute API that was officially released in Chrome in 2023, designed to replace WebGL.
WebLLM is a high-performance in-browser LLM inference engine that aims to move the entire model inference pipeline to the client-side browser for execution, with no server support required.
Timeline (last 90 days)
TabStationToo's graphics renderer was ported to WebGPU.
A common industry approach to running local models in the browser is to use quantization to compress model size and leverage browser graphics interfaces such as WebGPU to accelerate matrix operations.
Google's WebML and Apple's involvement in WebGPU both underwent years of refinement.
Framefields performs rendering via native WebGPU in a Node.js environment, without relying on a browser or Chromium.
Outside the browser, WebGPU implementations are typically exposed to runtimes such as Node.js through native bindings like wgpu (written in Rust).
Native support for WebGPU in Node.js is still evolving, and cross-platform compatibility (especially across different GPU drivers and cloud server environments) needs to be tested in practice.
Listing Lab's inference in the browser prefers WebGPU acceleration and falls back to running on the CPU via WASM when unsupported.
According to a project shared by @dhruvil_chauhan_eccb4a1eb on dev.to, React components run Qwen2.5 in the browser via WebGPU without a server or API key, and the feasibility of local inference has been verified.
On a Mac with 8GB of memory, running Gemma via Ollama takes about 30 seconds per draft; running the same Gemma model via browser WebGPU took a median of 3.25 seconds to process 100 drafts, versus 31.4 seconds for Ollama.
The tests used Transformers.js 4.2.0 to run three models on WebGPU with 4-bit weights: SmolLM2 360M Instruct, Qwen2.5 0.5B Instruct, and Llama 3.2 1B Instruct (q4f16).
40 more timeline events
All Facts (20)
WebGPU introduces compute shaders, multi-threaded rendering, and more fine-grained GPU resource management mechanisms, where compute shaders can offload intensive tasks to the GPU.
80%VerifiedWebGPU is a W3C-standardized browser graphics and compute API that was officially released in Chrome in 2023, designed to replace WebGL.
80%VerifiedWebLLM is a high-performance in-browser LLM inference engine that aims to move the entire model inference pipeline to the client-side browser for execution, with no server support required.
75%VerifiedONNX Runtime Web compiles the ONNX runtime to WebAssembly to enable cross-platform model inference; ONNX was jointly introduced by Microsoft and Facebook.
75%VerifiedWebGPU is a new-generation browser graphics standard that is being rolled out, closer to the low-level models of Vulkan/Metal/DirectX 12, and can provide lower CPU overhead and stronger parallel computing capability.
65%VerifiedCompared to WebGL, which is based on OpenGL ES, WebGPU introduces compute shaders, a more fine-grained resource binding model, and pipeline state management, allowing general-purpose parallel computing tasks (GPGPU) to be executed on the GPU.
65%VerifiedChrome officially supported WebGPU in April 2023, while Firefox and Safari are still catching up.
65%VerifiedWebGPU, as the next-generation successor to WebGL, officially landed in Chrome in 2023, delivering performance closer to that of native graphics APIs.
65%VerifiedWebGPU是W3C正在推进的新一代Web图形与计算API标准,旨在替代WebGL,对标Vulkan、Metal、Direct3D 12
65%VerifiedThe browser-side AI capability technology stack is jointly composed of underlying hardware acceleration standards such as WebGPU and WebNN.
65%VerifiedThree.js abstracts the underlying WebGL graphics API into a scene graph model, allowing developers to build 3D scenes without directly writing GLSL shader code.
65%UnverifiedSwiftShader is a high-performance CPU renderer developed by Google, supporting Vulkan and WebGPU.
70%UnverifiedWGSL (WebGPU Shading Language) is the official shading language of WebGPU.
70%UnverifiedChrome officially enabled WebGPU support in 2023.
70%UnverifiedWebGPU introduces compute shader capabilities comparable to Vulkan/Metal/D3D12, enabling general-purpose GPU computing (GPGPU).
60%UnverifiedWebContainer currently mainly supports the Node.js ecosystem, and scenarios involving compiled languages (such as Rust, Go, and C++) or system-level calls still require traditional backend container solutions.
60%UnverifiedTabStationToo's graphics renderer was ported to WebGPU.
50%UnverifiedA common industry approach to running local models in the browser is to use quantization to compress model size and leverage browser graphics interfaces such as WebGPU to accelerate matrix operations.
50%UnverifiedGoogle's WebML and Apple's involvement in WebGPU both underwent years of refinement.
50%UnverifiedNative support for WebGPU in Node.js is still evolving, and cross-platform compatibility (especially across different GPU drivers and cloud server environments) needs to be tested in practice.
50%