---
title: "Introducing @huggingface/kernels: 200+ WebGPU Kernels for Local AI"
description: "Hugging Face released @huggingface/kernels, a JavaScript loader for 207 Apache-2.0 WebGPU kernels published as versioned Hub repositories."
url: "https://swe.quest/articles/introducing-huggingface-kernels-200-webgpu-kernels-for-local-ai-9e38d7de6105d26d"
canonical: "https://huggingface.co/blog/webgpu-kernels"
source: "Hugging Face"
published: "2026-09-01"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 9
tags: ["inference","browsers","performance","javascript","open-source"]
---

# Introducing @huggingface/kernels: 200+ WebGPU Kernels for Local AI

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2026-09-01, 9 min read, Announcement. Original: [https://huggingface.co/blog/webgpu-kernels](https://huggingface.co/blog/webgpu-kernels)

## Summary

Hugging Face released @huggingface/kernels, a JavaScript loader for 207 Apache-2.0 WebGPU kernels published as versioned Hub repositories. Each repository bundles a manifest contract, correctness and benchmark cases, and Jinja-templated WGSL shaders with multiple variants per shape and device. On an Apple M4, 809 comparable cases ran 2.57x faster by geometric mean (1.90x median) than ONNX Runtime Web's WebGPU backend, with some outliers in Einsum and CumSum exceeding 300x. Those figures measure GPU time per operation, not full models. Fleet, an in-browser benchmarking tool, crowdsources correctness and performance results across real devices to improve variant selection.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- WebGPU basics
- GPU compute shaders ([easy posts on Hardware](https://swe.quest/tags/hardware.md?difficulty=easy))
- ONNX operators

## Keywords

WebGPU, WGSL, @huggingface/kernels, Hugging Face Hub, ONNX Runtime Web, Fleet

## Related posts

- [Transformers.js v3: WebGPU Support, New Models & Tasks, and More…](https://swe.quest/articles/transformers-js-v3-webgpu-support-new-models-tasks-and-more-3627acdd60e7ffe6.md): Hugging Face · 2024-10-22 · Medium · 11 min read · Inference & serving, JavaScript, Browsers, Machine learning
  Transformers.js v3 adds WebGPU acceleration via ONNX Runtime Web, claimed up to 100x faster than WASM and enabled by passing \`device: 'webgpu'\` when loading a pipeline.
- [Transformers.js v4: Now Available on NPM!](https://swe.quest/articles/transformers-js-v4-now-available-on-npm-60e5d316d3e108bd.md): Hugging Face · 2026-02-09 · Medium · 7 min read · Inference & serving, JavaScript, LLMs, Browsers, Build systems
  Transformers.js v4 ships on NPM with a new C++ WebGPU runtime built with the ONNX Runtime team, enabling WebGPU-accelerated models in browsers as well as Node, Bun and Deno.
- [WebGPU now available for testing in Safari Technology Preview](https://swe.quest/articles/webgpu-now-available-for-testing-in-safari-technology-preview-fb9a82b78536ace0.md): WebKit · 2023-12-21 · Medium · 3 min read · Browsers, JavaScript, Hardware
  Safari Technology Preview 185 ships an early WebGPU implementation, enabled via the "WebGPU", "GPU Process: DOM Rendering" and "GPU Process: Canvas Rendering" feature flags.
- [Deno 1.8 Release Notes](https://swe.quest/articles/deno-1-8-release-notes-b5cc182091f0ac84.md): Deno · 2021-03-02 · Medium · 11 min read · JavaScript, Runtimes & VMs, Testing, Developer tools
  Deno 1.8 adds experimental WebGPU support (built on wgpu/gfx-rs) aimed at GPU-accelerated ML such as running TensorFlow.js, ships full ICU so all JS Intl APIs match browsers, and stabilizes import maps, which can now be loaded from URLs.
- [Figma rendering: Powered by WebGPU](https://swe.quest/articles/figma-rendering-powered-by-webgpu-713739b05df2d0bb.md): Figma · 2025-09-18 · Medium · 11 min read · Browsers, WebAssembly, C & C++, Performance engineering, Deployment
  Figma migrated its C++ renderer from WebGL to WebGPU while keeping WebGL as a fallback, first refactoring its graphics interface to pass draw-call state explicitly and to batch uniform uploads into a single buffer per submit to avoid performance regressions.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
