Overview of ExecuTorch WebGPU Backend
mainThe ExecuTorch WebGPU backend allows running ExecuTorch models on GPUs via the WebGPU standard. It compiles delegated subgraphs into WGSL compute shaders and executes them using Dawn and the Tint WGSL compiler.
Key Capabilities:
- Native Execution: Targets Metal and Vulkan in native builds.
- Browser Execution: Uses Emscripten and
emdawnwebgputo compile the same execution path to WebAssembly for browsers. - Dynamic Shapes: Supports runtime dimensions using SymInt arithmetic and per-operator resize hooks.
- High Performance: Optimized for LLMs with techniques like shared-memory tiled GEMM, FlashDecoding, and 4-bit quantization.