# ExecuTorch WebGPU: PyTorch Models on the GPU, in the Browser

DevFeed: [ExecuTorch WebGPU: PyTorch Models on the GPU, in the Browser](<https://devfeed.tech/articles/executorch-webgpu-pytorch-models-on-the-gpu-in-the-browser-129598.md>)

Original publisher: [Read original article](<https://pytorch.org/blog/executorch-webgpu-pytorch-models-on-the-gpu-in-the-browser/>)

Author: Julian Ng-Thow-Hing, Siddartha Pothapragada, Stephen Jia, Digant Desai, Bilgin Cagatay

Published: 2026-11-10T22:15:07Z

Content type: article

Language: en

Sources: [PyTorch](<https://devfeed.tech/sources/blog-pytorch.md>)

Topics: [PyTorch](<https://devfeed.tech/topics/pytorch.md>), [lora](<https://devfeed.tech/topics/lora.md>)

Tags: [accelerated](<https://devfeed.tech/tags/accelerated.md>), [android](<https://devfeed.tech/tags/android.md>), [api](<https://devfeed.tech/tags/api.md>), [apple](<https://devfeed.tech/tags/apple.md>), [apple-m1](<https://devfeed.tech/tags/apple-m1.md>), [blog](<https://devfeed.tech/tags/blog.md>), [browser](<https://devfeed.tech/tags/browser.md>), [conversion](<https://devfeed.tech/tags/conversion.md>), [executorch](<https://devfeed.tech/tags/executorch.md>), [export](<https://devfeed.tech/tags/export.md>), [file](<https://devfeed.tech/tags/file.md>), [framework](<https://devfeed.tech/tags/framework.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [models](<https://devfeed.tech/tags/models.md>), [pytorch](<https://devfeed.tech/tags/pytorch.md>), [run](<https://devfeed.tech/tags/run.md>), [the-web](<https://devfeed.tech/tags/the-web.md>), [torch](<https://devfeed.tech/tags/torch.md>), [web](<https://devfeed.tech/tags/web.md>), [web-browser](<https://devfeed.tech/tags/web-browser.md>), [webgpu](<https://devfeed.tech/tags/webgpu.md>)

## AI overview

ExecuTorch's WebGPU backend runs PyTorch models in WebGPU-enabled browsers from a single `.pte` artifact exported with `torch.export`, without converting to another framework's format. A WebAssembly runtime dispatches WGSL compute shaders; the excerpt says the same artifact can also run natively through Metal, Vulkan, or D3D12. In Chrome on an Apple M1 Pro, tests on quantized Llama 3.2 1B and Qwen3-0.6B found WebGPU 4-7x faster than ExecuTorch's multithreaded XNNPACK WebAssembly CPU path on prefill and 2-10x faster on decode. The backend has been validated on language, vision, speech, and on-device fine-tuning workloads. Inference runs locally in the browser tab, keeping inputs and outputs on the device. The backend is still early in development, with operator, data type, and model coverage and stability identified as ongoing work.

## Source excerpt

TL;DR PyTorch models now run in the web browser on the GPU through ExecuTorch, with no conversion to another framework's format. You export with torch.export to an ExecuTorch .pte file,... The post ExecuTorch WebGPU: PyTorch Models on the GPU, in the Browser appeared first on PyTorch.