Skip to main content
Products & Tools

PyTorch Enables GPU-Accelerated Model Execution in Browsers

PyTorch now allows models to run in web browsers with GPU support via the ExecuTorch WebGPU backend.

By Precis Daily Newsroom1 min read180 words
AI-summarized from the linked source and published automatically — not human-edited.How this works →
Illustration for: PyTorch Enables GPU-Accelerated Model Execution in Browsers
Illustration

What happened

PyTorch models can now execute in web browsers with GPU acceleration through the ExecuTorch WebGPU backend. This allows models to run directly in WebGPU-enabled browsers without conversion to other formats.

Developers can export PyTorch models to a.pte file using the torch.export function. This file can then be executed in any WebGPU-enabled browser via the ExecuTorch Wasm runtime.

Why it matters

The ability to run PyTorch models in web browsers opens new possibilities for deploying AI models at scale. With billions of users across major browsers, this makes it an ideal platform for model inference.

Key details

The WebGPU backend supports a wide range of models, including large language models like Llama 3.2, Qwen3, and Gemma 3, as well as vision-language models like SmolVLM. It also handles segmentation, depth estimation, object detection, super-resolution, and speech-to-text models such as Whisper.

WebGPU is 4–7× faster than the ExecuTorch CPU path on prefill tasks and 2–10× faster on decode tasks, as measured on an Apple M1 Pro in Chrome. This performance boost is significant for applications requiring real-time inference.

Sources

Summarized from the linked originals.

Related stories