Introducing @huggingface/kernels: 200+ WebGPU Kernels for Local AI
Sep 1, 2026Nico Martin, Joshua
Summary
This post introduces `@huggingface/kernels`, a library for loading and running optimized WebGPU kernels from the Hugging Face Hub, along with an initial collection of 207 kernels. It details the structure of kernel repositories, including manifest, metadata, correctness, and benchmark cases, and demonstrates loading and executing kernels with a JavaScript example. Performance comparisons against ORT WebGPU show significant speedups for individual operations. The Fleet benchmarking tool is also launched to gather real-world performance and correctness evidence.