Hugging Face WebGPU kernels

207 open-source (Apache-2.0) WebGPU kernels for AI that runs locally in the browser. On an Apple M4 they are 2.57× faster than ORT WebGPU by geometric mean.

How to try it

  1. In a web project (e.g. Angular) run: npm install @huggingface/kernels@preview
  2. Load a kernel: const add = await getKernel("webgpu-kernels/ai.onnx.Add", { version: 1 })
  3. Test in a browser with WebGPU support (Chrome, or Safari on newer devices, check the link)
  4. You can add your device to the Fleet benchmark at webgpu-kernels-fleet.hf.space

Price: free

Official link

More new tools