PyTorch models now run in browsers on the GPU via ExecuTorch WebGPU. Models export to a .pte file and run in any WebGPU browser. It supports LLMs, vision-language, segmentation, depth, object detection, super-resolution and speech-to-text. All inference happens locally in the browser tab. WebGPU is 4–7× faster than ExecuTorch’s CPU path on prefill. It is 2–10× faster on decode. The same .pte file works across Chrome, Safari, Metal, Vulkan and D3D12. No data leaves the user’s device. A playground lets users try supported models. The backend is in early development.
What changed
PyTorch models required conversion to GGUF, ONNX or TFLite to run in browsers.
What it unlocks
Running PyTorch models natively on WebGPU in browsers without leaving the PyTorch toolchain.
- 4–7× faster on prefill
- 2–10× faster on decode
- 128 to 8,000 tokens context
What you need to act on it
- a WebGPU-enabled browser
- a .pte file exported via torch.export
Sources