wowsuch ai
Live

Hugging FaceDeveloper platform

@huggingface/kernels

A small JavaScript library that loads and executes versioned WebGPU kernel repositories from the Hugging Face Hub, deriving contracts and allocating outputs for tensor inputs. It provides a stable JS-facing contract for invoking per-operation kernels (e.g., ai.onnx.Add) and supports selecting kernel variants for device- and-shape-specific performance.

What it does

Developers can use it to run optimized machine-learning operations in WebGPU-capable browsers as part of browser-based AI applications.

Availability
Install with npm install @huggingface/kernels@preview
Pricing model
Not stated
Deployment
Runs kernels in a browser with WebGPU support
Privacy
Not stated
Licence
The 207 kernels are Apache-2.0 licensed; no licence stated for the JavaScript loader
Capability
automation
Modality
code
Access
SDK
Deployment
on-device
Pricing
unknown
Target user
developerresearcher

Evidence

6 claims
  • The JavaScript loader is available from npm as @huggingface/kernels@preview. [1]
    A JavaScript loader , @huggingface/kernels , which downloads, prepares, and runs kernels directly from the Hub.
    Hugging Face. Quoted text is outside CC BY 4.0 and keeps its original rights.
  • The loader downloads, prepares, and runs kernels directly from the Hugging Face Hub. [1]
    A JavaScript loader , @huggingface/kernels , which downloads, prepares, and runs kernels directly from the Hub.
    Hugging Face. Quoted text is outside CC BY 4.0 and keeps its original rights.
  • The initial collection contains 207 WebGPU kernels published as individual repositories. [1]
    Today, we are releasing the first layer of that effort: @huggingface/kernels , a minimal library for loading and running optimized WebGPU kernels from the Hugging Face Hub, together with an initial collection of 207 kernels at huggingface.co/webgpu-kernels .
    Hugging Face. Quoted text is outside CC BY 4.0 and keeps its original rights.
  • Running the kernels requires a browser with WebGPU support. [1]
    Running these kernels requires a browser with WebGPU support .
    Hugging Face. Quoted text is outside CC BY 4.0 and keeps its original rights.
  • Each kernel package includes a manifest, correctness tests, benchmark cases, and WGSL shader templates. [1]
    Explicit contracts and reproducible evidence for every kernel, including manifests, correctness tests, benchmark cases, and WGSL shader templates.
    Hugging Face. Quoted text is outside CC BY 4.0 and keeps its original rights.
  • The announced benchmark comparison on an Apple M4 GPU reported a 2.57x geometric-mean speedup over ORT WebGPU across 809 comparable cases. [1]

Sources

1
1
Hugging FaceOwner-controlled
https://huggingface.co/blog/webgpu-kernels Retrieved 2026-10-28 00:39 UTC
Verified

Versions

20
VersionEffectiveChangeChanged fieldsState
202026-10-28 00:39 UTCmaterial changeavailability, deploymentCurrent
192026-10-24 02:16 UTCmaterial changeavailability, deploymentCurrent
182026-10-21 03:21 UTCmaterial changepricing, availability, deploymentCurrent
172026-10-20 04:11 UTCmaterial changecapability, availability, pricing model, deployment, privacyCurrent
162026-10-19 05:11 UTCmaterial changecapability, pricing, availability, pricing model, deploymentCurrent
152026-10-18 06:01 UTCmaterial changeaccess, availability, deploymentCurrent
142026-10-15 08:47 UTCmaterial changeaccess, deploymentCurrent
132026-10-14 09:39 UTCmaterial changecapability, access, availabilityCurrent
122026-10-13 10:30 UTCmaterial changecapability, access, availability, deploymentCurrent
112026-10-07 16:03 UTCmaterial changedeploymentCurrent
102026-10-05 17:59 UTCmaterial changeaccess, deploymentCurrent
92026-10-03 19:51 UTCmaterial changecapability, access, availability, deploymentCurrent
82026-10-02 20:47 UTCmaterial changecapability, availabilityCurrent
72026-10-01 21:40 UTCmaterial changecapabilityCurrent
62026-09-30 22:34 UTCmaterial changeaccess, availabilityCurrent
52026-09-29 23:27 UTCmaterial changeaccess, availability, deploymentCurrent
42026-09-29 00:18 UTCmaterial changeavailability, deploymentCurrent
32026-09-26 02:58 UTCmaterial changecapability, availability, deploymentCurrent
22026-09-25 03:52 UTCmaterial changecapability, modality, access, pricing, availability, deploymentCurrent
12026-09-01 00:00 UTCpublicationNoneCurrent

In briefs

2

Open in the catalog

Original catalog content is licensed under CC BY 4.0, attributed to wowsuchai. Source quotations and linked content keep their original rights.